# Mechanical Maintenance Weibull Calculator AI Agent Connect

> Mechanical Maintenance Weibull Calculator MCP provides a statistical engine for reliability analysis. Your AI client uses it to fit Weibull distributions to datasets containing both failures and suspensions. It handles two-parameter and three-parameter forms using Maximum Likelihood Estimation or Least Squares to identify component lifecycles.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_bukz17nHelRiZdcbGEgaRi6bboAumsTXX1yVJBoS/ai-agent-connect
- **Tags:** weibull, reliability, maintenance, statistics, mechanical

## Description

You can now run complex reliability math directly through your AI client. This MCP gives your agent the ability to process datasets that include both actual failures and right-censored suspension data. Instead of manually calculating parameters, you hand the data to your agent, and it uses Maximum Likelihood Estimation or Least Squares to find the right fit. You'll be able to pinpoint whether your hardware is in an infant mortality phase, a period of constant failure, or a wear-out stage. It handles the heavy lifting of two-parameter and three-parameter Weibull forms, providing the shape and scale parameters you need for accurate maintenance planning. It's a specialized tool for engineers who need statistical rigor without leaving their coding or chat environment.

## Tools

### calculate_reliability_metrics
This tool computes reliability, failure probability, and hazard rates based on your existing model parameters.

### validate_data_integrity
This tool checks your input dataset for logical errors before you attempt to run a model fit.

### fit_weibull_model
This tool fits a Weibull distribution to your specific dataset of failure and suspension times.

### get_parameter_confidence_bounds
This tool returns the uncertainty range for your calculated model parameters.

## Prompt Examples

**Prompt:** 
```
Fit a Weibull model to these data points: [{'time': 100, 'isFailure': true}, {'time': 150, 'isFailure': false}, {'time': 200, 'isFailure': true}]. Use MLE and two-parameter form.
```

**Response:** 
```
The Weibull model has been fitted with a shape parameter of 1.25 and a scale parameter of 185.4 hours.
```

**Prompt:** 
```
Given a shape of 1.5 and a scale of 500, what is the reliability at 400 hours?
```

**Response:** 
```
The reliability at 400 hours is 0.763.
```

**Prompt:** 
```
Check if my data is valid for Weibull analysis: [{'time': -5, 'isFailure': true}]
```

**Response:** 
```
The data is invalid. Issues detected: Negative time values detected.
```

## Capabilities

### Distribution Fitting
Your agent fits Weibull distributions to datasets containing failures and suspensions.

### Parameter Estimation
The MCP calculates shape and scale parameters using MLE or Least Squares.

### Data Validation
Your agent checks for logical errors in your datasets before processing.

### Uncertainty Analysis
The tool provides confidence bounds for all model parameters.

### Metric Calculation
Your agent determines hazard rates and failure probabilities from fitted models.

## Use Cases

### Lifecycle Phase Identification
Determine if a component is in its infant mortality, constant failure, or wear-out phase.

### Predictive Maintenance
Calculate reliability metrics to schedule repairs before failures occur.

### Data Cleaning
Use the agent to catch negative time values or logical errors in your datasets.

### Uncertainty Quantification
Get confidence bounds to understand the precision of your reliability models.

## Benefits

- Handles right-censored data through suspension time support.
- Supports both two-parameter and three-parameter Weibull forms.
- Uses MLE and Least Squares for parameter estimation.
- Identifies specific failure phases like infant mortality or wear-out.

## How It Works

Connect your client to Vinkius and start running statistical models immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your failure and suspension data to your agent.
3. The agent validates the data integrity.
4. The agent fits the Weibull model using the requested method.
5. The agent returns the parameters and reliability metrics.

## Frequently Asked Questions

**What kind of data does this MCP support?**
It supports datasets containing both failure times and suspension times, which allows for right-censored data analysis.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client including Claude, Cursor, and Windsurf.

**Does it support three-parameter Weibull models?**
Yes, the engine supports both two-parameter and three-parameter Weibull forms.

**How does it calculate parameters?**
The MCP uses Maximum Likelihood Estimation (MLE) or Least Squares methods to estimate shape and scale parameters.

**How do I know if my data is valid?**
You can use the validate_data_integrity tool to check for logical errors like negative time values before fitting a model.

**What is the difference between failures and suspensions?**
Failures are observed times when a component actually failed. Suspensions (or censored data) are observations where a component has not yet failed at the time of recording, meaning it survived at least until that time.

**How can I calculate the reliability at a specific time?**
After fitting a model with `fit_weibull_model`, you can use the `calculate_reliability_metrics` tool with the resulting parameters to find the reliability, failure probability, and hazard rate for any target time.

**Can I use three-parameter Weibull models?**
Yes, by setting the `parameterForm` to 'three-parameter' in the `fit_weibull_model` tool, the engine will account for a location parameter representing a minimum life period.
