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

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.

Inputs of Warranty Value Calculator
FieldTypeDefaultDescription
currencytext"EUR"Currency. Shown in results only; no conversion is performed.
itemPrice (required)number800Item price
warrantyPrice (required)number120Warranty price
coverageYearsnumber3Warranty covers (from purchase)
overlapYearsnumber2Of 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.
annualFailureProbabilityPercentnumber5Chance of a failure per year. Your estimate; reliability differs a lot by product and brand.
averageRepairCostnumber250Typical repair cost
deductiblenumber0Deductible per claim
claimApprovalPercentnumber80Chance 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)

{
  "mcpServers": {
    "warranty-value-calculator": { "type": "http", "url": "https://warrantyvaluecalculator.usefulweb.site/mcp" }
  }
}