API & MCP
Everything a person can do on Is It Worth It?, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://isitworthit.usefulweb.site/api/v1/calculate– run Is It Worth It?GET https://isitworthit.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Is It Worth It?
Enter the options you are considering (buy new, rent, repair what you have, subscribe) with upfront, monthly and one-off costs, resale value and a repair allowance. The tool computes total cost of ownership, net present value of costs, cost per month, a ranking and when the best option overtakes the runner-up.
| Field | Type | Default | Description |
|---|---|---|---|
years | integer | 5 | How long you need it |
discountRatePercent | number | 3 | Discount rate. What money is worth to you per year (e.g. savings interest). Used for NPV only. |
currency | text | "EUR" | Currency. Shown in results only; no conversion is performed. |
options (required) | table | — | Options. Costs are positive numbers. Resale is what you expect to get back at the end. One-off year 0 = at the start. |
Example request
Washing machine: buy, rent or repair the old one (5 years)
curl -X POST https://isitworthit.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"years":5,"discountRatePercent":3,"currency":"EUR","options":[{"name":"Buy new","kind":"buy","upfront":650,"resale":100,"repairPerYear":20},{"name":"Rent","kind":"rent","monthly":15,"oneOff":30},{"name":"Repair old","kind":"repair","upfront":220,"repairPerYear":60,"oneOff":650,"oneOffYear":3}]}'
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://isitworthit.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
is_it_worth_it - Local stdio connector:
node src/mcp-stdio.ts --tool=is-it-worth-it
{
"mcpServers": {
"is-it-worth-it": { "type": "http", "url": "https://isitworthit.usefulweb.site/mcp" }
}
}