# API Reference

> API reference for the Digital Calculator MCP server: endpoints, headers, authentication, the response envelope, error codes, and every tool's inputs and outputs with real examples.

**URL**: https://www.digitalcalculator.info/mcp/api-reference/  
**Last Updated**: 2026-11-13

How to call each of the 12 tools on the hosted MCP server, over MCP or REST, what comes back, and what every error means. Every figure is an educational estimate from deterministic formulas, not financial, tax or legal advice.

## Overview

-   **MCP endpoint:** `https://mcp.digitalcalculator.info/mcp` — the MCP Streamable HTTP transport: JSON-RPC 2.0 over `POST`, stateless. No key is needed.
-   **REST endpoint:** `POST https://api.digitalcalculator.info/v1/tools/{alias}/calculate` — the same engines and the same result object, without the JSON-RPC wrapper. The request body is the tool’s arguments.
-   **Live version:** read `result.serverInfo.version` from the `initialize` (or `server/discover`) response; it always names what the server is running. What changed in each release is in the [changelog](https://www.digitalcalculator.info/mcp/changelog/), and the stability rules are in the [contract](https://www.digitalcalculator.info/mcp/contract/).
-   **Schemas:** `tools/list` returns every tool’s `inputSchema` and `outputSchema`, with each argument’s type, range, default and unit. This page explains them; the live schema is authoritative.
-   **Terms:** [`LICENSE-API.md`](https://unpkg.com/@markcolabs/mcp/LICENSE-API.md) governs the hosted endpoint (it also ships in the npm package).

Units are the same everywhere: money is USD, and every rate is a whole-number percent (`6.5` means 6.5%).

| Tool | What it computes | REST `{alias}` |
| --- | --- | --- |
| [`plan_retirement_income`](https://www.digitalcalculator.info/mcp/api-reference/#plan-retirement-income) | 401(k) accumulation, Social Security estimate and RMD picture for one person, in one linked call | `plan-retirement-income` |
| [`evaluate_roth_conversion`](https://www.digitalcalculator.info/mcp/api-reference/#evaluate-roth-conversion) | Federal tax on one Roth conversion, with a break-even year | `evaluate-roth-conversion` |
| [`check_contribution_eligibility`](https://www.digitalcalculator.info/mcp/api-reference/#check-contribution-eligibility) | Contribution limit and eligibility for a 401(k), traditional IRA, Roth IRA or HSA | `check-contribution-eligibility` |
| [`project_growth`](https://www.digitalcalculator.info/mcp/api-reference/#project-growth) | Growth of a balance with contributions, nominal and after inflation | `project-growth` |
| [`evaluate_affordability`](https://www.digitalcalculator.info/mcp/api-reference/#evaluate-affordability) | The highest home price a budget supports at 28/36 debt-to-income targets | `evaluate-affordability` |
| [`compare_tax_years`](https://www.digitalcalculator.info/mcp/api-reference/#compare-tax-years) | What changes from 2026 to 2027 for one person, each figure with its source | `compare-tax-years` |
| [`net_worth_percentile`](https://www.digitalcalculator.info/mcp/api-reference/#net-worth-percentile) | Where a net worth ranks in the Federal Reserve’s 2025 Survey of Consumer Finances | `net-worth-percentile` |
| [`mortgage_monthly_payment`](https://www.digitalcalculator.info/mcp/api-reference/#mortgage-monthly-payment) | Monthly principal and interest on a fixed-rate mortgage | `mortgage` (camelCase body) |
| [`loan_monthly_payment`](https://www.digitalcalculator.info/mcp/api-reference/#loan-monthly-payment) | Monthly payment on any fixed-rate amortizing loan | `loan` (camelCase body) |
| [`paycheck_net_pay`](https://www.digitalcalculator.info/mcp/api-reference/#paycheck-net-pay) | Take-home pay per paycheck after federal tax and FICA | `paycheck` (camelCase body) |
| [`emergency_fund_recommendation`](https://www.digitalcalculator.info/mcp/api-reference/#emergency-fund-recommendation) | Emergency-fund target and the months to reach it | `emergency-fund` (camelCase body) |
| [`money_flow_map`](https://www.digitalcalculator.info/mcp/api-reference/#money-flow-map) | A monthly budget summary and a link to its money-flow map | none (MCP only) |
| [`generate_report`](https://www.digitalcalculator.info/mcp/api-reference/#generate-report) (paid key) | A PDF report for a calculator scenario | `POST https://mcp.digitalcalculator.info/v1/reports/{tool}` |

Four REST aliases keep the wire they had before the MCP tools moved to snake\_case: their bodies use camelCase names (`annualRatePercent`, `termYears`; `federalFilingStatus` for `paycheck`). Every other alias takes the same snake\_case arguments as the MCP tool. See [Compatibility](https://www.digitalcalculator.info/mcp/api-reference/#legacy-rest-aliases).

## Requests

Supported methods: `initialize`, `server/discover`, `ping`, `tools/list`, `tools/call`, `resources/list`, `resources/read`, `prompts/list`, `prompts/get`. A tool call:

```json
{
  "jsonrpc": "2.0", "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mortgage_monthly_payment",
    "arguments": { "principal": 300000, "annual_rate_percent": 6.5, "term_years": 30 }
  }
}
```

The examples under each tool show `params.arguments` only. The same object is the REST body for every alias that takes snake\_case.

### Protocol versions

The server speaks protocol revisions `2026-07-28` (the default), `2025-11-25` and `2025-06-18`, through two handshakes on the same stateless code path:

-   **`initialize`** — the session-style handshake older hosts use; the version travels in `params.protocolVersion`.
-   **`server/discover`** — the 2026-07-28 stateless handshake: no `initialized` notification and no session header. A request may also carry its version in `params._meta.protocolVersion`.

**Scheduled change:** no earlier than **2027-05-27**, `initialize` asking for `2026-07-28` is answered with `2025-11-25`, and a request that sends `MCP-Protocol-Version: 2026-07-28` without the per-request envelope is refused. Until then both are answered as they are today. Details and what to do now: [Upcoming changes](https://www.digitalcalculator.info/mcp/contract/#initialize-protocol-version).

Discovery results change only when the server is deployed, so they say how long they can be cached: `server/discover`, `tools/list`, `resources/list` and `prompts/list` carry top-level `ttlMs: 86400000` (24 hours) and `cacheScope: "public"` (`"private"` on a keyed `tools/list`, which also lists `generate_report`); every `resources/read` body carries the same two fields at `_meta["info.digitalcalculator/cache"]`. `initialize` and `tools/call` carry neither.

### Request metadata (2026-07-28 envelope)

A request whose `params._meta` carries `io.modelcontextprotocol/protocolVersion` (a string) and `io.modelcontextprotocol/clientCapabilities` (an object), and optionally `io.modelcontextprotocol/clientInfo`, is checked against its headers, as that revision’s transport requires: `MCP-Protocol-Version` must equal the envelope’s version and `Mcp-Method` the body’s `method`; `tools/call` and `prompts/get` also send `Mcp-Name` equal to `params.name`, and `resources/read` sends it equal to `params.uri` (plain, or as a `=?base64?…?=` value). The answers to a failed check are in [Errors](https://www.digitalcalculator.info/mcp/api-reference/#errors) (`-32602`, `-32020`, `-32022`, and HTTP 404 for an unknown method). A request without the envelope is not checked, even when it sends `MCP-Protocol-Version: 2026-07-28`.

### Headers

| Header | Direction | Meaning |
| --- | --- | --- |
| `Content-Type: application/json` | request | Required on every request with a body (parameters such as `charset=utf-8` are fine); anything else is HTTP 415. The bodyless `POST /v1/keys/public` needs none |
| `Accept: application/json, text/event-stream` | request | What MCP clients send. Every answer is a single JSON body |
| `Authorization: Bearer <key>` | request | Optional. A `dc_pub_` or `dc_bearer_` key; see [Authentication](https://www.digitalcalculator.info/mcp/api-reference/#authentication) |
| `MCP-Protocol-Version` | request | The protocol revision. Sending `2025-06-18` or later also switches `content[0].text` to a [short summary](https://www.digitalcalculator.info/mcp/api-reference/#content-summary) |
| `Mcp-Method`, `Mcp-Name` | request | Required only with the [2026-07-28 envelope](https://www.digitalcalculator.info/mcp/api-reference/#request-metadata) |
| `Origin` | request | Leave it out (MCP hosts, SDKs, server code and curl do). Any value other than `https://www.digitalcalculator.info` is HTTP 403 |
| `Mcp-Session-Id` | both | Optional. The server issues none and keeps no session; it echoes one you send |
| `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` | response | The 5-minute window: its size, what is left, and when it resets (Unix seconds). On every keyed response, and on an anonymous 429 |
| `X-Quota-Daily-Limit`, `X-Quota-Daily-Remaining`, `X-Quota-Reset` | response | A key’s daily allowance and its reset at UTC midnight (Unix seconds). On every keyed response |
| `Retry-After` | response | Seconds to wait, on a 429 for an exhausted 5-minute window (keyed or anonymous) and on an anonymous daily 429. A key’s daily 429 carries `X-Quota-Reset` instead |

A successful anonymous call carries no rate-limit headers: an anonymous answer is the same whether or not it is close to a limit.

### Body size and JSON

A request body is at most **4 KB (4,096 bytes)** on `/mcp` and on `/v1/tools/{alias}/calculate`. A larger body is HTTP 413: on `/mcp` a JSON-RPC error `-32600` with `"message": "Request body too large"` and `"id": null`; on REST `INPUT_VALIDATION` with the same message. A body that is not valid JSON is HTTP 400: `-32700` on `/mcp`, `INPUT_VALIDATION` (`"Body is not valid JSON"`) on REST. One request is one JSON-RPC message; a batch is not served.

### Unknown arguments are rejected

Every tool’s `inputSchema` sets `additionalProperties: false`, and `tools/call` enforces it for every tool: an unknown argument fails with `INPUT_VALIDATION`, `field` set to the first unknown key, and a message that proposes the closest accepted name when there is one (`term_year` gets “did you mean ‘term\_years’”):

```json
{
  "error": {
    "code": "INPUT_VALIDATION",
    "message": "unknown argument 'down_payment' — no close match. mortgage_monthly_payment accepts only: principal, annual_rate_percent, term_years. Unknown keys are rejected, not ignored, so a misspelled argument cannot silently change the answer.",
    "field": "down_payment",
    "retriable": false
  }
}
```

Other validation messages name their failure: `"<field> is required"`, `"<field> must be a number"` (or an integer, a string, a boolean), or the accepted range. A deprecated camelCase spelling is a declared argument, not an unknown one (see [Compatibility](https://www.digitalcalculator.info/mcp/api-reference/#legacy-rest-aliases)). `generate_report` checks only its own two arguments; its `input` object is open. The REST routes ignore unknown keys.

## Authentication

| Access | How | Allowance | Adds |
| --- | --- | --- | --- |
| No key | Send no `Authorization` header | 500 calls per UTC day and 30 per 5 minutes, per IP address; calls from Claude’s connector range share their own allowance ([below](https://www.digitalcalculator.info/mcp/api-reference/#rate-limits)) | Every tool except `generate_report` |
| Free key (`dc_pub_`) | [Mint one](https://www.digitalcalculator.info/mcp/api-reference/#get-a-key), send `Authorization: Bearer dc_pub_…` | 1,000 calls per UTC day and 60 per 5 minutes, per key | An allowance of your own, and rate-limit headers on every answer |
| Paid key (`dc_bearer_`) | A [subscription](https://www.digitalcalculator.info/mcp/pricing/); send `Authorization: Bearer dc_bearer_…` | A per-key daily cap and 5-minute window by plan ([plans](https://www.digitalcalculator.info/mcp/pricing/#rate-card)) | [`generate_report`](https://www.digitalcalculator.info/mcp/api-reference/#generate-report) and per-key report branding |

An invalid, revoked or expired key is HTTP 401, never a silent fall back to the anonymous tier. A key is counted on one meter across both transports. Keys work from servers, CLIs and MCP clients, not from web pages: a browser request whose `Origin` is not `https://www.digitalcalculator.info` is refused with HTTP 403.

### Get a free key

No signup, email or card: `POST https://api.digitalcalculator.info/v1/keys/public` (no body) returns HTTP 201 with a `dc_pub_` key and a private `claimToken`, or use the button on the [pricing page](https://www.digitalcalculator.info/mcp/pricing/#free-key-tier). Send the key as `Authorization: Bearer dc_pub_…` on either transport. Claiming a key with an email, paid keys, storing, replacing, and setting a key up in each client: [API keys](https://www.digitalcalculator.info/mcp/keys/).

The key is returned once

We store only its SHA-256 hash, so the key cannot be recovered, re-sent, or emailed — there is no account and no key list yet. Save it when you receive it; if you lose it, mint another. Minting is capped at **5 keys per IP per UTC day**.

### Rate limits

-   **The gateway:** about 100 requests a minute (burst 50) for the whole API, shared by every caller. No allowance reserves capacity against it, so a per-caller allowance is a ceiling, not a guaranteed rate.
-   **No key:** 500 `tools/call` requests per UTC day and 30 per 5-minute window, per IP address. Discovery (`initialize`, `server/discover`, `ping`, `tools/list`, `resources/list`, `resources/read`, `prompts/list`, `prompts/get`) is never counted, so connecting cannot use up the allowance. A request the server cannot read as one of those methods is counted.
-   **Calls through Claude’s connectors:** anonymous calls from the outbound range Anthropic publishes (`160.79.104.0/21`) share one allowance of 150 calls per 5 minutes and 5,000 per UTC day for the whole range.
-   **Free key:** 1,000 calls per UTC day and 60 per 5 minutes, counted against the key alone.
-   **Paid key:** a daily cap and a 5-minute window by plan ([plans and allowances](https://www.digitalcalculator.info/mcp/pricing/#rate-card)); report renders have a separate daily quota.

A refused call is HTTP 429; the body and headers are in [Errors](https://www.digitalcalculator.info/mcp/api-reference/#errors). For sustained higher volume, [email us](mailto:admin@markcolabs.com).

## Responses

### Result envelope

Every `tools/call` answer, success or tool-level error, is a JSON-RPC **result** with `resultType` at its top level. On success, `structuredContent` holds the tool result (the same object a REST call returns as its body), and `content[]` holds a text block followed by one `resource_link` block per cited source:

```json
{
  "jsonrpc": "2.0", "id": 1,
  "result": {
    "resultType": "complete",
    "content": [
      { "type": "text", "text": "Mortgage payment (principal and interest only):\n- Monthly payment: $1,896.20\n…" },
      { "type": "resource_link", "uri": "dc://methodologies/manifest", "name": "Calculator Methodology Manifest", "mimeType": "application/json" }
    ],
    "structuredContent": {
      "result": { "monthly_payment": 1896.2, "total_interest": 382633.47, "total_paid": 682633.47, … },
      "disclaimer": "Estimates only — for educational purposes. …",
      "methodology": { "url": "https://www.digitalcalculator.info/mortgage-calculator/methodology/", "version": "2026-05-09" },
      "rule_year": 2026,
      "sources": ["dc://methodologies/manifest"],
      "source_links": [{ "uri": "dc://methodologies/manifest", "url": "https://www.digitalcalculator.info/mortgage-calculator/methodology/" }],
      "provenance": [],
      "calculated_at": "2026-11-13T15:43:04.580Z",
      "engine_version": "1.0.1",
      "inputs": { "principal": 300000, "annual_rate_percent": 6.5, "term_years": 30 },
      "defaulted_inputs": []
    }
  }
}
```

`resultType` is `"complete"` for every finished answer and `"input_required"` only when a call that [opted into elicitation](https://www.digitalcalculator.info/mcp/api-reference/#elicitation) is missing a required input. A tool-level error sets `isError: true`, puts the [ToolError](https://www.digitalcalculator.info/mcp/api-reference/#toolerror-failure) JSON in `content[0].text`, and has no `structuredContent`, so check for the object rather than assume it. A JSON-RPC **error** (bad JSON, unknown method, a refused key or a rate limit on `/mcp`) is a different shape with no `resultType`.

### Result fields

| Field | Type | Meaning |
| --- | --- | --- |
| `result` | object | The tool’s own output, described under each tool |
| `result.assumptions` | object | Defaults the server applied, on the tools that have optional inputs with defaults ([below](https://www.digitalcalculator.info/mcp/api-reference/#assumptions-block)); `{}` when you supplied every value |
| `result.warnings` | array | Present only when there is something to say: a rate that looks like a decimal, an out-of-range argument that was answered, or IRS figures that may be out of date ([codes](https://www.digitalcalculator.info/mcp/api-reference/#warnings)) |
| `disclaimer` | string | The standard disclaimer, also at `dc://disclaimers/ymyl` |
| `methodology` | object | `url`: the page that documents the formula; `version`: the date it was last materially updated |
| `rule_year` | integer | The statutory year the answer used (2026 unless you pass `rule_year`) |
| `sources` | string\[\] | The `dc://` resources the answer drew on; each is readable with `resources/read` |
| `source_links` | array | One `{ uri, url }` per `sources[]` entry, in the same order: the public page that shows the same figures |
| `provenance` | array | Per statutory resource used: `uri`, `url`, `table` (the section used, when the resource has several), `source` (the primary document), `source_url`, `last_verified`. Empty for pure arithmetic (mortgage, loan, growth) |
| `calculated_at` | string | ISO-8601 UTC timestamp |
| `engine_version` | string | SemVer of the formula behind this tool; it moves when the math changes |
| `inputs` | object | The arguments the answer was computed from, by their snake\_case names, defaults included. Send it back and you get the same answer |
| `defaulted_inputs` | string\[\] | The `inputs` entries that came from a default |

Money is a JSON number rounded to the cent (except in `money_flow_map`, which keeps amounts as given); an amount exactly on half a cent rounds away from zero. Rates, ratios, counts, ages and table factors keep their natural precision.

### Sources and source links

A chat client cannot follow a `dc://` URI, so `source_links[]` and each `provenance[]` record pair it with a public page showing the same figures: `dc://irs/limits/2026` links the [401(k)](https://www.digitalcalculator.info/401k-retirement-calculator/methodology/), [IRA](https://www.digitalcalculator.info/ira-calculator/methodology/) or [HSA](https://www.digitalcalculator.info/hsa-calculator/methodology/) methodology or the [2026 tax brackets](https://www.digitalcalculator.info/paycheck-calculator/2026-tax-brackets/), by the table used; `dc://irs/uniform-lifetime` the [RMD methodology](https://www.digitalcalculator.info/rmd-calculator/methodology/); `dc://ssa/bend-points/2026` the [Social Security methodology](https://www.digitalcalculator.info/social-security-calculator/methodology/). Where no page shows a resource (the manifest, a call that names no single table, or a rule year the site does not publish), the link is the tool’s methodology page, the same URL as `methodology.url`. A page showing 2026 figures is never offered for another year’s table.

### The text summary

A request that sends `MCP-Protocol-Version` `2025-06-18` or later gets a short plain-text summary in `content[0].text`: the key figures (currency to the cent, percentages to at most two decimals, your own values as entered), notes, applied assumptions, unit warnings, the methodology link, the sources with their pages, and the disclaimer. A request without the header gets the whole tool result serialized as JSON there instead. `params._meta["info.digitalcalculator/contentFormat"]` picks either per call (`"summary"` or `"json"`). `structuredContent` is the same either way, and a tool-level error is never summarized.

### Applied defaults (`assumptions`)

When you omit an optional input that has a default, `result.assumptions` names it, the value applied and why, so you can show it as an assumption rather than as the user’s figure:

```json
"assumptions": {
  "annual_salary_growth_percent": {
    "value": 0,
    "defaulted": true,
    "note": "No salary growth was provided, so salary was held flat for the whole projection. A real raise history would raise the projected balance."
  }
}
```

The object is always present on these tools, and `{}` means you supplied every value. `plan_retirement_income` reports only for the modules you selected. An entry with `fixed: true` is a model factor no input can change, so it never appears in `inputs`: `career_average_factor` (0.65) in the Social Security module, and `annual_real_return_percent` (5) in `net_worth_percentile`. The server cannot tell a rate the user stated from one an agent made up, so the required rate inputs (`annual_return_percent`, `annual_rate_percent`) have no default: get them from the user, or propose them first.

### Key names

Read the snake\_case keys. Results carry each key in snake\_case, every rate or ratio as a whole-number `*_percent` (a decimal ratio times 100, rounded to 2 decimals; your own argument echoed exactly), and notes that name arguments as the schema does. Older keys are still there beside them: every camelCase key (`monthlyPayment` beside `monthly_payment`, at every depth) and the decimal ratios (`marginalRateOnConversion: 0.22` beside `marginal_rate_on_conversion_percent: 22`). The output schemas mark them `deprecated: true` and they are [scheduled for removal](https://www.digitalcalculator.info/mcp/contract/#v2-removal); `warnings[].field` is deprecated in favour of `warnings[].argument`. The examples on this page show the snake\_case keys only. The full list is in [Compatibility](https://www.digitalcalculator.info/mcp/api-reference/#legacy-rest-aliases).

## Errors

A tool-level error is a successful JSON-RPC result with `isError: true` and this JSON in `content[0].text`; on REST it is the response body, with an HTTP 4xx status:

```typescript
interface ToolError {
  error: {
    code: string;          // see the table below
    message: string;       // human-readable; names the field and the accepted values
    field?: string;        // the argument that failed, when there is one
    retriable: boolean;    // true only for RATE_LIMIT
  };
}
```

| HTTP | Code | Retry? | Meaning and what to do |
| --- | --- | --- | --- |
| 200 (REST 400) | `INPUT_VALIDATION` | no | A missing, mistyped, out-of-range or unknown argument, an unknown tool, or both spellings of one argument with different values. Fix the argument named in `field`. On `/mcp` a rejected argument is never an HTTP 400 |
| 200 (REST 400) | `BUSINESS_RULE` | no | Valid input the rules cannot answer, such as a `rule_year: 2027` call that needs a 2027 figure the server does not hold; the message names it. Change the input |
| 200 | `authentication_required` | no | `generate_report` without a paid key |
| 200 | `report_quota_exceeded`, `rate_limited`, `REPORT_UNAVAILABLE` | see [generate\_report](https://www.digitalcalculator.info/mcp/api-reference/#generate-report-errors) | Report-only errors |
| 400 | `-32700` | no | The body is not valid JSON (REST: `INPUT_VALIDATION`, `"Body is not valid JSON"`) |
| 200 | `-32601` | no | Unknown method (HTTP 404 under the [2026-07-28 envelope](https://www.digitalcalculator.info/mcp/api-reference/#request-metadata)). A `resources/read` for a year the server does not hold also answers `-32601` |
| 400 | `-32602` | no | A malformed 2026-07-28 envelope; `error.data.envelope` names the key |
| 400 | `-32020` | no | A header the envelope requires is missing or disagrees with the body; `error.data.mismatch` shows both |
| 400 | `-32022` | no | The envelope names a revision this server does not serve; `error.data` lists `supported` |
| 401 | `-32001` (REST `UNAUTHORIZED`) | no | The key is malformed, unknown, revoked or expired; `error.data.reason` is `invalid_token`, `token_revoked` or `token_expired`. Fix the key, or send none for the anonymous tier |
| 403 | `-32600` (REST `INPUT_VALIDATION`) | no | An `Origin` header other than `https://www.digitalcalculator.info`; `error.data.reason` is `origin_not_allowed`. Call from a server, or drop the header |
| 413 | `-32600` (REST `INPUT_VALIDATION`) | no | The body is over 4 KB (`"Request body too large"`). Send less |
| 415 | `-32600` (REST `INPUT_VALIDATION`) | no | The body is not declared as `Content-Type: application/json`; `error.data.reason` is `unsupported_media_type` |
| 429 | `-32000` (REST `RATE_LIMIT`) | yes | Your allowance is used up. `error.data` carries `reason` (`rate_limited` or `quota_exceeded`), `scope` (`window` or `daily`), `window`, `limit`, `retry_after_seconds` and `reset_epoch`. Wait for `Retry-After` (or `X-Quota-Reset`), or use a key |
| 429 | none (`{"message":"Too Many Requests"}`) | yes | The shared gateway limit, not your allowance: no JSON-RPC body and no rate-limit headers. Back off for a few seconds and retry |
| 500 | `INTERNAL` (`-32603` on `/mcp`) | no | A server fault; [report it](mailto:admin@markcolabs.com) |

The `/mcp` errors with a negative code are JSON-RPC error objects that echo the request `id` when it can be read (`null` otherwise; the 403 and 415 bodies carry none). REST errors are always one `{"error":{...}}` object. `-32001` is never a rate limit and `-32000` is never a bad key.

### Warnings

A `warnings[]` entry never changes a figure: the call is answered as sent, and the entry says what to check. Each carries `field` (deprecated), `argument` (the advertised argument name) and `message`.

| Warning | When |
| --- | --- |
| no `code`; carries `suggested` | A rate argument looks like a decimal (`0.065` where `6.5` was likely meant). The value is used as entered and `suggested` gives the percent reading |
| `input_out_of_range` | An argument outside its documented range was answered anyway. Today only `paycheck_net_pay`’s legacy `dependents` (a whole number from 0 to 20) reaches it; such values will be [refused no earlier than 2027-05-27](https://www.digitalcalculator.info/mcp/contract/#input-range-rejection) |
| `rule_year_newer_published` | On `check_contribution_eligibility` and `plan_retirement_income`: the IRS has published newer figures than the `rule_year` the answer used; the message says how to apply them |
| `rule_year_past_review` | The same tools: the rule year’s figures are past their review date |

## `plan_retirement_income`

Retirement income for one person in one linked call: 401(k) accumulation to a retirement age, the Social Security estimate at a claim age, and the required-minimum-distribution (RMD) picture, all on one `birth_year`, `annual_salary` and `rule_year`. Pick modules with `include[]`; each needs only its own inputs, so an RMD-only call needs just `birth_year` and `balance`. Before RMDs start, the `rmd` module answers `applies: false` with the start age and first RMD year. It can also [solve for an input from a target](https://www.digitalcalculator.info/mcp/api-reference/#target-mode).

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `include` | array of enum | yes | `accumulation` · `social_security` · `rmd` | Modules to compute (1–3, duplicates ignored) |
| `birth_year` | integer | yes | 1900 – 2100 | Single age basis for every module (1943–2004 when `social_security` is selected) |
| `rule_year` | integer | no | `2026` – `2027` | Statutory year; defaults to 2026, or 2027 on the 2027 figures published so far; always echoed in the result |
| `balance` | number (USD) | conditional | 0 – 100,000,000 | Required by `accumulation` (current 401(k) balance) and `rmd` (prior year-end balance) |
| `annual_salary` | number (USD) | conditional | 0 – 100,000,000 | Required by `accumulation` and `social_security` (max 1,000,000 for that module) |
| `contribution_percent` | number | conditional | 0 – 100 | Employee 401(k) contribution %; required by `accumulation` |
| `employer_match_percent` | number | no | 0 – 100 | Optional for `accumulation`: match % (50 = $0.50 per $1); default 0 |
| `employer_match_limit_percent` | number | no | 0 – 100 | Optional for `accumulation`: cap on % matched; default 0 |
| `annual_salary_growth_percent` | number | no | 0 – 20 | Optional for `accumulation`: salary growth %; default 0 |
| `annual_return_percent` | number | conditional | 0 – 20 | Investment return %; required by `accumulation` |
| `retirement_age` | integer | conditional | 18 – 100 | Required by `accumulation`; must exceed the rule-year age derived from `birth_year` |
| `catch_up_enabled` | boolean | no | — | Optional for `accumulation`: apply IRS catch-up in eligible years; default `false` (explicit opt-in) |
| `claim_age` | number | conditional | 62 – 70 | Required by `social_security` |
| `years_worked` | integer | no | 0 – 50 | Optional for `social_security`; default 35 (SSA averaging window) |
| `life_expectancy` | number | no | 62 – 120 | Optional for `social_security`; default 85; drives the lifetime benefit projection |
| `spouse_birth_year` | integer | no | 1900 – 2100 | Optional for `rmd`; a sole-beneficiary spouse >10 years younger triggers the `joint_life_table_may_apply` warning |
| `is_spouse_sole_beneficiary` | boolean | no | — | Optional for `rmd`; see above |
| `birth_month` | integer | no | 1 – 12 | Optional for `rmd`; matters only for births in 1949 or earlier: born before July 1, 1949 the start age is 70½, from July 1, 1949 it is 72, and for the 70½ group it sets the first RMD year. Omitted, the earlier answer is used and disclosed in `assumptions` |
| `target` | object | no | `{ metric, value, solve_for }` | [Target mode](https://www.digitalcalculator.info/mcp/api-reference/#target-mode): state the outcome and the tool solves for the named input. Omit the input named in `solve_for` |

`accumulation` needs `balance`, `annual_salary`, `contribution_percent`, `annual_return_percent` and `retirement_age`; `social_security` needs `annual_salary` and `claim_age`; `rmd` needs `balance`. A missing one is `INPUT_VALIDATION` naming the field and the module (or, with [elicitation](https://www.digitalcalculator.info/mcp/api-reference/#elicitation), one question naming all of them).

### Output

`modules` holds only the modules you selected. `accumulation` caps each year’s employee plus employer additions at the IRC 415(c) limit ($72,000 for 2026, any catch-up on top), taking the excess off the match, and says so in `annual_additions_note` when it binds; it agrees with the [401(k) calculator](https://www.digitalcalculator.info/401k-retirement-calculator/) to the cent. When the `rmd` module applies, it returns `rmd_amount`, `distribution_period`, `life_expectancy_factor`, `table_used`, `penalty_if_missed` (25%, or 10% if corrected), `joint_life_table_may_apply` and `spouse_beneficiary_note`.

Request:

```json
{ "include": ["accumulation", "social_security", "rmd"], "birth_year": 1968, "annual_salary": 110000, "balance": 500000,
  "contribution_percent": 10, "annual_return_percent": 6, "retirement_age": 62, "claim_age": 62 }
```

Response (`result`, trimmed):

```json
{
  "rule_year": 2026,
  "birth_year": 1968,
  "age_in_rule_year": 58,
  "modules": {
    "accumulation": {
      "future_balance": 679359.26, "total_contributions": 44000, "employer_contrib_total": 0, "growth_earned": 135359.26,
      "year_by_year": [ { "year": 1, "age": 59, "employee_contribution": 11000, "employer_match": 0, "growth": 30000, "ending_balance": 541000 }, … ],
      "catch_up_note": "This projection EXCLUDES catch-up contributions (catch_up_enabled is false). …"
    },
    "social_security": {
      "monthly_benefit_at_fra": 2683.7, "adjusted_monthly_benefit": 1878.59, "lifetime_benefit_projection": 518491,
      "fra_age": 67, "eligibility_year": 2030, "bend_points_estimated": true, "pia_at_eligibility": 2683.7,
      "cola_adjustment": { "applied": false, "colas": [], "latest_published": 2026, "complete": true, "note": "…" }
    },
    "rmd": {
      "applies": false, "rmd_start_age": 75, "first_rmd_year": 2043, "note": "No RMD is required for rule year 2026: …",
      "first_rmd_estimate": { "rmd_year": 2043, "age_in_rmd_year": 75, "balance_at_retirement": 679359.26, "years_carried": 12,
        "annual_return_percent": 6, "prior_year_end_balance": 1367004.31, "distribution_period": 24.6, "rmd_amount": 55569.28, "note": "…" }
    }
  },
  "assumptions": {
    "employer_match_percent": { "value": 0, "defaulted": true, "note": "No employer match was provided, so none was applied." }, …,
    "career_average_factor": { "value": 0.65, "defaulted": true, "fixed": true, "note": "Fixed model assumption, not an input: …" }
  }
}
```

**The first-RMD estimate.** With both `accumulation` and `rmd` selected, before RMDs start, the `rmd` module adds `first_rmd_estimate`: the projected balance at retirement carried at the same `annual_return_percent`, compounded yearly with no further contributions or withdrawals, to December 31 of the year before the first RMD year, divided by the Uniform Lifetime Table period for the age reached that year (a longer period when the sole beneficiary is a spouse more than 10 years younger). It is a planning estimate; actual returns and withdrawals change the real figure.

**Social Security scope.** The estimate applies SSA’s wage indexing and highest-35-years rule to a modeled career (65% of the current salary each year, capped at that year’s wage base, disclosed as `assumptions.career_average_factor`), not to the person’s actual earnings record. For an authoritative figure, point the user to [ssa.gov/myaccount](https://www.ssa.gov/myaccount/).

**Errors:** `INPUT_VALIDATION` for a missing module input or a `retirement_age` not above the current age; `BUSINESS_RULE` for a `rule_year: 2027` call that needs a figure the server does not hold.

## `evaluate_roth_conversion`

The federal income tax on one Roth conversion at the rule year’s brackets: the tax owed, the top bracket the conversion reaches, the effective rate on it, the Roth five-year-rule flag, and a break-even year when you give a retirement tax rate.

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `conversion_amount` | number (USD) | yes | 0 – 10,000,000 | Amount converted to Roth |
| `birth_year` | integer | yes | 1900 – 2100 | Drives the Roth 5-year-rule flag via the rule-year age (18–100) |
| `filing_status` | enum | yes | `single` · `married_filing_jointly` · `married_filing_separately` · `head_of_household` | Canonical shared enum |
| `current_taxable_income` | number (USD) | yes | 0 – 10,000,000 | Taxable income BEFORE adding the conversion |
| `retirement_marginal_rate_percent` | number | no | 0 – 50 | Expected retirement marginal rate; enables break-even calc |
| `expected_return_percent` | number | no | 0 – 20 | Annual return on both paths; default 7 |
| `horizon_years` | integer | no | 1 – 60 | Years to compare over for break-even and the gap in the note; default 20 |
| `rule_year` | integer | no | `2026` – `2027` | Statutory year; defaults to 2026, or 2027 on the 2027 figures published so far |

### Output

Request:

```json
{ "conversion_amount": 50000, "birth_year": 1968, "filing_status": "married_filing_jointly", "current_taxable_income": 110000 }
```

Response (`result`):

```json
{
  "rule_year": 2026,
  "tax_owed": 11000,
  "marginal_rate_on_conversion_percent": 22,
  "effective_rate_on_conversion_percent": 22,
  "five_year_rule_applies": true,
  "break_even_years": null,
  "break_even_note": "Break-even needs your expected retirement marginal rate; provide it to compute it. …",
  "meta": { "table_year": 2026, "source": "IRS Rev. Proc. 2025-32" }
}
```

`break_even_years` is the first whole year within `horizon_years` in which converting is at least even with not converting, compared like with like (the traditional balance after tax at the retirement rate, plus the conversion tax kept invested at the same return), or `null`. With constant rates the gap keeps one sign, so the answer is `0` or `null`, and `break_even_note` says which and gives the gap. The Roth conversion calculator uses the same rule. One conversion only: multi-year ladders, state tax and IRMAA are not modeled.

**Errors:** `INPUT_VALIDATION` for an argument outside its range.

## `check_contribution_eligibility`

How much you can contribute for the rule year, with phase-outs and eligibility applied. `kind` picks the account: `401k` (the IRC §402(g) limit with catch-ups, including the ages 60–63 super catch-up), `trad_ira` (the limit plus the IRC §219(g) deduction status), `roth_ira` (the IRC §408A(c)(3) income phase-out) or `hsa` (limits by coverage tier, the 55-and-over catch-up and the employer offset). The limits are also readable as [`dc://irs/limits/{year}`](https://www.digitalcalculator.info/mcp/api-reference/#resources).

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `kind` | enum | yes | `401k` · `trad_ira` · `roth_ira` · `hsa` | Account type (canonical shared enum) |
| `birth_year` | integer | yes | 1900 – 2100 | Catch-up eligibility (50+ IRA/401k, 55+ HSA, 60–63 super catch-up) derives from the rule-year age (18–100) |
| `rule_year` | integer | no | `2026` – `2027` | Statutory year; defaults to 2026, or 2027 on the 2027 figures published so far |
| `filing_status` | enum | conditional | canonical shared enum | Required when `kind` is `trad_ira` or `roth_ira` |
| `magi` | number (USD) | conditional | 0 – 10,000,000 | Required when `kind` is `trad_ira` or `roth_ira`; drives the phase-outs |
| `workplace_coverage` | boolean | no | — | trad\_ira and roth\_ira (both report the Traditional deduction status): active participant in a workplace plan? Omit and the deduction status assumes no coverage, flagged indicative-only |
| `spouse_workplace_coverage` | boolean | no | — | trad\_ira and roth\_ira (the same Traditional deduction status), married filers: when the filer is not covered, married filing jointly applies the higher spousal phase-out band (IRC §219(g)(7)) and married filing separately applies its own narrow band |
| `coverage_tier` | enum | conditional | `self-only` · `family` | Required when `kind` is `hsa` |
| `employer_contribution` | number (USD) | no | 0 – 50,000 | hsa: reduces employee payroll-deduction room dollar-for-dollar; default 0 |
| `estimated_marginal_rate_percent` | number | no | 0 – 50 | hsa: returns the payroll-deduction tax-savings estimate |

### Output

Every result carries `rule_year`, `kind`, `birth_year` and `age_in_rule_year`, plus the fields for that kind. Request (born 1964, in the ages 60–63 window):

```json
{ "kind": "401k", "birth_year": 1964 }
```

Response (`result`):

```json
{
  "rule_year": 2026, "kind": "401k", "birth_year": 1964, "age_in_rule_year": 62,
  "contribution_limit": …, "catch_up_eligible": true, "super_catch_up_applies": true,
  "catch_up_amount": …, "total_contribution_limit": …,
  "meta": { "table_year": 2026, "source": "IRS Notice 2025-67; SECURE 2.0 Act §109 (ages 60-63 super catch-up)" }
}
```

The three amounts come back as plain numbers: `contribution_limit` is the 2026 base limit of $24,500, `catch_up_amount` the super catch-up of $11,250, and `total_contribution_limit` $35,750. The IRA kinds return `eligible_contribution`, `traditional_cap`, `roth_cap`, `catch_up`, `phase_out_reduction`, `catch_up_eligible`, `traditional_deduction_status` and `traditional_deduction_note`; a Roth limit reduced by the phase-out rounds up to the next $10, as IRS Publication 590-A’s worksheet does. The HSA kind returns `contribution_limit`, `catch_up_amount`, `total_contribution_limit`, `employer_contribution`, `employee_max_remaining`, `payroll_deduction_tax_savings`, `employer_contribution_exceeds_limit` and `excess_contribution` (with `excess_contribution_note` on the IRC §4973 6% excise tax when the employer contribution alone exceeds the limit).

**Errors:** `INPUT_VALIDATION` when the kind’s required fields are missing; `BUSINESS_RULE` for a 2027 figure the server does not hold. A `rule_year_newer_published` [warning](https://www.digitalcalculator.info/mcp/api-reference/#warnings) says when newer IRS figures exist.

## `project_growth`

The growth of a balance with yearly contributions (spread monthly) at a chosen compounding frequency, in nominal dollars and, with `inflation_rate_percent`, in today’s dollars (`real_future_value`). `rate_type` says how to read the rate: `nominal` (the default; compounded at `compounding_frequency`, the [compound interest calculator](https://www.digitalcalculator.info/compound-interest-calculator/)’s convention) or `apy` (an advertised annual percentage yield, the [savings calculator’s formula](https://www.digitalcalculator.info/savings-calculator/methodology/), matching it to the cent). Pass `apy` for a bank’s rate: read as nominal, an APY overstates the balance.

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `balance` | number (USD) | yes | 0 – 100,000,000 | Starting balance (principal) |
| `annual_contribution` | number (USD) | no | 0 – 12,000,000 | Yearly contribution, spread evenly across the year; default 0 |
| `annual_rate_percent` | number | yes | 0 – 50 | Annual growth rate as whole-number percent |
| `years` | integer | yes | 1 – 100 | Projection horizon in whole years |
| `compounding_frequency` | enum | no | `annually` · `semiannually` · `quarterly` · `monthly` · `daily` | Default `monthly` |
| `rate_type` | enum | no | `nominal` · `apy` | How to read the rate: `nominal` (compounded at `compounding_frequency`) or `apy` (an annual percentage yield, as banks advertise). The two differ under `semiannually`, `quarterly`, `monthly` and `daily` compounding; under `annually` they agree. Default `nominal` |
| `inflation_rate_percent` | number | no | 0 – 20 | When provided, the result also carries `real_future_value` |

### Output

Request:

```json
{ "balance": 10000, "annual_contribution": 6000, "annual_rate_percent": 7, "years": 30,
  "compounding_frequency": "monthly", "rate_type": "nominal", "inflation_rate_percent": 3 }
```

Response (`result`):

```json
{
  "future_value": 691150.47, "total_contributions": 190000, "interest_earned": 501150.47, "years": 30,
  "compounding_frequency": "monthly", "rate_type": "nominal", "annual_contribution": 6000,
  "inflation_rate_percent": 3, "real_future_value": 284744.84, "real_note": "real_future_value expresses the projected balance in rule-year (today's) dollars, deflated at 3% annual inflation over 30 years. future_value is the nominal figure.",
  "assumptions": {}
}
```

Every optional input was given, so `assumptions` is empty; omit `annual_contribution`, `compounding_frequency` or `rate_type` and each appears there with its default.

**Errors:** `INPUT_VALIDATION` for an argument outside its range.

## `evaluate_affordability`

The highest home price a budget supports: the price whose principal and interest keeps both the front-end ratio (housing ÷ gross monthly income) and the back-end ratio ((housing + debts) ÷ gross monthly income) at or under target, 28/36 by default. It inverts the formula [`mortgage_monthly_payment`](https://www.digitalcalculator.info/mcp/api-reference/#mortgage-monthly-payment) uses, so the payment it reports for `max_loan_amount` is exactly what that tool returns. Principal and interest only: fold taxes, insurance, HOA and PMI in through `monthly_property_costs`. Use `mortgage_monthly_payment` for the payment on a known price. [Methodology](https://www.digitalcalculator.info/mortgage-affordability-calculator/methodology/).

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `annual_income` | number (USD) | yes | 12 – 10,000,000 | Gross (pre-tax) annual household income; divided by 12 for the ratios |
| `monthly_debt_payments` | number (USD) | yes | 0 – 1,000,000 | Existing monthly debt obligations (auto, student, card minimums); excludes the prospective housing payment |
| `down_payment` | number (USD) | yes | 0 – 100,000,000 | Cash down payment; `max_home_price` = `max_loan_amount` + `down_payment` |
| `annual_rate_percent` | number | yes | 0 – 30 | Mortgage rate as whole-number percent (6.5 = 6.5%) |
| `term_years` | integer | yes | 1 – 50 | Mortgage term in whole years |
| `monthly_property_costs` | number (USD) | no | 0 – 100,000 | Fixed monthly taxes, insurance, HOA, PMI counted inside the housing payment; default 0 |
| `target_front_ratio_percent` | number | no | 1 – 60 | Front-end DTI target, whole-number percent; default 28 |
| `target_back_ratio_percent` | number | no | 1 – 70 | Back-end DTI target, whole-number percent; default 36 |
| `rule_year` | integer | no | 2026 – 2027 | Default 2026; echoed in the result. The ratios themselves are not statutory |

### Output

Request ($96,000 income, $500 a month of debt, $60,000 down, 6.5% over 30 years, $400 a month of property costs):

```json
{ "annual_income": 96000, "monthly_debt_payments": 500, "down_payment": 60000,
  "annual_rate_percent": 6.5, "term_years": 30, "monthly_property_costs": 400 }
```

Response (`result`). The front-end target binds: 28% of $8,000 is $2,240 of housing, less $400 of costs leaves $1,840 of principal and interest, the payment on a $291,107.91 loan:

```json
{
  "rule_year": 2026, "max_home_price": 351107.91, "max_loan_amount": 291107.91, "monthly_payment_at_max": 1840,
  "front_ratio_percent": 28, "back_ratio_percent": 34.25, "binding_constraint": "front_ratio",
  "note": "Principal & interest only: monthly_payment_at_max excludes taxes, insurance, HOA and PMI. … The front-end target set the maximum (the housing payment alone reaches it first)."
}
```

`binding_constraint` is `front_ratio` or `back_ratio`, whichever allows the smaller payment (a tie goes to `front_ratio`). When fixed costs already reach the target, the answer is a zero loan and a price equal to the down payment; when even the search bound (20 times annual income) stays under target, the bound is returned and the note says the search did not converge. Neither is an error. The answer cites only the methodology manifest, and `provenance` is empty.

**Errors:** `INPUT_VALIDATION` for an argument outside its range.

## `compare_tax_years`

What changes from one tax year to the next for one person: from a birth year, a filing status and the accounts held, every published limit, bracket and threshold that applies, the year before beside the new year with the change, each with the IRS or SSA document it comes from and the date it was read; the deadlines that apply; and `still_to_come`, the figures not yet published, named with the month they usually appear and never given a number. The groups cover the standard deduction, bracket starts and capital-gains thresholds; the 401(k), 403(b) and 457 limits with the catch-up for the person’s age, the annual additions limit, the Roth catch-up wage line and the pay a plan can count; the IRA limit and income ranges (head of household takes the single ranges); the HSA limit; the health FSA limit and carryover; and the Social Security wage base. It is the engine behind the [What Changes for You](https://www.digitalcalculator.info/what-changes-this-year/) page and gives the same answer. [Methodology](https://www.digitalcalculator.info/what-changes-this-year/#how-it-works).

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `birth_year` | integer | yes | 1927 – 2009 | Sets the age at the end of `rule_year`, which decides the catch-ups |
| `filing_status` | string | yes | the shared enum | `single`, `married_filing_jointly`, `married_filing_separately`, `head_of_household` |
| `accounts` | array | no | any of five | `401k` (covers 403(b) and 457 plans), `trad_ira`, `roth_ira`, `hsa`, `health_fsa`; omitted, the answer is the tax rows |
| `hsa_coverage` | string | no | `self_only` \| `family` | With `hsa` in `accounts`; default `self_only` |
| `has_wages` | boolean | no | — | Wages subject to Social Security tax; adds the wage-base rows; default `true` |
| `rule_year` | integer | no | 2027 | The new year, compared with the year before; default 2027 (the only year whose prior year is also held) |

### Output

Request:

```json
{ "birth_year": 1990, "filing_status": "single", "accounts": ["roth_ira"], "has_wages": false }
```

Response (`result`, trimmed). A money row carries numbers; an income range carries `{start, end}` in `from`, `to` and `change`:

```json
{
  "from_year": 2026, "to_year": 2027, "age_in_rule_year": 37, "filing_status": "single",
  "headline": "10 figures change for you in 2027", "changed_count": 10, "unchanged_count": 1,
  "groups": [
    { "id": "taxes", "title": "Your taxes (Single)", "rows": [
      { "id": "standard-deduction", "label": "Standard deduction", "kind": "money",
        "from": 16100, "to": 16600, "from_text": "$16,100", "to_text": "$16,600", "change": 500,
        "change_text": "+$500", "direction": "up",
        "source": { "doc": "IRS Rev. Proc. 2026-35", "url": "https://www.irs.gov/pub/irs-drop/rp-26-35.pdf", "read": "2026-11-08" } },
      …
    ] },
    { "id": "ira", "title": "IRAs", "rows": [
      { "id": "ira-limit", "label": "What you can put in, all IRAs together", "kind": "money", "change": 0, "change_text": "No change", "direction": "same", … },
      { "id": "roth-band", "label": "Roth IRA income phase-out", "kind": "range",
        "from": { "start": …, "end": … }, "to": { "start": …, "end": … },
        "change": { "start": 5000, "end": 5000 }, "change_text": "+$5,000 at each end", "direction": "up",
        "source": { "doc": "IRS Notice 2026-66", "url": "https://www.irs.gov/pub/irs-drop/n-26-66.pdf", "read": "2026-11-12" } }
    ] }
  ],
  "deadlines": [ { "id": "estimated-q4", "date": "2027-01-15", "title": "Last 2026 estimated tax payment", "detail": "…" }, … ],
  "still_to_come": [], "calendar_note": "…", "assumptions": {}
}
```

Group ids are `taxes`, `workplace`, `ira`, `hsa`, `fsa` and `social-security`, each present when it applies and both years are published. Deadlines move past weekends and District of Columbia legal holidays (IRC §7503). `still_to_come` lists, for example, the payroll withholding tables until the IRS publishes them, and the Medicare Part B premium for someone 64 or older until CMS does. The answer cites `dc://irs/limits/{rule_year}`, `dc://irs/limits/{rule_year − 1}`, `dc://ssa/bend-points/{rule_year}` and the methodology manifest.

**Errors:** `INPUT_VALIDATION` for a `rule_year` other than 2027 or a birth year outside the range.

## `net_worth_percentile`

Ranks a U.S. family’s net worth in the Federal Reserve’s 2025 Survey of Consumer Finances: among all U.S. families, families headed by someone about the same age (single-year-of-age curves, ages 20–85), the Fed’s age group, an income group and an education group, each with a 95% likely range from the survey’s replicate weights. The headline is the age peer when `birth_year` is given, all families otherwise. It also returns the next milestones, a timeline to the next one at `monthly_saving`, the age at which you would reach your age’s median, how the same net worth ranked in 2022 (in 2025 dollars), and families born around the same year. Same engine and data as the [net worth percentiles](https://www.digitalcalculator.info/net-worth-calculator/net-worth-percentiles/) page ([methodology](https://www.digitalcalculator.info/net-worth-calculator/net-worth-percentiles/#methodology)).

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `net_worth` | number (USD) | yes | −100 billion – 100 billion | Everything the family owns minus everything it owes; may be negative |
| `birth_year` | integer | no | 1906 – 2008 | Birth year of the household head; the age used is 2026 minus `birth_year` (18–120). Omit it to compare with all U.S. families only |
| `household_income` | number (USD) | no | 0 – 10 billion | Yearly household income before tax; adds the income-group comparison |
| `education` | enum | no | `no_hs` · `hs` · `some_college` · `college` | Education of the household head; adds the education comparison |
| `monthly_saving` | number (USD) | no | 0 – 1,000,000 | Monthly saving for the timelines; default 500 |

### Output

Each entry under `peers` (`all`, `near_age`, `age_group`, `income_group`, `education`, each present when its input was given) carries `percentile` (0–100, to 0.01), `display`, `bounded` (`above` or `below` past the survey’s range), `likely_range` and `peer_median`. `peer_median_basis` says where the median comes from: `fed_report` (the Fed’s published figure, for all families and the six age groups), `fed_public_table` (income and education groups) or `survey_curve` (the single-year age peer). Ranks always come from the public data.

Request:

```json
{ "net_worth": 120000, "birth_year": 1992, "household_income": 95000, "education": "college" }
```

Response (`result`, trimmed):

```json
{
  "survey_year": 2025, "net_worth": 120000, "age_in_rule_year": 34, "headline": "near_age",
  "answer": "You have more net worth than about 57% of families headed by someone about 34. The likely range is 53% to 60%.",
  "peers": {
    "all": { "percentile": 39.95, "display": "40", "likely_range": [38.78, 41.13], "peer_median": 215900, "peer_median_basis": "fed_report", … },
    "near_age": { "age": 34, "scope": "ages 29–39, weighted toward 34", "clamped": false, "percentile": 56.91, "likely_range": [53.36, 60.45], "peer_median_basis": "survey_curve", … },
    …
  },
  "next_milestones": [ { "percentile": 75, "label": "top 25%", "value": 293900, "gap": 173900 }, … ],
  "next_milestone_plan": { "mode": "moving", "status": "reached", "reached_at_age": 72, … },
  "catch_up_age": null,
  "change_since_2022": { "peer": "near_age", "percentile_2025": 56.91, "percentile_2022": 52.81, … },
  "cohort": { "age_2025": 34, "age_2022": 31, "median_change": -1000, "median_change_percent": -1.22, … },
  "assumptions": { "monthly_saving": { "value": 500, "defaulted": true, … }, "annual_real_return_percent": { "value": 5, "fixed": true, … } }
}
```

The timelines are an illustration: a positive net worth and each month’s saving grow 5% a year after inflation, and debts beyond what you own stay where they are. For all families the target is today’s threshold (`mode: "fixed"`, with `months`); for the age peer it is today’s threshold at each age you reach, never below the highest one along the way (`mode: "moving"`, with `reached_at_age`). An age past the curves uses the nearest one, sets `near_age.clamped` and adds a note. The answer cites `dc://scf/2025/networth-percentiles`, and `provenance` names the Fed’s data files and report.

**Errors:** `INPUT_VALIDATION` for an argument outside its range.

## `mortgage_monthly_payment`

The monthly principal and interest, total interest and total paid on a fixed-rate mortgage. [`loan_monthly_payment`](https://www.digitalcalculator.info/mcp/api-reference/#loan-monthly-payment) uses the same formula and returns the same figures for the same principal, rate and term; pick by vocabulary. Down payment, PMI, property tax and insurance are not modeled (see [`evaluate_affordability`](https://www.digitalcalculator.info/mcp/api-reference/#evaluate-affordability) for a budget).

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `principal` | number (USD) | yes | 0 – 100,000,000 | Loan principal |
| `annual_rate_percent` | number | yes | 0 – 30 | Annual rate as whole-number percent (e.g., 6.5). Deprecated alias: `annualRatePercent` |
| `term_years` | integer | yes | 1 – 50 | Loan term in whole years. Deprecated alias: `termYears` |

### Output

Request:

```json
{ "principal": 300000, "annual_rate_percent": 6.5, "term_years": 30 }
```

Response (`result`):

```json
{ "monthly_payment": 1896.2, "total_interest": 382633.47, "total_paid": 682633.47 }
```

**Errors:** `INPUT_VALIDATION` for an argument outside its range. A rate under 1 that reads as a decimal (`0.065`) is computed as entered and adds a [warning](https://www.digitalcalculator.info/mcp/api-reference/#warnings).

## `loan_monthly_payment`

The monthly payment, total interest and total paid on any fixed-rate amortizing loan (personal, auto, student); a 0% loan is the principal divided evenly. Same engine as the site’s loan calculator.

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `loan_amount` | number (USD) | yes | 0 – 100,000,000 | Loan principal. Deprecated alias: `loanAmount` |
| `annual_rate_percent` | number | yes | 0 – 30 | Annual rate as whole-number percent; 0 for interest-free. Deprecated alias: `annualRatePercent` |
| `term_years` | integer | yes | 1 – 50 | Loan term in whole years. Deprecated alias: `termYears` |

### Output

Request:

```json
{ "loan_amount": 25000, "annual_rate_percent": 8.5, "term_years": 5 }
```

Response (`result`):

```json
{ "loan_amount": 25000, "annual_rate_percent": 8.5, "term_years": 5, "num_payments": 60,
  "monthly_rate_percent": 0.71, "monthly_payment": 512.91, "total_paid": 30774.8, "total_interest": 5774.8 }
```

**Errors:** `INPUT_VALIDATION` for an argument outside its range.

## `paycheck_net_pay`

Take-home pay per paycheck under the IRS 2026 Percentage Method and FICA (Social Security 6.2%, Medicare 1.45%, and Additional Medicare 0.9% above its thresholds). It computes no state or local tax; pass `state_local_tax_annual` to include your own figure. `pre_tax_401k_annual` reduces income-tax wages only (401(k) pay stays in the FICA wage base); `pre_tax_cafeteria_annual` (Section 125: health premiums, FSA, HSA) also reduces FICA wages. It has no `rule_year`: it stays on the 2026 tables until the IRS publishes the 2027 withholding tables.

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `gross_annual_salary` | number (USD) | yes | 0 – 10,000,000 | Gross annual salary. Deprecated alias: `grossAnnualSalary` |
| `pay_frequency` | enum | yes | `weekly` · `biweekly` · `semimonthly` · `monthly` · `quarterly` · `annual` | Pay frequency. Deprecated alias: `payFrequency` |
| `filing_status` | enum | yes | `single` · `married_filing_jointly` · `married_filing_separately` · `head_of_household` | Federal filing status (canonical shared enum; already snake\_case, no alias) |
| `state` | string | yes | 2-letter code or `DC` | US state code, case-insensitive; unknown codes rejected with `INPUT_VALIDATION`. It does not change any figure |
| `state_local_tax_annual` | number (USD per year) | no | 0 – 10,000,000 | Your own annual state and local income tax, used exactly in place of any state figure, for any state. No default: omit it and no state figure is returned. The site calculator's field is per paycheck, so multiply it by your pay periods per year |
| `dependents` | integer | no | 0 – 20 | Legacy Form W-4 Step 3 count, read as qualifying children under 17. Default 0. Prefer the two counts below; a non-zero `dependents` sent with either is refused. A value outside 0–20, or not a whole number, is answered with an [`input_out_of_range` warning](https://www.digitalcalculator.info/mcp/api-reference/#input-range-warnings) and will be refused no earlier than 2027-05-27 |
| `children_under_17` | integer | no | 0 – 20 | Form W-4 Step 3: qualifying children under age 17, at the form’s per-child amount. The credit reduces annual federal withholding (floored at $0) and applies only when salary is at or below the form’s income limit for the filing status; `dependent_credit_status` says whether it applied |
| `other_dependents` | integer | no | 0 – 20 | Form W-4 Step 3: other dependents, at the form’s per-dependent amount; same income limit |
| `pre_tax_401k_annual` | number (USD) | no | 0 – 1,000,000 | Traditional 401(k)/403(b) pre-tax contributions; reduces federal + state taxable wages ONLY (still FICA-taxed). Default 0. Deprecated alias: `preTax401kAnnual` |
| `pre_tax_cafeteria_annual` | number (USD) | no | 0 – 1,000,000 | Section 125 cafeteria-plan deductions; reduces taxable wages AND the FICA wage base. Default 0. Deprecated alias: `preTaxCafeteriaAnnual` |
| `pre_tax_deductions_annual` | number (USD) | no | 0 – 1,000,000 | DEPRECATED FIELD — prefer the two split fields above; treated as 401(k)-type (does not reduce FICA wages). Default 0; omit it in new integrations. Also has its own deprecated camelCase alias: `preTaxDeductionsAnnual` |
| `post_tax_deductions_annual` | number (USD) | no | 0 – 1,000,000 | Roth contributions, garnishments, etc. Default 0. Deprecated alias: `postTaxDeductionsAnnual` |

### Output

Request:

```json
{ "gross_annual_salary": 80000, "pay_frequency": "biweekly", "filing_status": "single", "state": "CO" }
```

Response (`result`):

```json
{
  "gross_per_paycheck": 3076.92, "federal_tax": 337.31, "fica_tax": 235.38, "state_tax": null, "net_pay": 2504.23,
  "pay_periods_per_year": 26, "federal_tax_annual": 8770, "federal_tax_before_dependent_credit_annual": 8770,
  "dependent_credit_annual": 0, "dependent_credit_status": "none_claimed", "fica_tax_annual": 6120,
  "state_tax_annual": null, "net_pay_annual": 65110, "no_state_income_tax": null, "state_tax_source": null,
  "state_tax_notes": "State and local taxes are not included: net pay here is after federal income tax and FICA only. …",
  "state_effective_rate_percent": null, "state_tax_status": "not_provided", "dependents_reading_note": null
}
```

With `"state_local_tax_annual": 2800` the same call returns `state_tax` 107.69, `state_tax_annual` 2800, `net_pay` 2396.54, `state_effective_rate_percent` 3.5 and `state_tax_status` `"user_supplied"`. With `"dependents": 2` instead it returns `dependent_credit_annual` for two children at the form’s per-child amount, `dependent_credit_status` `"applied"` and a `dependents_reading_note` saying the value was read as qualifying children under 17; send `children_under_17` and the note is `null`. `dependent_credit_status` is `applied`, `none_claimed` or `income_above_limit`.

**State tax.** Without `state_local_tax_annual`, `state_tax`, `state_tax_annual`, `state_effective_rate_percent`, `state_tax_source` and `no_state_income_tax` are `null`, `state_tax_status` is `not_provided`, and net pay is after federal tax and FICA only — for every state, including the 9 with no tax on wages, where `$0` would not be a complete state deduction either (Washington, for example, withholds WA Cares and paid-family-leave premiums). Check `state_tax_status` before reading `state_tax` as a number.

**Errors:** `INPUT_VALIDATION` for an unknown `state`, an argument outside its range, or `dependents` sent with `children_under_17` or `other_dependents`.

## `emergency_fund_recommendation`

An emergency-fund target and the time to reach it. The months of cover come from the household’s situation (employed dual-income with no dependents: 3; other employed: 6; self-employed or freelance: 9; between jobs: 12); the tool then works out the gap, the months to the goal at your saving rate, and the interest earned at a savings APY, month by month with the APY converted to its monthly equivalent. Same engine as the site’s [emergency fund calculator](https://www.digitalcalculator.info/emergency-fund-calculator/methodology/).

### Inputs

| Field | Type | Required | Range | Description |
| --- | --- | --- | --- | --- |
| `monthly_expenses` | number (USD) | yes | 1 – 1,000,000 | Monthly essential expenses. Deprecated alias: `monthlyExpenses` |
| `current_savings` | number (USD) | no | 0 – 10,000,000 | Liquid savings already set aside; default 0. Deprecated alias: `currentSavings` |
| `monthly_savings` | number (USD) | no | 0 – 100,000 | Monthly contribution toward the goal; default 0. Deprecated alias: `monthlySavings` |
| `employment_type` | enum | no | `employed` · `self-employed` · `freelance` · `multiple` · `between-jobs` | Default `employed`; drives recommended months. Deprecated alias: `employmentType` |
| `income_earners` | enum | no | `single` · `dual` | Default `single`; only matters when `employment_type` is `employed` (dual-income with no dependents = 3 months). Deprecated alias: `incomeEarners` |
| `dependents` | integer | no | 0 – 20 | Financial dependents; default 0. Only changes the result for an `employed` dual-income household, where any dependent removes the 3-month minimum |
| `savings_apy` | number | no | 0 – 15 | HYSA APY as whole-number percent; default 0. Deprecated alias: `savingsAPY` |

### Output

Request ($4,500 a month of expenses, $8,000 saved, $600 a month of saving, self-employed, one earner, 2 dependents, 4.3% APY):

```json
{ "monthly_expenses": 4500, "current_savings": 8000, "monthly_savings": 600, "employment_type": "self-employed",
  "income_earners": "single", "dependents": 2, "savings_apy": 4.3 }
```

Response (`result`, trimmed):

```json
{ "recommended_months": 9, "target_fund": 40500, "current_savings": 8000, "fund_gap": 32500, "funded_percent": 19.75,
  "months_to_goal": 48, "interest_earned": 4089.47, "future_value": 40889.47, … }
```

`months_to_goal` is the first month the balance, interest included, reaches the target, so it is shorter than gap ÷ monthly saving when the APY is above 0. It is `0` only when the goal is already funded, and `null` when the goal cannot be reached at the current saving.

**Errors:** `INPUT_VALIDATION` for an argument outside its range.

## `money_flow_map`

Turns a monthly budget — income sources and spending categories, optionally split into line items — into a computed summary and `map_url`, a link that draws the budget as a money-flow (Sankey) map on the [Money Flow Visualizer](https://www.digitalcalculator.info/money-flow-visualizer/). Read-only and deterministic: no free text, no interpretation, nothing stored. All amounts are monthly USD. [Methodology](https://www.digitalcalculator.info/money-flow-visualizer/#methodology). There is no REST twin.

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `incomes` | array (1–20) | yes | Monthly income sources: `{ label, amount }` each. Take-home amounts work best for a spendable-dollars map. Amounts are 0–10,000,000 USD/month; labels are 1–80 characters |
| `categories` | array (0–30) | yes | Spending categories: `{ label, amount }` for a flat monthly total, OR `{ label, items }` where `items` (1–30) is an array of `{ label, amount }` line items that roll up into the category total (e.g., Rent + Utilities under Housing). Providing both `amount` and `items` is rejected. May be empty — savings is never a category; it is the computed residual |
| `label` | string | no | Scenario name shown on the map (e.g., `"Saving for a house"`), up to 80 characters |

### Output

Request:

```json
{ "label": "Saving for a house",
  "incomes": [ { "label": "Salary", "amount": 6600 } ],
  "categories": [ { "label": "Housing", "items": [ { "label": "Rent", "amount": 1800 }, { "label": "Utilities", "amount": 230 } ] },
                  { "label": "Food", "amount": 700 }, { "label": "Transport", "amount": 400 } ] }
```

Response (`result`, trimmed):

```json
{
  "label": "Saving for a house", "total_monthly_income": 6600, "total_monthly_spending": 3130,
  "monthly_savings": 3470, "deficit": false, "savings_rate_percent": 52.58,
  "categories": [
    { "label": "Housing", "monthly_total": 2030, "income_share_percent": 30.76 },
    { "label": "Food", "monthly_total": 700, "income_share_percent": 10.61 },
    { "label": "Transport", "monthly_total": 400, "income_share_percent": 6.06 }
  ],
  "largest_categories": [ { "label": "Housing", "monthly_total": 2030, "income_share_percent": 30.76 }, … ],
  "map_url": "https://www.digitalcalculator.info/money-flow-visualizer/#s=eyJ2IjoxLCJsYWJlbCI6…"
}
```

-   `monthly_savings` is income minus spending and may be negative; `deficit` is then `true` and the map shows a deficit banner instead of a savings flow.
-   `savings_rate_percent` and `income_share_percent` are shares of income, rounded to 2 decimals (`0` when income is 0). Their camelCase twins (`savingsRatePercent`, `percentOfIncome`) are not rounded.
-   `largest_categories` lists up to the 3 largest categories, largest first.
-   Amounts are not rounded to the cent; round them for display.
-   `map_url` carries the budget in the part of the link after `#` (`#s=<base64url(JSON)>`), which the browser keeps: opening it draws the map on the device and sends nothing further. The budget reached this server once, as the call’s arguments, and is not stored.

**Errors:** `INPUT_VALIDATION` for missing or empty `incomes`, an amount out of range or not finite, a list over its cap, an unknown field anywhere, or a category with both `amount` and `items`; `field` names the path.

## `generate_report`

Paid key Listed and callable only with a `dc_bearer_` key; an anonymous call returns `authentication_required`.

Renders a PDF report for a report-capable calculator and returns a short summary plus a short-lived download link. It runs the same renderer as `POST https://mcp.digitalcalculator.info/v1/reports/{tool}`, against a daily report quota separate from the calculator calls. Only this tool and that route render on our servers: your `input` goes to the renderer and the PDF is written to a link that expires. The website’s report buttons build the same document in the browser instead. Walkthrough and branding: [PDF reports](https://www.digitalcalculator.info/mcp/reports/).

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tool` | string | yes | Report-capable tool alias: `mortgage`, `loan`, `retirement-401k`, `education`, or `credit-card` |
| `input` | object | yes | The target tool's input object — same shape as that tool's calculator input (e.g., for `mortgage`: `principal`, `annualRatePercent`, `termYears`) |

Only `tool` and `input` are accepted; any other top-level key is `INPUT_VALIDATION`, and there is no per-call branding argument. `input` is the REST report body, passed through as it is: its keys keep their camelCase names and have no snake\_case aliases, because three of the five report tools (`retirement-401k`, `education`, `credit-card`) have no snake\_case MCP tool to borrow names from. See [the contract](https://www.digitalcalculator.info/mcp/contract/#generate-report-exception).

### Output

A text summary, then a `resource_link` to the PDF, and `structuredContent` mirroring the REST report envelope:

```json
{
  "report": { "url": "https://….s3.amazonaws.com/reports/mortgage/<hash>.pdf?X-Amz-…", "expiresInSeconds": 900,
              "cached": false, "contentType": "application/pdf", "cacheKey": "<hash>" },
  "tool": "mortgage", "engineVersion": "1.0.1", "calculatedAt": "2026-07-06T00:00:00.000Z",
  "disclaimer": "…", "methodology": { "url": "https://www.digitalcalculator.info/mortgage-calculator/methodology/", "version": "2026-05-09" }
}
```

The link lasts 15 minutes by default and cannot be guessed. The PDF carries the full detail (amortization table, per-tool figures); the tool result is a short summary. Identical inputs are served from a cache (`cached: true`), so asking again after the link expires returns a fresh link without rendering again.

**Branding:** a paid key can carry a BrandConfig (company name, tagline, logo, two colours) stored with the key, so every report it renders is branded; there is no branding argument. Fields, limits and how to set them: [PDF reports](https://www.digitalcalculator.info/mcp/reports/#branding).

**Errors:** `authentication_required` (no valid paid key); `report_quota_exceeded` (the key’s daily report quota, 25 by default; retry after UTC midnight); `rate_limited` (the key’s 5-minute window, shared with its calculator calls; retry after it resets); `REPORT_UNAVAILABLE` (the alias cannot render a report; the message lists those that can); `INPUT_VALIDATION` (a missing `tool` or `input`, or `input` rejected by its tool); `INTERNAL` ([report it](mailto:admin@markcolabs.com)).

## Advanced

### Target mode

`plan_retirement_income` also answers the inverse question. Send a `target` naming the outcome and the input to solve for, and leave that input out; the tool inverts its own projection with a bracketed search, so the answer and the projection beside it agree.

```json
{ "include": ["accumulation"], "birth_year": 1978, "balance": 250000, "annual_salary": 120000,
  "contribution_percent": 10, "annual_return_percent": 6,
  "target": { "metric": "future_balance", "value": 1200000, "solve_for": "retirement_age" } }
```

`target.metric` is `future_balance` (the 401(k) balance at retirement; needs `accumulation`) or `monthly_benefit` (the Social Security benefit at the claim age; needs `social_security`), and `target.value` is in that metric’s unit (USD, or USD a month).

| `solve_for` | Searched range | Reaches |
| --- | --- | --- |
| `contribution_percent` | 0 – 100 | `future_balance` |
| `annual_return_percent` | 0 – 20 | `future_balance` |
| `retirement_age` | your rule-year age + 1 – 100 (whole years) | `future_balance` |
| `balance` | 0 – 100,000,000 | `future_balance` |
| `annual_salary` | 0 – 100,000,000 (0 – 1,000,000 when `social_security` is selected) | `future_balance`, `monthly_benefit` |
| `claim_age` | 62 – 70 | `monthly_benefit` |

Facts and terms you do not choose are refused with the reason: `birth_year`, `birth_month`, `spouse_birth_year`, `years_worked`, `life_expectancy`, the employer-match fields, `annual_salary_growth_percent`, the booleans (call once each way), `rule_year` and `include`.

The result gains a `target` block: `solved_value`, `achieved_value` (the metric at the solved value, as `modules` shows), `difference_from_target`, `searched_range` and a `note`; a `retirement_age` solve adds `rounded_to` and may overshoot, since it reports the first whole year that reaches the target. **An unreachable target is an answer, not an error** (the IRS deferral cap, for example, bounds what `contribution_percent` can reach): `reached: false`, `solved_value: null`, a `reason` such as `"out-of-range"`, `range_endpoints` (`[{ "solve_for_value": 0, "metric_value": … }, { "solve_for_value": 100, … }]`, the metric at both ends of the search) and `modules_computed_at` (the value the projection below was computed at, which is not your target). Nothing is clamped silently.

### Elicitation

A call missing a required input can come back as a question instead of a validation error, using the Multi Round-Trip Request pattern of protocol revision 2026-07-28. The server keeps no session, so the call itself must opt in, in `params._meta`:

```json
"params": {
  "name": "plan_retirement_income",
  "arguments": { "include": ["rmd"], "birth_year": 1951 },
  "_meta": { "info.digitalcalculator/elicitation": true }
}
```

Without that key the call gets the usual `INPUT_VALIDATION`. With it, when something required is absent, the result is `resultType: "input_required"` (no `isError`, no `structuredContent`) with every missing field in one request, its schema taken from the tool’s own input schema:

```json
{
  "resultType": "input_required",
  "inputRequests": { "missing_inputs": { "method": "elicitation/create", "params": {
    "message": "plan_retirement_income needs one more value before it can answer: balance (number, USD).",
    "requestedSchema": { "type": "object", "properties": { "balance": { "type": "number", "minimum": 0, … } }, "required": ["balance"] } } } },
  "requestState": "eyJ2IjoxLCJ0b29sIjoi…",
  "content": [{ "type": "text", "text": "plan_retirement_income needs one more value …" }]
}
```

To finish, send the original request again with a new `id`, the same `requestState`, and the answers keyed the same way: `"inputResponses": { "missing_inputs": { "action": "accept", "content": { "balance": 500000 } } }` beside `arguments` in `params`. `"decline"` or `"cancel"` returns the validation error, as does a third round, so a client cannot be held in a loop. Only declared properties are accepted from `content`. The server asks only for what is missing: an out-of-range value or a misspelled key is still a validation error. `requestState` is opaque and grants nothing; the server re-derives everything in it from your retry.

### `recompute_scenario`

An app-only tool for the interactive result views. `{ "tool": "<tool name>", "arguments": { … } }` returns exactly what `tools/call` of that tool returns, with the same validation and errors; only the timestamp differs. `tool` is one of `plan_retirement_income`, `check_contribution_eligibility`, `project_growth`, `evaluate_affordability`, `mortgage_monthly_payment`, `loan_monthly_payment` and `emergency_fund_recommendation`. It is listed with `_meta.ui.visibility: ["app"]`, which asks an MCP Apps host to hide it from the model, and it is not counted among the 12 tools. A view calls it only when it cannot recompute a scenario itself; models and integrations should call the calculator directly.

## Prompts, resources and views

Three prompts, through `prompts/list` and `prompts/get`. Argument values are strings, as the MCP spec requires; each prompt tells the model to convert them, and frames its numbers as educational estimates, not advice.

| Prompt | What it drives | Arguments |
| --- | --- | --- |
| `retirement-readiness-review` | One [`plan_retirement_income`](https://www.digitalcalculator.info/mcp/api-reference/#plan-retirement-income) call with all three modules, then a plain-language review | Required: `birth_year`, `annual_salary`, `balance`. Optional: `contribution_percent`, `retirement_age`, `claim_age`, `annual_return_percent` (when omitted the review uses 7 and labels it an assumption) |
| `conversion-window-analysis` | [`evaluate_roth_conversion`](https://www.digitalcalculator.info/mcp/api-reference/#evaluate-roth-conversion) plus a `dc://irs/limits` read for the room left in the bracket | Required: `birth_year`, `filing_status`, `current_taxable_income`. Optional: `conversion_amount` (omitted, the prompt sizes the amount that fills the current bracket) |
| `withholding-checkup` | [`paycheck_net_pay`](https://www.digitalcalculator.info/mcp/api-reference/#paycheck-net-pay) as a yearly W-4 check against the user’s actual paycheck | Required: `gross_annual_salary`, `state`, `filing_status`. Optional: `pay_frequency` (default biweekly) |

### Resources

Every `dc://` resource is anonymous-readable with `resources/read` and listed in `resources/list`. The statutory ones are the tables the engines compute from, and the URIs the tools cite in `sources[]`. For a reference figure rather than a computation (“what is the 2026 401(k) limit?”), read the resource instead of calling a tool.

| URI | Content |
| --- | --- |
| `dc://irs/limits/2026` | Contribution limits, catch-up tiers, phase-out bands and federal brackets, each section with its source (IRS Notice 2025-67, Rev. Proc. 2025-19 and 2025-32) |
| `dc://irs/limits/2027` | The 2027 IRS figures: 401(k) and IRA limits and phase-outs (Notice 2026-66), HSA limits (Rev. Proc. 2026-24), brackets and standard deductions (Rev. Proc. 2026-35) |
| `dc://irs/uniform-lifetime` | The IRS Uniform Lifetime Table and the SECURE 2.0 RMD start ages by birth year |
| `dc://ssa/bend-points/2025`, `/2026`, `/2027` | SSA bend points, the wage base, the national average wage index and COLA scope, read at each rule year |
| `dc://ssa/bend-points/diff/2025..2026`, `dc://ssa/bend-points/diff/2025..2027`, `dc://ssa/bend-points/diff/2026..2027`, `dc://irs/limits/diff/2026..2027` | Field-by-field rule-year diffs ([below](https://www.digitalcalculator.info/mcp/api-reference/#resource-versions)) |
| `dc://scf/2025/networth-percentiles` | The data [`net_worth_percentile`](https://www.digitalcalculator.info/mcp/api-reference/#net-worth-percentile) ranks against, derived from the Federal Reserve Board’s Survey of Consumer Finances public data files; the Board is the source and owner of the underlying data |
| `dc://disclaimers/ymyl` | The disclaimer every answer carries in `disclaimer` |
| `dc://methodologies/manifest` | Each tool mapped to its methodology page |

### Versions, hashes and rule-year diffs

Every statutory resource body (limits, the lifetime table, bend points, and every diff) carries `version` (`"<rule year>.<YYYYMMDD>"`, e.g. `"2026.20260924"`; a diff’s is `"<from>..<to>"`), `content_hash` (`"sha256:<64 hex>"`), `published` (the date the tables were last verified; each section also keeps `last_verified`) and `supersedes` (the prior year’s resource when the server holds it, else `null`; `dc://irs/limits/2026` is `null`, since no complete 2025 IRS record is held). The server computes `version` and `content_hash`; to recompute the hash, parse the body, delete those two fields, serialize as canonical JSON (keys sorted, no whitespace, RFC 8785 style) and take the SHA-256 of the UTF-8 bytes. To cache a resource, keep its hash and compare on the next read.

A year the server does not hold is absent, never estimated: reading it returns `-32601`. `dc://ssa/bend-points/2025` is the current SSA record read at 2025 (its `bend_points` and `wage_base` come from that year’s row), not an archived response. A diff exists for every pair of years a family holds, earlier first. It compares every field except `uri`, `rule_year`, `version`, `content_hash`, `published` and `supersedes`, and lists each change with an RFC 6901 JSON Pointer `path` and a `change` of `changed` (both values), `added` (`new_value`) or `removed` (`old_value`):

```json
{
  "uri": "dc://ssa/bend-points/diff/2025..2026", "version": "2025.20260925..2026.20260925",
  "family": "dc://ssa/bend-points",
  "from": { "uri": "dc://ssa/bend-points/2025", "rule_year": 2025, … },
  "to":   { "uri": "dc://ssa/bend-points/2026", "rule_year": 2026, … },
  "change_count": 3,
  "changes": [
    { "path": "/bend_points/first",  "change": "changed", "old_value": 1226,   "new_value": 1286 },
    { "path": "/bend_points/second", "change": "changed", "old_value": 7391,   "new_value": 7749 },
    { "path": "/wage_base",          "change": "changed", "old_value": 176100, "new_value": 184500 }
  ],
  …
}
```

### Interactive views

For MCP Apps hosts, tools with a result view link it in `_meta.ui.resourceUri` and `_meta["openai/outputTemplate"]`, and `resources/list` lists it at `ui://digitalcalculator/<view>-<hash>`, where the hash is the first 8 hex digits of the SHA-256 of the view’s HTML, so a changed view gets a new URI. `resources/read` answers any hash of a known view, and the older fixed URIs (such as `ui://digitalcalculator/mortgage-result`), with the current view. Read the current URIs from `tools/list`.

The hosted endpoint serves five views: mortgage, loan and growth results (for `mortgage_monthly_payment`, `loan_monthly_payment` and `project_growth`), and the 401(k) and IRA result views. Interactive scenario views are being prepared and are not served by the hosted endpoint yet: a home scenario shared by `mortgage_monthly_payment` and `evaluate_affordability` (payment or maximum price, a repayment chart with the previous scenario dashed, and the debt-to-income ratios in words), a loan scenario, a growth view (money put in and growth on it, year by year) and an emergency-fund view (a progress ring and the month-by-month balance). They recompute with the server’s own calculation module, and 1.5 seconds after you stop adjusting they tell the assistant which scenario you settled on, saying so on screen. When they are served, the tools link them in place of the current views, and every earlier URI keeps resolving.

## Compatibility

Tool names are snake\_case. Scenario tools start with a verb (`plan_`, `evaluate_`, `check_`, `project_`); single-quantity calculators start with their domain (`mortgage_`, `paycheck_`).

One concept has one name in every schema: `rule_year` (the statutory year), `birth_year` (never an age), one `filing_status` enum (`single`, `married_filing_jointly`, `married_filing_separately`, `head_of_household`), one `kind` enum (`401k`, `trad_ira`, `roth_ira`, `hsa`), whole-number percents for rates, and `balance`, `annual_contribution` and `annual_salary` for money.

### Older names

Arguments are snake\_case. Four tools also accept older camelCase spellings, and older REST aliases keep their original wire for good:

| Older name | Where it works | Use instead |
| --- | --- | --- |
| 17 camelCase arguments on `mortgage_monthly_payment`, `loan_monthly_payment`, `paycheck_net_pay` and `emergency_fund_recommendation` (listed as “Deprecated alias” in their input tables) | `tools/call`: accepted, marked `deprecated: true` in `tools/list`, and flagged in `result._meta["info.digitalcalculator/deprecatedArguments"]`. Both spellings with different values is `INPUT_VALIDATION`. [Removal scheduled](https://www.digitalcalculator.info/mcp/contract/#v2-removal) | The snake\_case name |
| camelCase output keys and decimal ratios | Every result, beside their snake\_case twins. [Removal scheduled](https://www.digitalcalculator.info/mcp/contract/#v2-removal) | The snake\_case and `*_percent` keys (list below) |
| REST `mortgage`, `loan`, `emergency-fund`, `paycheck` | REST, indefinitely, with camelCase bodies (`paycheck` takes `federalFilingStatus`: `single`, `married`, `marriedSeparate`, `headOfHousehold`) | These are the REST twins of the four calculators; on MCP use the snake\_case tool |
| REST `retirement-401k`, `social-security`, `rmd` | REST, indefinitely, original wire | [`plan_retirement_income`](https://www.digitalcalculator.info/mcp/api-reference/#plan-retirement-income) with `include` `accumulation`, `social_security` or `rmd` |
| REST `roth-conversion` | REST, indefinitely, original wire | [`evaluate_roth_conversion`](https://www.digitalcalculator.info/mcp/api-reference/#evaluate-roth-conversion) |
| REST `ira`, `hsa` | REST, indefinitely, original wire | [`check_contribution_eligibility`](https://www.digitalcalculator.info/mcp/api-reference/#check-contribution-eligibility) with `kind` `trad_ira`, `roth_ira` or `hsa` |
| REST `compound-interest`, `savings`, `inflation` | REST, indefinitely, original wire (`savings` reads its rate as an APY) | [`project_growth`](https://www.digitalcalculator.info/mcp/api-reference/#project-growth) (`rate_type: "apy"` for `savings`; `inflation_rate_percent` for `inflation`) |

Every camelCase output key with a snake\_case twin

The twin is the snake\_case spelling with acronyms lowercased (`monthlyBenefitAtFRA` → `monthly_benefit_at_fra`), except for these rates and ratios:

| camelCase key | Twin | Value |
| --- | --- | --- |
| `monthlyRate` (loan) | `monthly_rate_percent` | decimal × 100, rounded to 2 decimals |
| `marginalRateOnConversion` (Roth) | `marginal_rate_on_conversion_percent` | decimal × 100, rounded to 2 decimals |
| `effectiveRateOnConversion` (Roth) | `effective_rate_on_conversion_percent` | decimal × 100, rounded to 2 decimals |
| `stateEffectiveRate` (paycheck) | `state_effective_rate_percent` | decimal × 100, rounded to 2 decimals |
| `savingsRatePercent` (money flow) | `savings_rate_percent` | rounded to 2 decimals |
| `percentOfIncome` (money flow categories) | `income_share_percent` | rounded to 2 decimals |
| `percentComplete` (emergency fund) | `funded_percent` | rounded to 2 decimals |
| `annualRatePercent` (loan echo) | `annual_rate_percent` | your argument, exactly |
| `savingsAPY` (emergency fund echo) | `savings_apy` | your argument, exactly |

The other camelCase keys: `adjustedMonthlyBenefit`, `annualAdditionsNote`, `bendPointsEstimated`, `breakEvenNote`, `breakEvenYears`, `calculatedAt`, `catchUp`, `catchUpAmount`, `catchUpEligible`, `catchUpNote`, `colaAdjustment`, `contributionLimit`, `currentSavings`, `dependentCreditAnnual`, `distributionPeriod`, `eligibilityYear`, `eligibleContribution`, `employeeContribution`, `employeeMaxRemaining`, `employerContribTotal`, `employerContribution`, `employerContributionExceedsLimit`, `employerMatch`, `employmentType`, `endingBalance`, `engineVersion`, `excessContribution`, `excessContributionNote`, `federalTax`, `federalTaxAnnual`, `federalTaxBeforeDependentCreditAnnual`, `ficaTax`, `ficaTaxAnnual`, `fiveYearRuleApplies`, `fraAge`, `fundGap`, `futureBalance`, `futureValue`, `grossPerPaycheck`, `growthEarned`, `incomeEarners`, `interestEarned`, `jointLifeTableMayApply`, `largestCategories`, `latestPublished`, `lifeExpectancyFactor`, `lifetimeBenefitProjection`, `loanAmount`, `mapUrl`, `monthlyBenefitAtFRA`, `monthlyExpenses`, `monthlyPayment`, `monthlySavings`, `monthlyTotal`, `monthsToGoal`, `netPay`, `netPayAnnual`, `noStateIncomeTax`, `numPayments`, `payPeriodsPerYear`, `payrollDeductionTaxSavings`, `penaltyIfMissed`, `phaseOutReduction`, `piaAtEligibility`, `recommendedMonths`, `rmdAmount`, `rothCap`, `spouseBeneficiaryNote`, `stateTax`, `stateTaxAnnual`, `stateTaxNotes`, `stateTaxSource`, `superCatchUpApplies`, `tableUsed`, `tableYear`, `targetFund`, `taxOwed`, `termYears`, `totalContributionLimit`, `totalContributions`, `totalInterest`, `totalMonthlyIncome`, `totalMonthlySpending`, `totalPaid`, `traditionalCap`, `traditionalDeductionNote`, `traditionalDeductionStatus`, `yearByYear`. Enum values keep their spelling (`traditional_deduction_status: "fullyDeductible"`).

### Versioning

The contract version (`serverInfo.version`) follows semantic versioning: additions are MINOR, anything that could break a client is MAJOR and comes with notice. `engine_version` moves when a tool’s math changes, and `methodology.version` when its methodology page does. The rules, notice windows and upcoming changes are on the [contract](https://www.digitalcalculator.info/mcp/contract/) page.

More: [Quickstart](https://www.digitalcalculator.info/mcp/quickstart/) · [Changelog](https://www.digitalcalculator.info/mcp/changelog/) · [Contract](https://www.digitalcalculator.info/mcp/contract/) · [FAQ](https://www.digitalcalculator.info/mcp/faq/) · [npm package (stdio shim, MIT)](https://www.npmjs.com/package/@markcolabs/mcp) · [hosted-API terms](https://unpkg.com/@markcolabs/mcp/LICENSE-API.md). Questions: [admin@markcolabs.com](mailto:admin@markcolabs.com).

---

*Markdown copy of [https://www.digitalcalculator.info/mcp/api-reference/](https://www.digitalcalculator.info/mcp/api-reference/). For tool definitions, the hosted server's tools/list is authoritative.*
