API & MCP
Everything a person can do on Warranty Value Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://warrantyvaluecalculator.usefulweb.site/api/v1/calculate– run Warranty Value CalculatorGET https://warrantyvaluecalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Warranty Value Calculator
Enter the warranty price, how many years it covers, what is already covered by the legal or manufacturer warranty, a failure probability, repair cost, deductible and the chance a claim is approved. The calculator shows the expected payout, the expected net value and the failure rate at which the warranty would break even.
| Field | Type | Default | Description |
|---|---|---|---|
currency | text | "EUR" | Currency. Shown in results only; no conversion is performed. |
itemPrice (required) | number | 800 | Item price |
warrantyPrice (required) | number | 120 | Warranty price |
coverageYears | number | 3 | Warranty covers (from purchase) |
overlapYears | number | 2 | Of which already covered by legal / manufacturer warranty. E.g. 2 years of statutory warranty in the EU; set 0 if the warranty starts after it. |
annualFailureProbabilityPercent | number | 5 | Chance of a failure per year. Your estimate; reliability differs a lot by product and brand. |
averageRepairCost | number | 250 | Typical repair cost |
deductible | number | 0 | Deductible per claim |
claimApprovalPercent | number | 80 | Chance a claim is approved. Exclusions (accidental damage, wear) often reduce real coverage. |
Example request
TV: 3-year plan over a 2-year legal warranty
curl -X POST https://warrantyvaluecalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"currency":"EUR","itemPrice":900,"warrantyPrice":99,"coverageYears":3,"overlapYears":2,"annualFailureProbabilityPercent":5,"averageRepairCost":300,"deductible":0,"claimApprovalPercent":80}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://warrantyvaluecalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
warranty_value_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=warranty-value-calculator
{
"mcpServers": {
"warranty-value-calculator": { "type": "http", "url": "https://warrantyvaluecalculator.usefulweb.site/mcp" }
}
}