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

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.

Inputs of Is It Worth It?
FieldTypeDefaultDescription
yearsinteger5How long you need it
discountRatePercentnumber3Discount rate. What money is worth to you per year (e.g. savings interest). Used for NPV only.
currencytext"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)

{
  "mcpServers": {
    "is-it-worth-it": { "type": "http", "url": "https://isitworthit.usefulweb.site/mcp" }
  }
}