API & MCP
Everything a person can do on How Long Will It Last?, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://howlongwillitlast.usefulweb.site/api/v1/calculate– run How Long Will It Last?GET https://howlongwillitlast.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
How Long Will It Last?
Pick an appliance or home component, enter its age, how hard it is used and how well it is maintained. The tool uses the life-expectancy ranges published in InterNACHI's Standard Estimated Life Expectancy Chart for Homes to estimate remaining years, the share of life used, and a replacement planning window.
| Field | Type | Default | Description |
|---|---|---|---|
item | select (air-conditioner-window, trash-compactor, dehumidifier, dishwasher, food-waste-disposal, dryer-vent-plastic, dryer-vent-steel, clothes-dryer, exhaust-fans, freezer, gas-oven, hand-dryer, humidi | "refrigerator" | Item |
ageYears (required) | number | 5 | Current age |
usage | select (light, normal, heavy) | "normal" | Usage intensity |
maintenance | select (good, average, poor) | "good" | Maintenance quality |
Example request
7-year-old refrigerator, normal use
curl -X POST https://howlongwillitlast.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"item":"refrigerator","ageYears":7,"usage":"normal","maintenance":"good"}'
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://howlongwillitlast.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
how_long_will_it_last - Local stdio connector:
node src/mcp-stdio.ts --tool=how-long-will-it-last
{
"mcpServers": {
"how-long-will-it-last": { "type": "http", "url": "https://howlongwillitlast.usefulweb.site/mcp" }
}
}