{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.curatedapi.com",
    "site": "curatedapi.com",
    "addresses": [
      {
        "address": "172.67.156.82",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.144.0/20",
          "country": "US"
        }
      },
      {
        "address": "104.21.32.228",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.32.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3033::ac43:9c52",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3033::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3033::6815:20e4",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3033::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "172.67.156.82",
          "104.21.32.228",
          "2606:4700:3033::ac43:9c52",
          "2606:4700:3033::6815:20e4"
        ],
        "first_seen": "2026-11-21T20:39:01.703Z",
        "last_seen": "2026-11-21T20:39:01.703Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "curatedapi",
      "version": "0.4.2",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=63072000; includeSubDomains; preload"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1,
      "sample": [
        {
          "id": "10216",
          "url": "https://mcp.genexxis.com/mcp",
          "server_name": "com.genexxis/data-apis",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T14:42:02.039Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "com.curatedapi",
      "total": 0,
      "sample": []
    },
    "same_repository": null,
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "48453",
    "server_name": "com.curatedapi/mcp",
    "url": "https://mcp.curatedapi.com/",
    "host": "mcp.curatedapi.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-21T20:39:01.703Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "4a05e25e2d0b3a500c0a37c3886c8cdd891bb051b69e732c4481ea39f1def380",
    "first_listed_at": "2026-11-21T20:39:01.703Z",
    "created_at": "2026-11-21T13:45:02.832Z",
    "resolved_addresses": [
      "172.67.156.82",
      "104.21.32.228",
      "2606:4700:3033::ac43:9c52",
      "2606:4700:3033::6815:20e4"
    ]
  },
  "server": {
    "name": "com.curatedapi/mcp",
    "title": "curatedapi",
    "description": "99 exact calculators and official e-invoice validators, available over REST and MCP.",
    "version": "0.4.2",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://curatedapi.com",
    "published_at": "2026-11-21T12:37:31.741Z",
    "updated_at": "2026-11-21T12:37:31.741Z",
    "first_seen": "2026-11-21T13:45:01.768Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "calls-models",
      "trades"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T16:11:33.540Z"
  },
  "operator": {
    "key": "curatedapi.com",
    "name": "curatedapi.com",
    "platform": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 1,
    "answered": 1,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1110,
    "first_check_in_window": "2026-11-21T20:39:01.703Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "4a05e25e2d0b3a500c0a37c3886c8cdd891bb051b69e732c4481ea39f1def380",
    "tools": 103,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T20:39:02.822Z",
    "tool_names": [
      "calc_accounting_depreciation_india_companies_act",
      "calc_accounting_depreciation_india_income_tax",
      "calc_accounting_depreciation_macrs",
      "calc_accounting_lease_asc842",
      "calc_accounting_lease_ifrs16",
      "calc_billing_discounts",
      "calc_billing_proration",
      "calc_billing_tiered_price",
      "calc_check_abn",
      "calc_check_bic",
      "calc_check_cusip",
      "calc_check_iban",
      "calc_check_india_gstin",
      "calc_check_india_pan",
      "calc_check_isin",
      "calc_check_lei",
      "calc_check_us_routing_number",
      "calc_check_vat_number",
      "calc_date_add",
      "calc_date_age",
      "calc_date_difference",
      "calc_date_holidays",
      "calc_date_timezone_convert",
      "calc_date_working_days",
      "calc_date_working_hours",
      "calc_everyday_discount",
      "calc_everyday_tip",
      "calc_excel_cumipmt",
      "calc_excel_cumprinc",
      "calc_excel_days360",
      "calc_excel_db",
      "calc_excel_ddb",
      "calc_excel_duration",
      "calc_excel_edate",
      "calc_excel_effect",
      "calc_excel_eomonth",
      "calc_excel_fv",
      "calc_excel_ipmt",
      "calc_excel_mduration",
      "calc_excel_mirr",
      "calc_excel_networkdays",
      "calc_excel_nominal",
      "calc_excel_nper",
      "calc_excel_pmt",
      "calc_excel_ppmt",
      "calc_excel_price",
      "calc_excel_pv",
      "calc_excel_rate",
      "calc_excel_sln",
      "calc_excel_syd",
      "calc_excel_vdb",
      "calc_excel_workday",
      "calc_excel_xirr",
      "calc_excel_xnpv",
      "calc_excel_yearfrac",
      "calc_excel_yield",
      "calc_finance_apr_eu_aprc",
      "calc_finance_apr_us_reg_z",
      "calc_finance_black_76",
      "calc_finance_black_scholes",
      "calc_finance_bond_duration_convexity",
      "calc_finance_compound_interest",
      "calc_finance_extra_payments",
      "calc_finance_fha_mip",
      "calc_finance_implied_volatility",
      "calc_finance_irr",
      "calc_finance_loan_emi",
      "calc_finance_mortgage",
      "calc_finance_mortgage_affordability",
      "calc_finance_npv",
      "calc_finance_refinance_break_even",
      "calc_finance_rent_vs_buy",
      "calc_finance_roi",
      "calc_finance_savings_goal",
      "calc_finance_simple_interest",
      "calc_finance_usda_guarantee_fee",
      "calc_finance_va_funding_fee",
      "calc_finance_yield_to_call",
      "calc_health_bmi",
      "calc_math_expression",
      "calc_math_fraction",
      "calc_math_percentage",
      "calc_math_rounding",
      "calc_math_scientific",
      "calc_math_statistics",
      "calc_money_allocate",
      "calc_money_round",
      "calc_payments_late_interest_eu",
      "calc_payments_late_interest_germany",
      "calc_payments_late_interest_india_msme",
      "calc_payments_late_interest_uk",
      "calc_payments_late_interest_us_prompt_payment",
      "calc_tax_vat",
      "calc_tax_vat_rates",
      "calc_units_data_size",
      "calc_units_length",
      "calc_units_mass",
      "calc_units_temperature",
      "calc_units_volume",
      "validate_einvoice_en16931"
    ],
    "declared": {
      "tools": [
        {
          "name": "calc_accounting_depreciation_india_companies_act",
          "title": "Schedule II depreciation (India)",
          "description": "Book depreciation for Indian companies over the Schedule II useful life, straight line (SLM) or written down value (WDV), pro rata by days.\n\nThe depreciable amount (cost less residual value, 5% of cost unless you choose otherwise) is spread over the useful life. SLM charges the same amount each year; WDV uses the rate 1 − (residual / cost)^(1 / life), which brings the carrying amount to the residual value at the end of the life. The first year is charged pro rata from the date put to use to 31 March, and the last year ends when the useful life does, at exactly the residual value.",
          "inputSchema": {
            "type": "object",
            "required": [
              "cost",
              "useful_life_years",
              "method",
              "date_put_to_use"
            ],
            "properties": {
              "cost": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "100000"
                ],
                "description": "Cost of the asset. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "method": {
                "enum": [
                  "slm",
                  "wdv"
                ],
                "type": "string",
                "examples": [
                  "wdv"
                ],
                "description": "Depreciation method. Options: slm: straight line; wdv: written down value"
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "date_put_to_use": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-04-01"
                ],
                "description": "The day the asset was available for use."
              },
              "residual_percent": {
                "type": "string",
                "default": "5",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Residual value as a percentage of cost. Allowed: >= 0 and < 100. Unit: percent."
              },
              "wdv_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "WDV only: use this rate instead of the exact one, e.g. a rate rounded to 2 decimals. The last year still brings the carrying amount to the residual value. Allowed: > 0 and <= 100. Unit: percent."
              },
              "useful_life_years": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "examples": [
                  5
                ],
                "description": "Useful life in years (Schedule II Part C, or your own estimate). Allowed: >= 1 and <= 100."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "rate_percent",
                  "residual_value",
                  "depreciable_amount",
                  "schedule"
                ],
                "properties": {
                  "schedule": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "year",
                        "start",
                        "end",
                        "days",
                        "depreciation",
                        "accumulated",
                        "closing_value"
                      ],
                      "properties": {
                        "end": {
                          "type": "string",
                          "format": "date",
                          "description": "Last day depreciated in the year."
                        },
                        "days": {
                          "type": "integer",
                          "description": "Days depreciated in the year."
                        },
                        "year": {
                          "type": "integer",
                          "description": "Financial year number, from 1."
                        },
                        "start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day depreciated in the year."
                        },
                        "accumulated": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Accumulated depreciation. Unit: currency."
                        },
                        "depreciation": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Depreciation for the year. Unit: currency."
                        },
                        "closing_value": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Carrying amount at the end of the year. Unit: currency."
                        }
                      }
                    },
                    "description": "Depreciation by financial year (April to March)."
                  },
                  "rate_percent": {
                    "type": "string",
                    "description": "Annual rate, in percent (4 decimals)."
                  },
                  "residual_value": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Residual value. Unit: currency."
                  },
                  "depreciable_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Cost less residual value. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "accounting/depreciation/india-companies-act@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Schedule II depreciation (India)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_accounting_depreciation_india_income_tax",
          "title": "Indian income-tax depreciation",
          "description": "Tax depreciation on a block of assets: opening WDV plus additions less sale proceeds, with half the rate for additions used under 180 days.\n\nDepreciation is the block's rate on its written down value: the opening WDV, plus the year's additions, less the money received for assets sold. An asset acquired in the year and put to use for less than 180 days gets half the rate. If the sale proceeds exceed the block, there is no depreciation and the excess is a short-term capital gain; if every asset in the block was sold, what is left is a short-term capital loss.",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate_percent",
              "tax_year_start"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "additions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "200000",
                    "100000"
                  ]
                ],
                "maxItems": 500,
                "minItems": 0,
                "description": "Cost of each asset added in the year. Up to 500 items. Each item: >= 0 and <= 1000000000000000."
              },
              "opening_wdv": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "500000"
                ],
                "description": "WDV of the block at the start of the year. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "15"
                ],
                "description": "The block's rate, e.g. 15 (general plant and machinery), 40 (computers), 10 (furniture), 5 or 10 (buildings). Allowed: > 0 and <= 100. Unit: percent."
              },
              "sale_proceeds": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Money payable for assets of the block sold, discarded or destroyed in the year (with any scrap value). Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "tax_year_start": {
                "type": "integer",
                "maximum": 2200,
                "minimum": 1990,
                "examples": [
                  2026
                ],
                "description": "Year the tax year starts: 2026 means 1 April 2026 to 31 March 2027. Allowed: >= 1990 and <= 2200."
              },
              "all_assets_sold": {
                "type": "boolean",
                "default": false,
                "description": "True when no asset is left in the block at the end of the year."
              },
              "put_to_use_dates": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "examples": [
                  [
                    "2026-06-10",
                    "2026-12-01"
                  ]
                ],
                "maxItems": 500,
                "minItems": 0,
                "description": "The day each addition was put to use, in the same order. Up to 500 items."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "wdv_before_depreciation",
                  "full_rate_base",
                  "half_rate_base",
                  "depreciation",
                  "closing_wdv",
                  "short_term_capital_gain",
                  "short_term_capital_loss",
                  "additions"
                ],
                "properties": {
                  "additions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "amount",
                        "put_to_use",
                        "days_used",
                        "rate_percent"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Cost of the addition. Unit: currency."
                        },
                        "days_used": {
                          "type": "integer",
                          "description": "Days of use in the tax year, counting both ends."
                        },
                        "put_to_use": {
                          "type": "string",
                          "format": "date",
                          "description": "Day put to use."
                        },
                        "rate_percent": {
                          "type": "string",
                          "description": "Rate applied: full, or half under 180 days."
                        }
                      }
                    },
                    "description": "Each addition and the rate it got."
                  },
                  "closing_wdv": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "WDV carried to next year. Unit: currency."
                  },
                  "depreciation": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Depreciation for the year. Unit: currency."
                  },
                  "full_rate_base": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Part depreciated at the full rate. Unit: currency."
                  },
                  "half_rate_base": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Part depreciated at half the rate. Unit: currency."
                  },
                  "short_term_capital_gain": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Sale proceeds above the block. Unit: currency."
                  },
                  "short_term_capital_loss": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "WDV left when the block ceases. Unit: currency."
                  },
                  "wdv_before_depreciation": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Opening + additions − sale proceeds. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "accounting/depreciation/india-income-tax@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Indian income-tax depreciation",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_accounting_depreciation_macrs",
          "title": "MACRS depreciation calculator (IRS tables, GDS)",
          "description": "US tax depreciation under MACRS (GDS) with the IRS percentage tables, Section 179 and bonus depreciation.\n\nApplies the Publication 946 Appendix A tables: half-year or mid-quarter for personal property (Tables A-1 to A-5), mid-month for residential rental (A-6, 27.5 years) and nonresidential real property (A-7a, 39 years). Section 179 comes off first, then bonus depreciation on what is left, then MACRS on the rest. Each year is basis × the table percentage, rounded; the last year takes whatever rounding left over, so the years add up exactly to the basis.",
          "inputSchema": {
            "type": "object",
            "required": [
              "basis",
              "property_class",
              "placed_in_service"
            ],
            "properties": {
              "basis": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10000"
                ],
                "description": "Depreciable basis: the cost, plus costs to get the property ready, less any business-use reduction. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "convention": {
                "enum": [
                  "half_year",
                  "mid_quarter"
                ],
                "type": "string",
                "default": "half_year",
                "description": "Convention for personal property. 27.5- and 39-year property always use mid-month, whatever is passed. Options: half_year: half a year of depreciation in the first year (the usual case); mid_quarter: when more than 40% of the year's basis was placed in service in the last quarter"
              },
              "section_179": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Section 179 deduction taken for the property. The dollar limit and business-income limit are not checked. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "bonus_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Special (bonus) depreciation percentage, e.g. 100 or 40, or 0 if you elect out. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "property_class": {
                "enum": [
                  "3",
                  "5",
                  "7",
                  "10",
                  "15",
                  "20",
                  "27.5",
                  "39"
                ],
                "type": "string",
                "examples": [
                  "5"
                ],
                "description": "Recovery period (property class). Options: 3: 3-year property (200% declining balance); 5: 5-year property such as cars, computers and office machinery (200% DB); 7: 7-year property such as office furniture and fixtures (200% DB); 10: 10-year property (200% DB); 15: 15-year property such as land improvements (150% DB); 20: 20-year property such as farm buildings (150% DB); 27.5: 27.5-year residential rental property (straight line, mid-month); 39: 39-year nonresidential real property (straight line, mid-month)"
              },
              "placed_in_service": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-03-15"
                ],
                "description": "The day the property was placed in service."
              },
              "tax_year_start_month": {
                "type": "integer",
                "default": 1,
                "maximum": 12,
                "minimum": 1,
                "description": "Month your tax year starts (1 = calendar year). Short tax years are not supported. Allowed: >= 1 and <= 12."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "convention",
                  "section_179",
                  "bonus_depreciation",
                  "macrs_basis",
                  "first_year_total",
                  "schedule"
                ],
                "properties": {
                  "schedule": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "year",
                        "tax_year_start",
                        "percent",
                        "depreciation",
                        "accumulated",
                        "remaining"
                      ],
                      "properties": {
                        "year": {
                          "type": "integer",
                          "description": "Recovery year, from 1."
                        },
                        "percent": {
                          "type": "string",
                          "description": "The IRS table percentage for the year."
                        },
                        "remaining": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "MACRS basis not yet recovered. Unit: currency."
                        },
                        "accumulated": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "MACRS depreciation to the end of the year. Unit: currency."
                        },
                        "depreciation": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "MACRS depreciation for the year. Unit: currency."
                        },
                        "tax_year_start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day of the tax year."
                        }
                      }
                    },
                    "description": "MACRS by recovery year."
                  },
                  "convention": {
                    "type": "string",
                    "description": "Convention used."
                  },
                  "macrs_basis": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Basis left for MACRS. Unit: currency."
                  },
                  "section_179": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Section 179 deduction. Unit: currency."
                  },
                  "first_year_total": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Section 179 + bonus + year 1 MACRS. Unit: currency."
                  },
                  "bonus_depreciation": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Special depreciation allowance. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "accounting/depreciation/macrs@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "MACRS depreciation calculator (IRS tables, GDS)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_accounting_lease_asc842",
          "title": "ASC 842 lease calculator: finance and operating leases",
          "description": "Lessee accounting under US GAAP ASC 842: lease liability, right-of-use asset and the schedule for a finance or an operating lease.\n\nBoth classes start the same way: the liability is the present value of the unpaid lease payments, and the right-of-use asset adds initial direct costs and payments made at or before commencement, less incentives received. A finance lease then has interest on the liability and straight-line amortization of the asset. An operating lease has one straight-line lease cost (all payments plus initial direct costs, less incentives, spread evenly), and the asset is reduced by that cost less the interest on the liability (ASC 842-20-25-6 and 35-3).",
          "inputSchema": {
            "type": "object",
            "required": [
              "classification",
              "payment",
              "number_of_payments",
              "discount_rate_percent",
              "commencement_date"
            ],
            "properties": {
              "timing": {
                "enum": [
                  "arrears",
                  "advance"
                ],
                "type": "string",
                "default": "arrears",
                "description": "When each payment is made within its period. Options: arrears: at the end of each period; advance: at the start of each period (the first at commencement)"
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "payment": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "100000"
                ],
                "description": "The first lease payment. Later payments rise by annual_increase_percent once a year. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "end_payment": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Paid at the end of the term: a purchase option you are reasonably certain to exercise, a termination penalty, or the amount expected under a residual value guarantee. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "classification": {
                "enum": [
                  "finance",
                  "operating"
                ],
                "type": "string",
                "examples": [
                  "operating"
                ],
                "description": "Lease classification. Options: finance: finance lease; operating: operating lease"
              },
              "rate_convention": {
                "enum": [
                  "nominal",
                  "effective"
                ],
                "type": "string",
                "default": "nominal",
                "description": "How the annual rate becomes a rate per period when payments are more often than yearly. Options: nominal: annual rate ÷ payments a year; effective: (1 + annual rate)^(1 / payments a year) − 1, to 15 decimals"
              },
              "lease_incentives": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Lease incentives received (taken off the asset). Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "prepaid_payments": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Lease payments made before commencement, other than the first payment in advance. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "rou_life_periods": {
                "type": "integer",
                "maximum": 1200,
                "minimum": 1,
                "description": "Periods to depreciate the asset over: the lease term (the default) or the useful life when ownership transfers or a purchase option is reasonably certain. Allowed: >= 1 and <= 1200."
              },
              "commencement_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-01-01"
                ],
                "description": "Commencement date of the lease."
              },
              "payments_per_year": {
                "enum": [
                  "1",
                  "2",
                  "4",
                  "12"
                ],
                "type": "string",
                "default": "1",
                "description": "How often payments are made. Options: 1: yearly; 2: half-yearly; 4: quarterly; 12: monthly"
              },
              "schedule_rounding": {
                "enum": [
                  "ledger",
                  "exact"
                ],
                "type": "string",
                "default": "ledger",
                "description": "How the schedule is rounded. Options: ledger: each period's interest and depreciation is rounded and the next period works from the rounded balance, as in a ledger; exact: each balance is the exact balance rounded, and each period's charge is the change in the rounded balances"
              },
              "number_of_payments": {
                "type": "integer",
                "maximum": 600,
                "minimum": 1,
                "examples": [
                  10
                ],
                "description": "Number of payments over the lease term. Allowed: >= 1 and <= 600."
              },
              "initial_direct_costs": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Initial direct costs (added to the asset). Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "discount_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6"
                ],
                "description": "Annual discount rate: the rate implicit in the lease or your incremental borrowing rate. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "annual_increase_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Fixed yearly increase in the payments (each new year's payment is rounded like the results). Allowed: >= 0 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "classification",
                  "periodic_rate_percent",
                  "initial_liability",
                  "initial_rou_asset",
                  "total_payments",
                  "total_interest",
                  "rou_asset_end_of_term",
                  "schedule"
                ],
                "properties": {
                  "schedule": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "period",
                        "start",
                        "end",
                        "payment",
                        "interest",
                        "liability",
                        "rou_asset"
                      ],
                      "properties": {
                        "end": {
                          "type": "string",
                          "format": "date",
                          "description": "Last day of the period."
                        },
                        "start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day of the period."
                        },
                        "period": {
                          "type": "integer",
                          "description": "Period number, from 1."
                        },
                        "payment": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Payment made in the period (the last includes end_payment). Unit: currency."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Interest on the liability. Unit: currency."
                        },
                        "liability": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Lease liability at the end of the period. Unit: currency."
                        },
                        "rou_asset": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Right-of-use asset at the end of the period. Unit: currency."
                        },
                        "lease_cost": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Single straight-line lease cost. Unit: currency."
                        },
                        "depreciation": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Depreciation (amortization) of the asset. Unit: currency."
                        },
                        "rou_amortization": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Lease cost less interest. Unit: currency."
                        }
                      }
                    },
                    "description": "One row per payment period."
                  },
                  "classification": {
                    "type": "string",
                    "description": "Lease classification."
                  },
                  "total_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest over the term. Unit: currency."
                  },
                  "total_payments": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "All payments in the schedule. Unit: currency."
                  },
                  "total_lease_cost": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Operating lease: total straight-line lease cost. Unit: currency."
                  },
                  "initial_liability": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Lease liability at commencement. Unit: currency."
                  },
                  "initial_rou_asset": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Right-of-use asset at commencement. Unit: currency."
                  },
                  "total_depreciation": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Finance lease: amortization over the term. Unit: currency."
                  },
                  "periodic_rate_percent": {
                    "type": "string",
                    "description": "Discount rate per period, in percent."
                  },
                  "rou_asset_end_of_term": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Right-of-use asset left at the end of the term (above 0 when it is depreciated over a longer useful life). Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "accounting/lease/asc842@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "ASC 842 lease calculator: finance and operating leases",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_accounting_lease_ifrs16",
          "title": "IFRS 16 lease calculator: liability and right-of-use asset",
          "description": "Lessee accounting under IFRS 16: the initial lease liability and right-of-use asset, and a schedule of interest, depreciation and balances.\n\nThe liability is the present value of the payments not paid at commencement, discounted at the rate implicit in the lease or the incremental borrowing rate (IFRS 16.26). The right-of-use asset is that liability plus payments made at or before commencement, initial direct costs and restoration costs, less incentives received (IFRS 16.24). Interest uses the effective interest method; the asset is depreciated straight line over the term or the useful life.",
          "inputSchema": {
            "type": "object",
            "required": [
              "payment",
              "number_of_payments",
              "discount_rate_percent",
              "commencement_date"
            ],
            "properties": {
              "timing": {
                "enum": [
                  "arrears",
                  "advance"
                ],
                "type": "string",
                "default": "arrears",
                "description": "When each payment is made within its period. Options: arrears: at the end of each period; advance: at the start of each period (the first at commencement)"
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "payment": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "100000"
                ],
                "description": "The first lease payment. Later payments rise by annual_increase_percent once a year. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "end_payment": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Paid at the end of the term: a purchase option you are reasonably certain to exercise, a termination penalty, or the amount expected under a residual value guarantee. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "rate_convention": {
                "enum": [
                  "nominal",
                  "effective"
                ],
                "type": "string",
                "default": "nominal",
                "description": "How the annual rate becomes a rate per period when payments are more often than yearly. Options: nominal: annual rate ÷ payments a year; effective: (1 + annual rate)^(1 / payments a year) − 1, to 15 decimals"
              },
              "lease_incentives": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Lease incentives received (taken off the asset). Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "prepaid_payments": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Lease payments made before commencement, other than the first payment in advance. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "rou_life_periods": {
                "type": "integer",
                "maximum": 1200,
                "minimum": 1,
                "description": "Periods to depreciate the asset over: the lease term (the default) or the useful life when ownership transfers or a purchase option is reasonably certain. Allowed: >= 1 and <= 1200."
              },
              "commencement_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-01-01"
                ],
                "description": "Commencement date of the lease."
              },
              "payments_per_year": {
                "enum": [
                  "1",
                  "2",
                  "4",
                  "12"
                ],
                "type": "string",
                "default": "1",
                "description": "How often payments are made. Options: 1: yearly; 2: half-yearly; 4: quarterly; 12: monthly"
              },
              "restoration_costs": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Present value of the costs to dismantle or restore (IAS 37 provision, added to the asset). Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "schedule_rounding": {
                "enum": [
                  "ledger",
                  "exact"
                ],
                "type": "string",
                "default": "ledger",
                "description": "How the schedule is rounded. Options: ledger: each period's interest and depreciation is rounded and the next period works from the rounded balance, as in a ledger; exact: each balance is the exact balance rounded, and each period's charge is the change in the rounded balances"
              },
              "number_of_payments": {
                "type": "integer",
                "maximum": 600,
                "minimum": 1,
                "examples": [
                  10
                ],
                "description": "Number of payments over the lease term. Allowed: >= 1 and <= 600."
              },
              "initial_direct_costs": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Initial direct costs (added to the asset). Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "discount_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6"
                ],
                "description": "Annual discount rate: the rate implicit in the lease or your incremental borrowing rate. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "annual_increase_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Fixed yearly increase in the payments (each new year's payment is rounded like the results). Allowed: >= 0 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "periodic_rate_percent",
                  "initial_liability",
                  "initial_rou_asset",
                  "total_payments",
                  "total_interest",
                  "rou_asset_end_of_term",
                  "total_depreciation",
                  "schedule"
                ],
                "properties": {
                  "schedule": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "period",
                        "start",
                        "end",
                        "payment",
                        "interest",
                        "liability",
                        "depreciation",
                        "rou_asset"
                      ],
                      "properties": {
                        "end": {
                          "type": "string",
                          "format": "date",
                          "description": "Last day of the period."
                        },
                        "start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day of the period."
                        },
                        "period": {
                          "type": "integer",
                          "description": "Period number, from 1."
                        },
                        "payment": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Payment made in the period (the last includes end_payment). Unit: currency."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Interest on the liability. Unit: currency."
                        },
                        "liability": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Lease liability at the end of the period. Unit: currency."
                        },
                        "rou_asset": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Right-of-use asset at the end of the period. Unit: currency."
                        },
                        "depreciation": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Depreciation (amortization) of the asset. Unit: currency."
                        }
                      }
                    },
                    "description": "One row per payment period."
                  },
                  "total_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest over the term. Unit: currency."
                  },
                  "total_payments": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "All payments in the schedule. Unit: currency."
                  },
                  "initial_liability": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Lease liability at commencement. Unit: currency."
                  },
                  "initial_rou_asset": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Right-of-use asset at commencement. Unit: currency."
                  },
                  "total_depreciation": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Depreciation over the term. Unit: currency."
                  },
                  "periodic_rate_percent": {
                    "type": "string",
                    "description": "Discount rate per period, in percent."
                  },
                  "rou_asset_end_of_term": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Right-of-use asset left at the end of the term (above 0 when it is depreciated over a longer useful life). Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "accounting/lease/ifrs16@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "IFRS 16 lease calculator: liability and right-of-use asset",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_billing_discounts",
          "title": "Stacked discount calculator",
          "description": "Final price after several percentage and fixed-amount discounts, applied in order like Stripe's stacked coupons, with an optional cap.\n\nApplies a list of discounts to a price, one after another. A percentage discount takes that percentage of the price left after the earlier discounts, so order matters: 20% then 5 off is not the same as 5 off then 20%. This is how Stripe applies several coupons to a subscription. With additive stacking, every percentage is taken from the original price instead, so 20% and 10% make 30% off. Each discount is rounded to the cent when it is applied, the price never goes below 0, and max_total_discount caps the combined discount.",
          "inputSchema": {
            "type": "object",
            "required": [
              "subtotal",
              "discounts"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_up."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_up, decimals=2).",
                "additionalProperties": false
              },
              "stacking": {
                "enum": [
                  "sequential",
                  "additive"
                ],
                "type": "string",
                "default": "sequential",
                "description": "How percentage discounts combine. Options: sequential: each discount applies to the price left after the earlier ones (Stripe's stacked coupons); additive: each percentage is taken from the original subtotal"
              },
              "subtotal": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "100"
                ],
                "description": "The price before discounts. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "discounts": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 40
                },
                "examples": [
                  [
                    "20%",
                    "5"
                  ]
                ],
                "maxItems": 20,
                "minItems": 1,
                "description": "The discounts in the order they apply: a percentage such as \"20%\" or an amount off such as \"5\" (in the subtotal's currency). 1 to 20 items."
              },
              "max_total_discount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Optional cap on the combined discount, like Stripe's \"percent off up to maximum\" coupon. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "total",
                  "total_discount",
                  "steps"
                ],
                "properties": {
                  "steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "step",
                        "discount",
                        "amount_off",
                        "price_after"
                      ],
                      "properties": {
                        "step": {
                          "type": "integer",
                          "description": "Order in which the discount was applied, starting at 1."
                        },
                        "discount": {
                          "type": "string",
                          "description": "The discount as given: a percentage or an amount."
                        },
                        "amount_off": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "What this discount took off. Unit: currency."
                        },
                        "price_after": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The price after this discount. Unit: currency."
                        }
                      }
                    },
                    "description": "Each discount in order."
                  },
                  "total": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The price after all discounts (never below 0). Unit: currency."
                  },
                  "total_discount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "subtotal − total. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "billing/discounts@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Stacked discount calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_billing_proration",
          "title": "Subscription proration calculator",
          "description": "Credit for unused time and charge for the remaining time when a subscription changes plan mid-period, prorated to the second like Stripe, or by hour, day or week.\n\nWhen a customer changes plan part-way through a billing period, they are credited the unused part of what they paid for the old plan and charged the remaining part of the new one. Both are the full-period amount times the fraction of the period left: (period end − change time) ÷ (period end − period start). By default this is exact to the second, as Stripe and Chargebee prorate; with an hour, day or week granularity the change time first moves to a boundary counted from the period start, like Stripe's custom-interval proration. The credit and the charge are each rounded, and the net is charge minus credit, as on the invoice.",
          "inputSchema": {
            "type": "object",
            "required": [
              "period_start",
              "period_end",
              "change_at",
              "old_amount",
              "new_amount"
            ],
            "properties": {
              "snap": {
                "enum": [
                  "nearest",
                  "up",
                  "down"
                ],
                "type": "string",
                "default": "nearest",
                "description": "With an hour, day or week granularity, which boundary the change time moves to. Options: nearest: the closer boundary; exactly halfway goes to the later one; up: the next boundary: the old plan runs for the whole unit; down: the previous boundary: the new plan applies for the whole unit"
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_up."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_up, decimals=2).",
                "additionalProperties": false
              },
              "change_at": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2026-04-11T06:00:00Z"
                ],
                "description": "When the plan changes (Stripe's proration_date). Must be within the period."
              },
              "new_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "60"
                ],
                "description": "What the new plan costs for a full period. 0 when cancelling or removing an item. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "old_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "30"
                ],
                "description": "What the old plan costs for a full period (price × quantity, after discounts). In Stripe's flexible billing mode, use what was actually billed for the period. 0 when adding a new item. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "period_end": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2026-05-01T00:00:00Z"
                ],
                "description": "End of the current billing period (the next renewal)."
              },
              "granularity": {
                "enum": [
                  "exact",
                  "hour",
                  "day",
                  "week"
                ],
                "type": "string",
                "default": "exact",
                "description": "Unit of time the proration is counted in. Options: exact: to the second (to the microsecond if the times have one), as Stripe and Chargebee do by default; hour: whole hours from the period start; day: whole days from the period start; week: whole weeks from the period start"
              },
              "period_start": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2026-04-01T00:00:00Z"
                ],
                "description": "Start of the current billing period, ISO 8601 (2026-04-01T00:00:00Z). A time without an offset is read as UTC."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "credit",
                  "charge",
                  "net",
                  "remaining_fraction",
                  "remaining_seconds",
                  "period_seconds",
                  "effective_change_at"
                ],
                "properties": {
                  "net": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "charge − credit: what the change adds to the invoice (negative: a credit). Unit: currency."
                  },
                  "charge": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Charge for the remaining time on the new plan. Unit: currency."
                  },
                  "credit": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Credit for the unused time on the old plan (a positive number; the invoice shows it as a negative line). Unit: currency."
                  },
                  "period_seconds": {
                    "type": "string",
                    "description": "Length of the billing period in seconds."
                  },
                  "remaining_seconds": {
                    "type": "string",
                    "description": "Seconds from the change to the period end."
                  },
                  "remaining_fraction": {
                    "type": "string",
                    "description": "Exact fraction of the period left after the change, as a decimal or p/q."
                  },
                  "effective_change_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The change time used, in UTC: change_at, or the boundary it moved to."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "billing/proration@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Subscription proration calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_billing_tiered_price",
          "title": "Tiered pricing calculator",
          "description": "Price of a quantity under graduated or volume tiers, with optional flat fees, exactly as Stripe bills tiered prices.\n\nPrices a quantity (seats, API calls, gigabytes) on a tiered price list. With graduated tiers, each unit is charged at the price of the tier it falls in, so 12 units on tiers of 5 are charged 5 at the first price, 5 at the second and 2 at the third. With volume tiers, every unit is charged at the price of the tier the whole quantity lands in. A tier can also have a flat fee: graduated pricing charges the flat fee of every tier it reaches, volume pricing only that of the tier it lands in. The tiers table shows how the total is made up.",
          "inputSchema": {
            "type": "object",
            "required": [
              "quantity",
              "pricing_model",
              "tier_unit_price"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_up."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_up, decimals=2).",
                "additionalProperties": false
              },
              "quantity": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "12"
                ],
                "description": "Number of units to price (whole or decimal, for metered usage). Allowed: >= 0 and <= 1000000000000000."
              },
              "tier_up_to": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "5",
                    "10"
                  ]
                ],
                "maxItems": 99,
                "minItems": 0,
                "description": "Upper limit of each tier except the last, inclusive and increasing. The first tier covers 0 up to the first limit, the next tier starts just above it, and the last tier has no limit (Stripe's up_to=inf), so give one item fewer than tier_unit_price. Omit it for a single tier. Up to 99 items. Each item: > 0 and <= 1000000000000000."
              },
              "pricing_model": {
                "enum": [
                  "graduated",
                  "volume"
                ],
                "type": "string",
                "examples": [
                  "graduated"
                ],
                "description": "How the tiers apply. Options: graduated: each tier's units at that tier's price, summed (Stripe tiers_mode=graduated); volume: all units at the price of the tier the quantity lands in (Stripe tiers_mode=volume)"
              },
              "tier_flat_fee": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "maxItems": 100,
                "minItems": 0,
                "description": "Flat fee of each tier, one per tier like tier_unit_price (Stripe's flat_amount). Omit it for no flat fees. Up to 100 items. Each item: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "tier_unit_price": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "7",
                    "6.5",
                    "6"
                  ]
                ],
                "maxItems": 100,
                "minItems": 1,
                "description": "Price per unit in each tier, first tier first (any number of decimals, like Stripe's unit_amount_decimal). 1 to 100 items. Each item: >= 0 and <= 1000000000000000. Unit: currency."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "total",
                  "tier",
                  "tiers"
                ],
                "properties": {
                  "tier": {
                    "type": "integer",
                    "description": "The tier the quantity lands in (volume) or the highest tier it reaches (graduated)."
                  },
                  "tiers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "tier",
                        "above",
                        "up_to",
                        "units",
                        "unit_price",
                        "flat_fee",
                        "amount"
                      ],
                      "properties": {
                        "tier": {
                          "type": "integer",
                          "description": "Tier number, starting at 1."
                        },
                        "above": {
                          "type": "string",
                          "description": "The tier starts above this quantity (exact)."
                        },
                        "units": {
                          "type": "string",
                          "description": "Units charged at this tier's price (exact)."
                        },
                        "up_to": {
                          "type": "string",
                          "description": "The tier ends at this quantity, inclusive; inf for the last tier."
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "units × unit_price + flat_fee, rounded. Unit: currency."
                        },
                        "flat_fee": {
                          "type": "string",
                          "description": "This tier's flat fee, as given."
                        },
                        "unit_price": {
                          "type": "string",
                          "description": "This tier's price per unit, as given."
                        }
                      }
                    },
                    "description": "Each tier that is charged: one row for volume pricing, every tier reached for graduated pricing."
                  },
                  "total": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The price of the quantity, rounded once. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "billing/tiered-price@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Tiered pricing calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_abn",
          "title": "Australian Business Number (ABN) check",
          "description": "Check an 11-digit Australian Business Number with the Australian Business Register's modulus 89 rule.\n\nChecks an Australian Business Number the way the Australian Business Register describes: subtract 1 from the first digit, multiply the eleven digits by the weights 10, 1, 3, 5, 7, 9, 11, 13, 15, 17 and 19, and the total must divide by 89.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "51 824 753 556"
                ],
                "maxLength": 64,
                "description": "The 11-digit ABN. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the ABN passes every check."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "formatted": {
                    "type": "string",
                    "description": "The ABN grouped 2-3-3-3."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/abn@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Australian Business Number (ABN) check",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_bic",
          "title": "BIC (SWIFT code) check",
          "description": "Check the structure of a BIC (SWIFT code) under ISO 9362 and split it into party, country and branch.\n\nChecks a Business Identifier Code as ISO 9362 defines it: 8 or 11 characters, a four-character party prefix, a two-letter ISO 3166 country code, a two-character party suffix and an optional three-character branch. A BIC has no check digit, so the structure and the country code are all that can be tested without the SWIFT directory.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "DEUTDEFF500"
                ],
                "maxLength": 64,
                "description": "The BIC to check, 8 or 11 characters. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "bic8": {
                    "type": "string",
                    "description": "The first eight characters."
                  },
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the BIC passes every check."
                  },
                  "branch": {
                    "type": "string",
                    "description": "Characters 9 to 11, when given."
                  },
                  "country": {
                    "type": "string",
                    "description": "Characters 5 and 6."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "test_bic": {
                    "type": "boolean",
                    "description": "True when the eighth character is 0, which SWIFT uses for test and training BICs."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "country_name": {
                    "type": "string",
                    "description": "The country's name."
                  },
                  "party_prefix": {
                    "type": "string",
                    "description": "Characters 1 to 4."
                  },
                  "party_suffix": {
                    "type": "string",
                    "description": "Characters 7 and 8."
                  },
                  "primary_office": {
                    "type": "boolean",
                    "description": "True when there is no branch code or it is XXX."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/bic@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "BIC (SWIFT code) check",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_cusip",
          "title": "CUSIP check",
          "description": "Check the length and check digit of a CUSIP and split it into issuer, issue and check digit.\n\nChecks a nine-character CUSIP, the identifier of US and Canadian securities: six characters for the issuer, two for the issue and a check digit worked out with the CUSIP form of the Luhn rule (the 'modulus 10 double-add-double' method).",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "037833100"
                ],
                "maxLength": 64,
                "description": "The nine-character CUSIP. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "issue": {
                    "type": "string",
                    "description": "Characters 7 and 8."
                  },
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the CUSIP passes every check."
                  },
                  "issuer": {
                    "type": "string",
                    "description": "Characters 1 to 6."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "check_digit": {
                    "type": "string",
                    "description": "The ninth character."
                  },
                  "expected_check_digit": {
                    "type": "string",
                    "description": "The check digit the first eight characters give."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/cusip@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "CUSIP check",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_iban",
          "title": "IBAN check",
          "description": "Check an IBAN's country, length, structure and check digits against the SWIFT IBAN registry, and say exactly what is wrong.\n\nChecks an International Bank Account Number the way ISO 13616 defines it: the country code must be in the SWIFT IBAN registry, the length and the structure of the account part (BBAN) must be the ones registered for that country, and the two check digits must be the ones MOD 97-10 gives. When a check fails, the answer names it, and for a wrong check digit it gives the digits the rest of the number calls for.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "GB82 WEST 1234 5698 7654 32"
                ],
                "maxLength": 64,
                "description": "The IBAN to check. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "bban": {
                    "type": "string",
                    "description": "The Basic Bank Account Number: everything after the check digits."
                  },
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the IBAN passes every check."
                  },
                  "country": {
                    "type": "string",
                    "description": "The ISO 3166 country code."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "formatted": {
                    "type": "string",
                    "description": "The IBAN in groups of four."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "check_digits": {
                    "type": "string",
                    "description": "Characters 3 and 4."
                  },
                  "country_name": {
                    "type": "string",
                    "description": "The country's name in the registry."
                  },
                  "expected_check_digits": {
                    "type": "string",
                    "description": "The check digits ISO 13616 gives the country code and BBAN."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/iban@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "IBAN check",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_india_gstin",
          "title": "GSTIN check (India)",
          "description": "Check the state code, structure and check character of an Indian GSTIN and read the PAN inside it.\n\nChecks a 15-character Goods and Services Tax Identification Number: a two-digit state code, the holder's ten-character PAN, an entity number, a default letter and a check character. The check character is worked out over the first 14 characters with the Luhn rule in base 36.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "27AAPFU0939F1ZV"
                ],
                "maxLength": 64,
                "description": "The 15-character GSTIN. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "pan": {
                    "type": "string",
                    "description": "Characters 3 to 12, for a regular taxpayer."
                  },
                  "kind": {
                    "type": "string",
                    "description": "A regular taxpayer's GSTIN (with a PAN inside) or another kind of registration."
                  },
                  "state": {
                    "type": "string",
                    "description": "The state or territory of the code."
                  },
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the GSTIN passes every check."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "pan_holder": {
                    "type": "string",
                    "description": "The kind of holder the PAN's fourth character stands for."
                  },
                  "state_code": {
                    "type": "string",
                    "description": "The first two digits."
                  },
                  "entity_number": {
                    "type": "string",
                    "description": "Character 13: which of the holder's registrations in the state this is."
                  },
                  "check_character": {
                    "type": "string",
                    "description": "The last character."
                  },
                  "expected_check_character": {
                    "type": "string",
                    "description": "The check character the first 14 characters give."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/india-gstin@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "GSTIN check (India)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_india_pan",
          "title": "PAN check (India)",
          "description": "Check the structure of an Indian Permanent Account Number and read the kind of holder from its fourth character.\n\nChecks a ten-character Permanent Account Number: five letters, four digits and a letter, where the fourth character says whether the holder is an individual, a company, a firm, a trust and so on. The rule for the last letter is not published, so it cannot be checked.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "AAPFU0939F"
                ],
                "maxLength": 64,
                "description": "The 10-character PAN. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the PAN passes every check."
                  },
                  "holder": {
                    "type": "string",
                    "description": "The kind of holder it stands for."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "holder_code": {
                    "type": "string",
                    "description": "The fourth character."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/india-pan@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "PAN check (India)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_isin",
          "title": "ISIN check",
          "description": "Check the structure and check digit of an ISIN (ISO 6166) and split it into prefix, national number and check digit.\n\nChecks an International Securities Identification Number as ISO 6166 defines it: a two-letter prefix, a nine-character national securities number and a check digit worked out with the Luhn rule after the letters are turned into numbers.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "US0378331005"
                ],
                "maxLength": 64,
                "description": "The 12-character ISIN. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "nsin": {
                    "type": "string",
                    "description": "The national securities number."
                  },
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the ISIN passes every check."
                  },
                  "prefix": {
                    "type": "string",
                    "description": "The first two letters."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "check_digit": {
                    "type": "string",
                    "description": "The last character."
                  },
                  "prefix_country": {
                    "type": "string",
                    "description": "The country the prefix stands for, when it is an ISO 3166 code. Prefixes such as XS (international securities) are not countries."
                  },
                  "expected_check_digit": {
                    "type": "string",
                    "description": "The check digit the first eleven characters give."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/isin@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "ISIN check",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_lei",
          "title": "LEI check",
          "description": "Check the length and check digits of a Legal Entity Identifier (ISO 17442).\n\nChecks a Legal Entity Identifier as ISO 17442 defines it: 20 letters and digits, the last two being check digits worked out with MOD 97-10. The first four characters identify the organisation that issued the LEI.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "5493001KJTIIGC8Y1R12"
                ],
                "maxLength": 64,
                "description": "The 20-character LEI. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the LEI passes every check."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "lou_prefix": {
                    "type": "string",
                    "description": "The first four characters: the prefix of the issuing organisation (LOU)."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "check_digits": {
                    "type": "string",
                    "description": "The last two characters."
                  },
                  "expected_check_digits": {
                    "type": "string",
                    "description": "The check digits the first 18 characters give."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/lei@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "LEI check",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_us_routing_number",
          "title": "US bank routing number check",
          "description": "Check the check digit and the first two digits of a US ABA routing number.\n\nChecks a nine-digit ABA routing transit number: the first two digits must be in a range the American Bankers Association uses, and the ninth digit must be the check digit the first eight give with the weights 3, 7, 1.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "021000021"
                ],
                "maxLength": 64,
                "description": "The nine-digit routing number. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the routing number passes every check."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "check_digit": {
                    "type": "string",
                    "description": "The ninth digit."
                  },
                  "prefix_meaning": {
                    "type": "string",
                    "description": "What the first two digits stand for."
                  },
                  "expected_check_digit": {
                    "type": "string",
                    "description": "The check digit the first eight digits give."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/us-routing-number@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "US bank routing number check",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_check_vat_number",
          "title": "VAT number check",
          "description": "Check the structure and check digit of a VAT number from any EU member state, Northern Ireland, Great Britain, Switzerland or Norway.\n\nChecks a VAT identification number against its country's structure and check digit rule: all 27 EU member states, Northern Ireland (XI), Great Britain, Switzerland and Norway. This is the test to run before sending a number to VIES or putting it on an invoice: it catches typing mistakes at once and works when VIES is down. It does not say whether the number is registered.",
          "inputSchema": {
            "type": "object",
            "required": [
              "number"
            ],
            "properties": {
              "number": {
                "type": "string",
                "examples": [
                  "DE 136 695 976"
                ],
                "maxLength": 64,
                "description": "The VAT number, with or without its country prefix. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters."
              },
              "country": {
                "enum": [
                  "AT",
                  "BE",
                  "BG",
                  "CY",
                  "CZ",
                  "DE",
                  "DK",
                  "EE",
                  "EL",
                  "ES",
                  "FI",
                  "FR",
                  "HR",
                  "HU",
                  "IE",
                  "IT",
                  "LT",
                  "LU",
                  "LV",
                  "MT",
                  "NL",
                  "PL",
                  "PT",
                  "RO",
                  "SE",
                  "SI",
                  "SK",
                  "XI",
                  "GB",
                  "CHE",
                  "NO",
                  "GR",
                  "CH"
                ],
                "type": "string",
                "description": "The country, when the number has no prefix. Greece uses EL on VAT numbers. Options: AT: Austria; BE: Belgium; BG: Bulgaria; CY: Cyprus; CZ: Czechia; DE: Germany; DK: Denmark; EE: Estonia; EL: Greece; ES: Spain; FI: Finland; FR: France; HR: Croatia; HU: Hungary; IE: Ireland; IT: Italy; LT: Lithuania; LU: Luxembourg; LV: Latvia; MT: Malta; NL: Netherlands; PL: Poland; PT: Portugal; RO: Romania; SE: Sweden; SI: Slovenia; SK: Slovakia; XI: Northern Ireland; GB: United Kingdom; CHE: Switzerland; NO: Norway; GR: Greece (same as EL); CH: Switzerland (same as CHE)"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "normalized",
                  "message"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean",
                    "description": "Whether the VAT number passes every check."
                  },
                  "country": {
                    "type": "string",
                    "description": "The prefix: the ISO 3166 code, except EL for Greece, XI for Northern Ireland and CHE for Switzerland."
                  },
                  "message": {
                    "type": "string",
                    "description": "The result in a sentence, naming the rule that failed."
                  },
                  "problem": {
                    "type": "string",
                    "description": "What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number."
                  },
                  "normalized": {
                    "type": "string",
                    "description": "The number as it was checked: separators removed, letters in upper case."
                  },
                  "country_name": {
                    "type": "string",
                    "description": "The country's name."
                  },
                  "national_number": {
                    "type": "string",
                    "description": "The number after the prefix."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "check/vat-number@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "VAT number check",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_date_add",
          "title": "Add or subtract time from a date",
          "description": "Add or subtract years, months, weeks, days, business days or hours to a date or date-time, with month-end and daylight-saving rules spelled out.\n\nCalendar amounts (years, months, weeks, days) move the date on the calendar, keeping the clock time; hours, minutes and seconds are then added as elapsed time. So adding 1 day across a daylight saving change keeps 09:00 at 09:00, while adding 24 hours may not. Month additions that land on a day that does not exist use the month's last day, and the response says so.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start"
            ],
            "properties": {
              "days": {
                "type": "integer",
                "default": 0,
                "maximum": 4000000,
                "minimum": 0,
                "description": "Days to add. Allowed: >= 0 and <= 4000000."
              },
              "hours": {
                "type": "integer",
                "default": 0,
                "maximum": 100000000,
                "minimum": 0,
                "description": "Hours of elapsed time to add (date-times). Allowed: >= 0 and <= 100000000."
              },
              "start": {
                "type": "string",
                "examples": [
                  "2026-01-31"
                ],
                "maxLength": 40,
                "description": "Start date (YYYY-MM-DD) or date-time. At most 40 characters."
              },
              "weeks": {
                "type": "integer",
                "default": 0,
                "maximum": 600000,
                "minimum": 0,
                "description": "Weeks to add. Allowed: >= 0 and <= 600000."
              },
              "years": {
                "type": "integer",
                "default": 0,
                "maximum": 9999,
                "minimum": 0,
                "description": "Years to add. Allowed: >= 0 and <= 9999."
              },
              "months": {
                "type": "integer",
                "default": 0,
                "maximum": 120000,
                "minimum": 0,
                "description": "Months to add. Allowed: >= 0 and <= 120000."
              },
              "minutes": {
                "type": "integer",
                "default": 0,
                "maximum": 100000000,
                "minimum": 0,
                "description": "Minutes of elapsed time to add (date-times). Allowed: >= 0 and <= 100000000."
              },
              "seconds": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Seconds of elapsed time to add (date-times). Allowed: >= 0 and <= 10000000000."
              },
              "weekend": {
                "enum": [
                  "sat_sun",
                  "fri_sat",
                  "sun",
                  "fri",
                  "none"
                ],
                "type": "string",
                "default": "sat_sun",
                "description": "Days that are not business days. Options: sat_sun: Saturday and Sunday; fri_sat: Friday and Saturday; sun: Sunday only; fri: Friday only; none: no weekend days"
              },
              "holidays": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "maxItems": 1000,
                "minItems": 0,
                "description": "Dates that are not business days. Up to 1000 items."
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone for a date-time start without an offset."
              },
              "operation": {
                "enum": [
                  "add",
                  "subtract"
                ],
                "type": "string",
                "default": "add",
                "description": "Add or subtract. Options: add: add; subtract: subtract"
              },
              "business_days": {
                "type": "integer",
                "maximum": 25000,
                "minimum": 0,
                "description": "Business days to add (alone, with a plain date). Allowed: >= 0 and <= 25000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "result",
                  "weekday"
                ],
                "properties": {
                  "result": {
                    "type": "string",
                    "description": "The resulting date or date-time."
                  },
                  "weekday": {
                    "type": "string",
                    "description": "Day of the week of the result."
                  },
                  "result_utc": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The result in UTC (date-times)."
                  },
                  "tz_database": {
                    "type": "string",
                    "description": "Time zone database version used."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "date/add@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Add or subtract time from a date",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_date_age",
          "title": "Age calculator",
          "description": "Exact age in years, months and days, plus the next birthday, with an explicit rule for 29 February birthdays.\n\nAge on a given date as completed years, months and days. People born on 29 February reach a new age on 28 February in common years by default (the rule in New Zealand and Taiwan, and the one consistent with date arithmetic); choose mar1 for the 1 March rule used in the UK and Hong Kong.",
          "inputSchema": {
            "type": "object",
            "required": [
              "birth_date"
            ],
            "properties": {
              "on_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-10-20"
                ],
                "description": "Date to calculate the age on. Defaults to today in UTC."
              },
              "birth_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "1990-05-15"
                ],
                "description": "Date of birth (YYYY-MM-DD)."
              },
              "leap_day_birthday": {
                "enum": [
                  "feb28",
                  "mar1"
                ],
                "type": "string",
                "default": "feb28",
                "description": "When someone born on 29 February has a birthday in a common year. Options: feb28: on 28 February; mar1: on 1 March"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "years",
                  "months",
                  "days",
                  "total_months",
                  "total_weeks",
                  "total_days",
                  "on_date"
                ],
                "properties": {
                  "days": {
                    "type": "integer",
                    "description": "Days since the last whole month."
                  },
                  "years": {
                    "type": "integer",
                    "description": "Completed years."
                  },
                  "months": {
                    "type": "integer",
                    "description": "Completed months since the last birthday."
                  },
                  "on_date": {
                    "type": "string",
                    "format": "date",
                    "description": "The date the age was calculated on."
                  },
                  "total_days": {
                    "type": "integer",
                    "description": "Days since birth."
                  },
                  "total_weeks": {
                    "type": "integer",
                    "description": "Completed weeks since birth."
                  },
                  "total_months": {
                    "type": "integer",
                    "description": "Completed months since birth."
                  },
                  "next_birthday": {
                    "type": "string",
                    "format": "date",
                    "description": "Date of the next birthday."
                  },
                  "days_until_next_birthday": {
                    "type": "integer",
                    "description": "Days until the next birthday."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "date/age@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Age calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_date_difference",
          "title": "Date difference calculator",
          "description": "Days, weeks, months, years and business days between two dates, or the exact time between two date-times across time zones and daylight saving changes.\n\nFor two dates, returns the number of days (end minus start), the breakdown into years, months and days, and the number of business days. For two date-times, returns the exact elapsed time; each date-time needs a UTC offset or a time zone, and times that are skipped or repeated by daylight saving changes are reported instead of guessed.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start",
              "end"
            ],
            "properties": {
              "end": {
                "type": "string",
                "examples": [
                  "2026-12-25"
                ],
                "maxLength": 40,
                "description": "End date or date-time, same kind as start. At most 40 characters."
              },
              "start": {
                "type": "string",
                "examples": [
                  "2026-01-01"
                ],
                "maxLength": 40,
                "description": "Start date (YYYY-MM-DD) or date-time (2026-03-29T01:30:00+01:00). At most 40 characters."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "weekend": {
                "enum": [
                  "sat_sun",
                  "fri_sat",
                  "sun",
                  "fri",
                  "none"
                ],
                "type": "string",
                "default": "sat_sun",
                "description": "Days that are not business days. Options: sat_sun: Saturday and Sunday; fri_sat: Friday and Saturday; sun: Sunday only; fri: Friday only; none: no weekend days"
              },
              "holidays": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "maxItems": 1000,
                "minItems": 0,
                "description": "Dates that are not business days. Up to 1000 items."
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone for date-times without an offset, e.g. America/New_York."
              },
              "include_end_date": {
                "type": "boolean",
                "default": false,
                "description": "Count the end date too (so Monday to Friday is 5 days, like spreadsheet NETWORKDAYS)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [],
                "properties": {
                  "days": {
                    "type": "integer",
                    "description": "Days from start to end (negative if end is earlier); with include_end_date the end day is counted too."
                  },
                  "weeks": {
                    "type": "integer",
                    "description": "Whole weeks in days."
                  },
                  "years": {
                    "type": "integer",
                    "description": "Years in the years-months-days breakdown."
                  },
                  "months": {
                    "type": "integer",
                    "description": "Months in the breakdown."
                  },
                  "total_days": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Elapsed days of 24 hours (date-times)."
                  },
                  "end_weekday": {
                    "type": "string",
                    "description": "Day of the week of end."
                  },
                  "total_hours": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Elapsed hours (date-times)."
                  },
                  "tz_database": {
                    "type": "string",
                    "description": "Time zone database version used."
                  },
                  "elapsed_days": {
                    "type": "integer",
                    "description": "Whole days in the elapsed time (date-times)."
                  },
                  "total_months": {
                    "type": "integer",
                    "description": "Whole months between the dates."
                  },
                  "business_days": {
                    "type": "integer",
                    "description": "Business days from start up to (not including) end, or including end when include_end_date is true."
                  },
                  "calendar_days": {
                    "type": "integer",
                    "description": "Days in the breakdown."
                  },
                  "elapsed_hours": {
                    "type": "integer",
                    "description": "Hours after the whole days (date-times)."
                  },
                  "start_weekday": {
                    "type": "string",
                    "description": "Day of the week of start."
                  },
                  "total_minutes": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Elapsed minutes (date-times)."
                  },
                  "total_seconds": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Exact elapsed seconds (date-times)."
                  },
                  "remaining_days": {
                    "type": "integer",
                    "description": "Days left after the whole weeks."
                  },
                  "elapsed_minutes": {
                    "type": "integer",
                    "description": "Minutes after the whole hours (date-times)."
                  },
                  "elapsed_seconds": {
                    "type": "string",
                    "description": "Seconds after the whole minutes, exactly (date-times)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "date/difference@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Date difference calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_date_holidays",
          "title": "Public holidays by country and year",
          "description": "The public holidays of a country or region in a year, worked out from the rules in its law, with the official source.\n\nLists the public holidays of a year for the United States (federal), the United Kingdom (England and Wales, Scotland, Northern Ireland), Germany (nationwide and each of the 16 states), France, the Netherlands, Ireland, Belgium, Austria and Italy. Dates come from the rules themselves: fixed dates, weekday rules such as the last Monday in May, and days counted from Easter. UK substitute days and the day US federal offices close when a holiday falls at a weekend are included. Countries that set some holidays year by year, by decree or by the moon, are not covered, because those dates cannot be worked out ahead.",
          "inputSchema": {
            "type": "object",
            "required": [
              "calendar",
              "year"
            ],
            "properties": {
              "year": {
                "type": "integer",
                "maximum": 2030,
                "minimum": 2020,
                "examples": [
                  2027
                ],
                "description": "The year. Allowed: >= 2020 and <= 2030."
              },
              "calendar": {
                "enum": [
                  "US",
                  "GB-ENG",
                  "GB-SCT",
                  "GB-NIR",
                  "DE",
                  "DE-BW",
                  "DE-BY",
                  "DE-BE",
                  "DE-BB",
                  "DE-HB",
                  "DE-HH",
                  "DE-HE",
                  "DE-MV",
                  "DE-NI",
                  "DE-NW",
                  "DE-RP",
                  "DE-SL",
                  "DE-SN",
                  "DE-ST",
                  "DE-SH",
                  "DE-TH",
                  "FR",
                  "NL",
                  "IE",
                  "BE",
                  "AT",
                  "IT"
                ],
                "type": "string",
                "examples": [
                  "GB-ENG"
                ],
                "description": "The country or region. Options: US: United States (federal holidays); GB-ENG: United Kingdom: England and Wales; GB-SCT: United Kingdom: Scotland; GB-NIR: United Kingdom: Northern Ireland; DE: Germany (the nine nationwide holidays); DE-BW: Germany: Baden-Württemberg; DE-BY: Germany: Bavaria; DE-BE: Germany: Berlin; DE-BB: Germany: Brandenburg; DE-HB: Germany: Bremen; DE-HH: Germany: Hamburg; DE-HE: Germany: Hesse; DE-MV: Germany: Mecklenburg-Vorpommern; DE-NI: Germany: Lower Saxony; DE-NW: Germany: North Rhine-Westphalia; DE-RP: Germany: Rhineland-Palatinate; DE-SL: Germany: Saarland; DE-SN: Germany: Saxony; DE-ST: Germany: Saxony-Anhalt; DE-SH: Germany: Schleswig-Holstein; DE-TH: Germany: Thuringia; FR: France (mainland); NL: Netherlands; IE: Ireland; BE: Belgium; AT: Austria; IT: Italy"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "calendar_name",
                  "count",
                  "holidays",
                  "days_off",
                  "source",
                  "source_url"
                ],
                "properties": {
                  "count": {
                    "type": "integer",
                    "description": "How many holidays there are."
                  },
                  "source": {
                    "type": "string",
                    "description": "The law or official list the rules come from."
                  },
                  "days_off": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The dates that are not worked, in order: each holiday, or the day it is observed on."
                  },
                  "holidays": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "date",
                        "weekday",
                        "name"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "format": "date",
                          "description": "The holiday's date."
                        },
                        "name": {
                          "type": "string",
                          "description": "Its name in English."
                        },
                        "weekday": {
                          "type": "string",
                          "description": "Its day of the week."
                        },
                        "local_name": {
                          "type": "string",
                          "description": "Its name in the country's language."
                        },
                        "observed_on": {
                          "type": "string",
                          "format": "date",
                          "description": "United States: the weekday federal offices close instead, when the date is a Saturday (the Friday before) or a Sunday (the Monday after)."
                        }
                      }
                    },
                    "description": "The holidays in date order."
                  },
                  "source_url": {
                    "type": "string",
                    "description": "Its address."
                  },
                  "calendar_name": {
                    "type": "string",
                    "description": "The country or region in words."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "date/holidays@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Public holidays by country and year",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_date_timezone_convert",
          "title": "Time zone converter",
          "description": "A moment in up to 25 time zones at once, with each zone's UTC offset and whether daylight saving time applies, from the IANA time zone database.\n\nConverts a date and time to other time zones. Give the moment with a UTC offset, or as a local time with the zone it is in, and the zones you want. Each answer has the local date and time, the day of the week, the UTC offset in force at that moment and whether daylight saving time applies. A local time that does not exist (the clocks skip it) or happens twice (the clocks go back) is refused with an explanation instead of being guessed.",
          "inputSchema": {
            "type": "object",
            "required": [
              "datetime",
              "to_timezones"
            ],
            "properties": {
              "datetime": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2026-03-29T09:00:00"
                ],
                "description": "The moment: an ISO 8601 date-time with a UTC offset, or a local time in from_timezone."
              },
              "to_timezones": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "examples": [
                  [
                    "America/New_York",
                    "Asia/Kolkata",
                    "UTC"
                  ]
                ],
                "maxItems": 25,
                "minItems": 1,
                "description": "The IANA time zones to convert to, such as America/New_York. 1 to 25 items."
              },
              "from_timezone": {
                "type": "string",
                "examples": [
                  "Europe/Berlin"
                ],
                "description": "The IANA time zone of a datetime that has no UTC offset."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "utc",
                  "conversions",
                  "tz_database"
                ],
                "properties": {
                  "utc": {
                    "type": "string",
                    "description": "The moment in UTC."
                  },
                  "conversions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "timezone",
                        "local",
                        "weekday",
                        "utc_offset",
                        "abbreviation",
                        "daylight_saving"
                      ],
                      "properties": {
                        "local": {
                          "type": "string",
                          "description": "The local date and time with its offset."
                        },
                        "weekday": {
                          "type": "string",
                          "description": "The local day of the week."
                        },
                        "timezone": {
                          "type": "string",
                          "description": "The zone."
                        },
                        "utc_offset": {
                          "type": "string",
                          "description": "Offset from UTC at that moment."
                        },
                        "abbreviation": {
                          "type": "string",
                          "description": "The zone's abbreviation then."
                        },
                        "daylight_saving": {
                          "type": "boolean",
                          "description": "Whether daylight saving time applies."
                        }
                      }
                    },
                    "description": "The moment in each zone, in the order asked."
                  },
                  "tz_database": {
                    "type": "string",
                    "description": "The time zone data used."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "date/timezone-convert@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Time zone converter",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_date_working_days",
          "title": "Working days calculator with public holidays",
          "description": "Working days between two dates, or the date a number of working days away, leaving out weekends and a country's public holidays.\n\nCounts the working days between two dates, or finds the date that lies a number of working days after (or before) a start date. Weekends and the public holidays of the chosen country or region are left out, and you can add your own closing days. The answer lists the holidays it skipped, so the count can be checked by hand.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start"
            ],
            "properties": {
              "end": {
                "type": "string",
                "format": "date",
                "description": "The end date, to count working days."
              },
              "start": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-12-21"
                ],
                "description": "The start date."
              },
              "weekend": {
                "enum": [
                  "sat_sun",
                  "fri_sat",
                  "sun",
                  "fri",
                  "none"
                ],
                "type": "string",
                "default": "sat_sun",
                "description": "Days of the week that are not worked. Options: sat_sun: Saturday and Sunday; fri_sat: Friday and Saturday; sun: Sunday only; fri: Friday only; none: no weekend days"
              },
              "add_days": {
                "type": "integer",
                "maximum": 2500,
                "minimum": -2500,
                "examples": [
                  5
                ],
                "description": "Working days to move from start, to find a date; negative to go back. The start date itself is not counted. Allowed: >= -2500 and <= 2500."
              },
              "calendar": {
                "enum": [
                  "US",
                  "GB-ENG",
                  "GB-SCT",
                  "GB-NIR",
                  "DE",
                  "DE-BW",
                  "DE-BY",
                  "DE-BE",
                  "DE-BB",
                  "DE-HB",
                  "DE-HH",
                  "DE-HE",
                  "DE-MV",
                  "DE-NI",
                  "DE-NW",
                  "DE-RP",
                  "DE-SL",
                  "DE-SN",
                  "DE-ST",
                  "DE-SH",
                  "DE-TH",
                  "FR",
                  "NL",
                  "IE",
                  "BE",
                  "AT",
                  "IT"
                ],
                "type": "string",
                "description": "The public holidays to leave out (2020 to 2030). Omit it to count only weekends and extra_holidays. Options: US: United States (federal holidays); GB-ENG: United Kingdom: England and Wales; GB-SCT: United Kingdom: Scotland; GB-NIR: United Kingdom: Northern Ireland; DE: Germany (the nine nationwide holidays); DE-BW: Germany: Baden-Württemberg; DE-BY: Germany: Bavaria; DE-BE: Germany: Berlin; DE-BB: Germany: Brandenburg; DE-HB: Germany: Bremen; DE-HH: Germany: Hamburg; DE-HE: Germany: Hesse; DE-MV: Germany: Mecklenburg-Vorpommern; DE-NI: Germany: Lower Saxony; DE-NW: Germany: North Rhine-Westphalia; DE-RP: Germany: Rhineland-Palatinate; DE-SL: Germany: Saarland; DE-SN: Germany: Saxony; DE-ST: Germany: Saxony-Anhalt; DE-SH: Germany: Schleswig-Holstein; DE-TH: Germany: Thuringia; FR: France (mainland); NL: Netherlands; IE: Ireland; BE: Belgium; AT: Austria; IT: Italy"
              },
              "extra_holidays": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "maxItems": 1000,
                "minItems": 0,
                "description": "More days that are not worked, such as company closing days. Up to 1000 items."
              },
              "include_end_date": {
                "type": "boolean",
                "default": false,
                "description": "When counting: whether the end date counts too. Without it the count runs from start up to the day before end."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "holidays_skipped"
                ],
                "properties": {
                  "result": {
                    "type": "string",
                    "format": "date",
                    "description": "The date add_days working days away."
                  },
                  "weekday": {
                    "type": "string",
                    "description": "The result's day of the week."
                  },
                  "working_days": {
                    "type": "integer",
                    "description": "Working days from start to end; negative when end is before start."
                  },
                  "holidays_skipped": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "date",
                        "weekday",
                        "name"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "format": "date",
                          "description": "The holiday."
                        },
                        "name": {
                          "type": "string",
                          "description": "Its name."
                        },
                        "weekday": {
                          "type": "string",
                          "description": "Its day of the week."
                        }
                      }
                    },
                    "description": "The holidays on weekdays in the span, which were not counted."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "date/working-days@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Working days calculator with public holidays",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_date_working_hours",
          "title": "Working hours and SLA deadline calculator",
          "description": "The deadline a number of working hours after a start, or the working time between two moments, with office hours, weekends, public holidays and time zones.\n\nAnswers the two questions a service-level agreement asks. When is the deadline, if a ticket opened now must be answered within 8 working hours? And how much working time passed between the moment it opened and the moment it closed? Working time is the office hours you give, in the office's time zone, on days that are not a weekend day, a public holiday of the chosen calendar or one of your own closing days. Time outside office hours does not count: a ticket opened on Friday evening starts its clock on Monday morning.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start",
              "timezone"
            ],
            "properties": {
              "end": {
                "type": "string",
                "format": "date-time",
                "description": "When the clock stops, to measure the working time."
              },
              "start": {
                "type": "string",
                "format": "date-time",
                "examples": [
                  "2026-12-24T15:30:00"
                ],
                "description": "When the clock starts: a date-time with a UTC offset, or a local time in timezone."
              },
              "day_end": {
                "type": "string",
                "default": "17:00",
                "maxLength": 5,
                "description": "When work ends each day, as HH:MM; 24:00 for midnight. At most 5 characters."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=4).",
                "additionalProperties": false
              },
              "weekend": {
                "enum": [
                  "sat_sun",
                  "fri_sat",
                  "sun",
                  "fri",
                  "none"
                ],
                "type": "string",
                "default": "sat_sun",
                "description": "Days of the week that are not worked. Options: sat_sun: Saturday and Sunday; fri_sat: Friday and Saturday; sun: Sunday only; fri: Friday only; none: no weekend days"
              },
              "calendar": {
                "enum": [
                  "US",
                  "GB-ENG",
                  "GB-SCT",
                  "GB-NIR",
                  "DE",
                  "DE-BW",
                  "DE-BY",
                  "DE-BE",
                  "DE-BB",
                  "DE-HB",
                  "DE-HH",
                  "DE-HE",
                  "DE-MV",
                  "DE-NI",
                  "DE-NW",
                  "DE-RP",
                  "DE-SL",
                  "DE-SN",
                  "DE-ST",
                  "DE-SH",
                  "DE-TH",
                  "FR",
                  "NL",
                  "IE",
                  "BE",
                  "AT",
                  "IT"
                ],
                "type": "string",
                "description": "The public holidays to leave out (2020 to 2030). Omit it to count only weekends and extra_holidays. Options: US: United States (federal holidays); GB-ENG: United Kingdom: England and Wales; GB-SCT: United Kingdom: Scotland; GB-NIR: United Kingdom: Northern Ireland; DE: Germany (the nine nationwide holidays); DE-BW: Germany: Baden-Württemberg; DE-BY: Germany: Bavaria; DE-BE: Germany: Berlin; DE-BB: Germany: Brandenburg; DE-HB: Germany: Bremen; DE-HH: Germany: Hamburg; DE-HE: Germany: Hesse; DE-MV: Germany: Mecklenburg-Vorpommern; DE-NI: Germany: Lower Saxony; DE-NW: Germany: North Rhine-Westphalia; DE-RP: Germany: Rhineland-Palatinate; DE-SL: Germany: Saarland; DE-SN: Germany: Saxony; DE-ST: Germany: Saxony-Anhalt; DE-SH: Germany: Schleswig-Holstein; DE-TH: Germany: Thuringia; FR: France (mainland); NL: Netherlands; IE: Ireland; BE: Belgium; AT: Austria; IT: Italy"
              },
              "timezone": {
                "type": "string",
                "examples": [
                  "Europe/London"
                ],
                "description": "The IANA time zone the office hours are in."
              },
              "add_hours": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "8"
                ],
                "description": "Working hours allowed, to find the deadline. Allowed: >= 0 and <= 20000. Unit: hours."
              },
              "day_start": {
                "type": "string",
                "default": "09:00",
                "maxLength": 5,
                "description": "When work starts each day, as HH:MM. At most 5 characters."
              },
              "extra_holidays": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "maxItems": 1000,
                "minItems": 0,
                "description": "More days that are not worked, such as company closing days. Up to 1000 items."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "tz_database"
                ],
                "properties": {
                  "weekday": {
                    "type": "string",
                    "description": "The deadline's day of the week."
                  },
                  "deadline": {
                    "type": "string",
                    "description": "The moment the working hours are used up, in the office's time zone."
                  },
                  "tz_database": {
                    "type": "string",
                    "description": "The time zone data used."
                  },
                  "deadline_utc": {
                    "type": "string",
                    "description": "The same moment in UTC."
                  },
                  "working_hours": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Working time from start to end, in hours; negative when end is before start. Unit: hours."
                  },
                  "working_minutes": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The same in minutes. Unit: minutes."
                  },
                  "days_with_working_time": {
                    "type": "integer",
                    "description": "How many days had some working time in the span."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "date/working-hours@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Working hours and SLA deadline calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_everyday_discount",
          "title": "Discount calculator",
          "description": "Sale price after a percentage or fixed discount, an optional stacked second discount and sales tax.\n\nApplies a discount (percent or amount), then an optional second percentage discount on the reduced price (the way '20% off, then an extra 10%' works in shops), then sales tax. Each money amount is rounded to the cent and the totals are built from those rounded amounts, so the figures always add up.",
          "inputSchema": {
            "type": "object",
            "required": [
              "price"
            ],
            "properties": {
              "price": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "80"
                ],
                "description": "Original price. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "discount_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Discount as an amount. Give this or discount_percent. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "discount_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "25"
                ],
                "description": "Discount in percent. Give this or discount_amount. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "sales_tax_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Sales tax added after the discounts. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "additional_discount_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Second discount applied to the already reduced price. Allowed: >= 0 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "discount_amount",
                  "additional_discount_amount",
                  "price_after_discount",
                  "tax_amount",
                  "final_price",
                  "total_savings",
                  "effective_discount_percent"
                ],
                "properties": {
                  "tax_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Sales tax on the discounted price. Unit: currency."
                  },
                  "final_price": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Price after discounts plus tax. Unit: currency."
                  },
                  "total_savings": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Both discounts together. Unit: currency."
                  },
                  "discount_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "First discount. Unit: currency."
                  },
                  "price_after_discount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Price after both discounts. Unit: currency."
                  },
                  "additional_discount_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Second discount. Unit: currency."
                  },
                  "effective_discount_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total savings as a percent of the price. Unit: percent."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "everyday/discount@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Discount calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_everyday_tip",
          "title": "Tip and bill split calculator",
          "description": "Tip amount, total and a fair split between people where the shares add up exactly to the bill.\n\nAdds a tip and splits the total. Splitting 100.00 three ways cannot give three equal amounts in cents, so the shares are 33.34, 33.33 and 33.33: they always add up to the total exactly, and the response says how many people pay one extra cent.",
          "inputSchema": {
            "type": "object",
            "required": [
              "bill_amount"
            ],
            "properties": {
              "people": {
                "type": "integer",
                "default": 1,
                "maximum": 1000,
                "minimum": 1,
                "description": "Number of people splitting the bill. Allowed: >= 1 and <= 1000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "bill_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "100"
                ],
                "description": "Bill before the tip. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "tip_percent": {
                "type": "string",
                "default": "15",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Tip in percent of the bill. Allowed: >= 0 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "tip_amount",
                  "total",
                  "per_person",
                  "shares",
                  "people_paying_extra"
                ],
                "properties": {
                  "total": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Bill plus tip. Unit: currency."
                  },
                  "shares": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "What each person pays; adds up exactly to total."
                  },
                  "per_person": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total ÷ people, rounded. Unit: currency."
                  },
                  "tip_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The tip. Unit: currency."
                  },
                  "people_paying_extra": {
                    "type": "integer",
                    "description": "How many shares carry one extra smallest unit."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "everyday/tip@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Tip and bill split calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_cumipmt",
          "title": "Excel CUMIPMT function: interest paid between two periods",
          "description": "Total interest paid on a loan from one period to another, as Excel's CUMIPMT.\n\nCUMIPMT(rate, nper, pv, start_period, end_period, type).",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "nper",
              "pv",
              "start_period",
              "end_period",
              "type"
            ],
            "properties": {
              "pv": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "125000"
                ],
                "description": "Present value (the loan amount). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "nper": {
                "type": "integer",
                "maximum": 12000,
                "minimum": 1,
                "examples": [
                  360
                ],
                "description": "Total number of payment periods. Allowed: >= 1 and <= 12000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08/12"
                ],
                "description": "Interest rate per period, as a decimal (0.005 for 0.5%). Write a monthly rate from an annual one as \"0.06/12\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000."
              },
              "type": {
                "type": "integer",
                "maximum": 1,
                "minimum": 0,
                "description": "0: payments at the end of each period; 1: at the beginning. Allowed: >= 0 and <= 1."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "end_period": {
                "type": "integer",
                "maximum": 12000,
                "minimum": 1,
                "examples": [
                  24
                ],
                "description": "Last period to include. Allowed: >= 1 and <= 12000."
              },
              "start_period": {
                "type": "integer",
                "maximum": 12000,
                "minimum": 1,
                "examples": [
                  13
                ],
                "description": "First period to include (periods start at 1). Allowed: >= 1 and <= 12000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "cumipmt"
                ],
                "properties": {
                  "cumipmt": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total interest over the periods (negative: paid)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/cumipmt@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel CUMIPMT function: interest paid between two periods",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_cumprinc",
          "title": "Excel CUMPRINC function: principal paid between two periods",
          "description": "Total principal repaid from one period to another, as Excel's CUMPRINC.\n\nCUMPRINC(rate, nper, pv, start_period, end_period, type).",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "nper",
              "pv",
              "start_period",
              "end_period",
              "type"
            ],
            "properties": {
              "pv": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "125000"
                ],
                "description": "Present value (the loan amount). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "nper": {
                "type": "integer",
                "maximum": 12000,
                "minimum": 1,
                "examples": [
                  360
                ],
                "description": "Total number of payment periods. Allowed: >= 1 and <= 12000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08/12"
                ],
                "description": "Interest rate per period, as a decimal (0.005 for 0.5%). Write a monthly rate from an annual one as \"0.06/12\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000."
              },
              "type": {
                "type": "integer",
                "maximum": 1,
                "minimum": 0,
                "description": "0: payments at the end of each period; 1: at the beginning. Allowed: >= 0 and <= 1."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "end_period": {
                "type": "integer",
                "maximum": 12000,
                "minimum": 1,
                "examples": [
                  24
                ],
                "description": "Last period to include. Allowed: >= 1 and <= 12000."
              },
              "start_period": {
                "type": "integer",
                "maximum": 12000,
                "minimum": 1,
                "examples": [
                  13
                ],
                "description": "First period to include (periods start at 1). Allowed: >= 1 and <= 12000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "cumprinc"
                ],
                "properties": {
                  "cumprinc": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total principal over the periods (negative: paid)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/cumprinc@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel CUMPRINC function: principal paid between two periods",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_days360",
          "title": "Excel DAYS360 function: days on a 360-day year",
          "description": "Days between two dates on a 360-day year, by the US (NASD) or European method, as Excel's DAYS360.\n\nDAYS360(start_date, end_date, [method]). US method (false): a start date on the last day of a month becomes the 30th; an end date on the 31st becomes the 1st of the next month if the start day is before the 30th, otherwise the 30th. European method (true): every 31st becomes the 30th.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start_date",
              "end_date"
            ],
            "properties": {
              "method": {
                "type": "boolean",
                "default": false,
                "description": "false: US (NASD) method; true: European method."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=0).",
                "additionalProperties": false
              },
              "end_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2011-12-31"
                ],
                "description": "End date."
              },
              "start_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2011-01-01"
                ],
                "description": "Start date."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "days"
                ],
                "properties": {
                  "days": {
                    "type": "integer",
                    "description": "Days on a 360-day year (negative if end is before start)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/days360@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel DAYS360 function: days on a 360-day year",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_db",
          "title": "Excel DB function: fixed-declining balance depreciation",
          "description": "Fixed-declining balance depreciation for one period, as Excel's DB, including its three-decimal rate and part-year first and last periods.\n\nDB(cost, salvage, life, period, [month]). The rate 1 − (salvage/cost)^(1/life) is rounded to three decimals, as Excel does. The first period covers month months; when month < 12 there is a final period life + 1 for the remainder.",
          "inputSchema": {
            "type": "object",
            "required": [
              "cost",
              "salvage",
              "life",
              "period"
            ],
            "properties": {
              "cost": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "2400"
                ],
                "description": "Initial cost of the asset. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              },
              "life": {
                "type": "integer",
                "maximum": 1200,
                "minimum": 1,
                "examples": [
                  6
                ],
                "description": "Life in years (whole years). Allowed: >= 1 and <= 1200."
              },
              "month": {
                "type": "integer",
                "default": 12,
                "maximum": 12,
                "minimum": 1,
                "description": "Months in the first year (default 12). Allowed: >= 1 and <= 12."
              },
              "period": {
                "type": "integer",
                "maximum": 1201,
                "minimum": 1,
                "examples": [
                  1
                ],
                "description": "The period (year) to calculate, from 1. Allowed: >= 1 and <= 1201."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "salvage": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "300"
                ],
                "description": "Value at the end of its life (can be 0). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "db",
                  "rate"
                ],
                "properties": {
                  "db": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Depreciation in that period."
                  },
                  "rate": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The rounded rate Excel uses."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/db@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel DB function: fixed-declining balance depreciation",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_ddb",
          "title": "Excel DDB function: double-declining balance depreciation",
          "description": "Double-declining (or any factor) balance depreciation for one period, as Excel's DDB.\n\nDDB(cost, salvage, life, period, [factor]) = min((cost − prior depreciation)·factor/life, cost − salvage − prior depreciation).",
          "inputSchema": {
            "type": "object",
            "required": [
              "cost",
              "salvage",
              "life",
              "period"
            ],
            "properties": {
              "cost": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "2400"
                ],
                "description": "Initial cost of the asset. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              },
              "life": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Number of periods over which the asset is depreciated. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 10000."
              },
              "factor": {
                "type": "string",
                "default": "2",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Rate at which the balance declines (2 is double-declining). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000."
              },
              "period": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "1"
                ],
                "description": "The period, in the same unit as life. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 10000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "salvage": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "300"
                ],
                "description": "Value at the end of its life (can be 0). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "ddb"
                ],
                "properties": {
                  "ddb": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Depreciation in that period."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/ddb@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel DDB function: double-declining balance depreciation",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_duration",
          "title": "Excel DURATION function: Macaulay duration of a bond",
          "description": "The Macaulay duration of a bond with periodic coupons, as Excel's DURATION: the average time to its payments, weighted by their present value.\n\nDURATION(settlement, maturity, coupon, yld, frequency, [basis]): the Macaulay duration in years for an assumed par value of 100. It is the weighted average of the times at which the bond pays, each weighted by the present value of that payment at the given yield, and measures how sensitive the price is to the yield.",
          "inputSchema": {
            "type": "object",
            "required": [
              "settlement",
              "maturity",
              "coupon",
              "yld",
              "frequency"
            ],
            "properties": {
              "yld": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.09"
                ],
                "description": "Annual yield as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 100."
              },
              "basis": {
                "type": "integer",
                "default": 0,
                "maximum": 4,
                "minimum": 0,
                "description": "Day count basis: 0 US (NASD) 30/360; 1 Actual/actual; 2 Actual/360; 3 Actual/365; 4 European 30/360. Allowed: >= 0 and <= 4."
              },
              "coupon": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08"
                ],
                "description": "Annual coupon rate as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 100."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "maturity": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2048-01-01"
                ],
                "description": "Maturity date."
              },
              "frequency": {
                "type": "integer",
                "maximum": 4,
                "minimum": 1,
                "examples": [
                  2
                ],
                "description": "Coupons per year: 1, 2 or 4. Allowed: >= 1 and <= 4."
              },
              "settlement": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2018-07-01"
                ],
                "description": "Settlement date (when the buyer gets the bond)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "duration",
                  "coupons_remaining"
                ],
                "properties": {
                  "duration": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Macaulay duration in years."
                  },
                  "coupons_remaining": {
                    "type": "integer",
                    "description": "Coupons from settlement to maturity (N)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/duration@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel DURATION function: Macaulay duration of a bond",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_edate",
          "title": "Excel EDATE function: same day, months later",
          "description": "The same day of the month a number of months before or after a date, as Excel's EDATE.\n\nEDATE(start_date, months). A day the target month lacks becomes its last day (31 January + 1 month = 28 or 29 February).",
          "inputSchema": {
            "type": "object",
            "required": [
              "start_date",
              "months"
            ],
            "properties": {
              "months": {
                "type": "integer",
                "maximum": 120000,
                "minimum": -120000,
                "examples": [
                  1
                ],
                "description": "Months to move: positive for later, negative for earlier. Allowed: >= -120000 and <= 120000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=0).",
                "additionalProperties": false
              },
              "start_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2011-01-15"
                ],
                "description": "Start date."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "date",
                  "serial"
                ],
                "properties": {
                  "date": {
                    "type": "string",
                    "format": "date",
                    "description": "The resulting date."
                  },
                  "serial": {
                    "type": "integer",
                    "description": "Excel's serial number for the date."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/edate@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel EDATE function: same day, months later",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_effect",
          "title": "Excel EFFECT function: effective annual rate",
          "description": "The effective annual rate from a nominal rate and compounding periods, as Excel's EFFECT.\n\nEFFECT(nominal_rate, npery) = (1 + nominal_rate/npery)^npery − 1.",
          "inputSchema": {
            "type": "object",
            "required": [
              "nominal_rate",
              "npery"
            ],
            "properties": {
              "npery": {
                "type": "integer",
                "maximum": 100000,
                "minimum": 1,
                "examples": [
                  4
                ],
                "description": "Compounding periods per year (whole number). Allowed: >= 1 and <= 100000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "nominal_rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.0525"
                ],
                "description": "Nominal annual rate as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "effect"
                ],
                "properties": {
                  "effect": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Effective annual rate as a decimal."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/effect@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel EFFECT function: effective annual rate",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_eomonth",
          "title": "Excel EOMONTH function: end of month",
          "description": "The last day of the month a number of months before or after a date, as Excel's EOMONTH.\n\nEOMONTH(start_date, months).",
          "inputSchema": {
            "type": "object",
            "required": [
              "start_date",
              "months"
            ],
            "properties": {
              "months": {
                "type": "integer",
                "maximum": 120000,
                "minimum": -120000,
                "examples": [
                  1
                ],
                "description": "Months to move: positive for later, negative for earlier. Allowed: >= -120000 and <= 120000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=0).",
                "additionalProperties": false
              },
              "start_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2011-01-01"
                ],
                "description": "Start date."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "date",
                  "serial"
                ],
                "properties": {
                  "date": {
                    "type": "string",
                    "format": "date",
                    "description": "The last day of the target month."
                  },
                  "serial": {
                    "type": "integer",
                    "description": "Excel's serial number for the date."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/eomonth@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel EOMONTH function: end of month",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_fv",
          "title": "Excel FV function: future value",
          "description": "The future value of an investment with equal payments, the same as Excel's FV.\n\nFV(rate, nper, pmt, [pv], [type]): the balance after nper periods.",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "nper",
              "pmt"
            ],
            "properties": {
              "pv": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Present value: the amount now. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pmt": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "-200"
                ],
                "description": "Payment made each period (negative when you pay). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "nper": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Total number of payment periods. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 12000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08/12"
                ],
                "description": "Interest rate per period, as a decimal (0.005 for 0.5%). Write a monthly rate from an annual one as \"0.06/12\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "type": {
                "type": "integer",
                "default": 0,
                "maximum": 1,
                "minimum": 0,
                "description": "When payments are due: 0 at the end of each period, 1 at the beginning. Allowed: >= 0 and <= 1."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "fv"
                ],
                "properties": {
                  "fv": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The future value."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/fv@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel FV function: future value",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_ipmt",
          "title": "Excel IPMT function: interest part of a payment",
          "description": "The interest paid in one period of a loan, the same as Excel's IPMT.\n\nIPMT(rate, per, nper, pv, [fv], [type]): the interest in payment number per: the rate times the balance after the previous payment. With type 1 the first payment has no interest, as in Excel.",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "per",
              "nper",
              "pv"
            ],
            "properties": {
              "fv": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Future value wanted after the last payment. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pv": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10000"
                ],
                "description": "Present value: the amount now (a loan you receive is positive). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "per": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "1"
                ],
                "description": "The period you want, from 1 to nper. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 1 and <= 12000."
              },
              "nper": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Total number of payment periods. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 12000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08/12"
                ],
                "description": "Interest rate per period, as a decimal (0.005 for 0.5%). Write a monthly rate from an annual one as \"0.06/12\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "type": {
                "type": "integer",
                "default": 0,
                "maximum": 1,
                "minimum": 0,
                "description": "When payments are due: 0 at the end of each period, 1 at the beginning. Allowed: >= 0 and <= 1."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "ipmt"
                ],
                "properties": {
                  "ipmt": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The interest in that period."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/ipmt@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel IPMT function: interest part of a payment",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_mduration",
          "title": "Excel MDURATION function: modified duration of a bond",
          "description": "The modified Macaulay duration of a bond with periodic coupons, as Excel's MDURATION: the percentage change in price for a change in yield.\n\nMDURATION(settlement, maturity, coupon, yld, frequency, [basis]): the modified duration for an assumed par value of 100, which is DURATION divided by 1 + yld/frequency. A modified duration of 5.7 means the price falls by about 5.7% when the yield rises by one percentage point.",
          "inputSchema": {
            "type": "object",
            "required": [
              "settlement",
              "maturity",
              "coupon",
              "yld",
              "frequency"
            ],
            "properties": {
              "yld": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.09"
                ],
                "description": "Annual yield as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 100."
              },
              "basis": {
                "type": "integer",
                "default": 0,
                "maximum": 4,
                "minimum": 0,
                "description": "Day count basis: 0 US (NASD) 30/360; 1 Actual/actual; 2 Actual/360; 3 Actual/365; 4 European 30/360. Allowed: >= 0 and <= 4."
              },
              "coupon": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08"
                ],
                "description": "Annual coupon rate as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 100."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "maturity": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2048-01-01"
                ],
                "description": "Maturity date."
              },
              "frequency": {
                "type": "integer",
                "maximum": 4,
                "minimum": 1,
                "examples": [
                  2
                ],
                "description": "Coupons per year: 1, 2 or 4. Allowed: >= 1 and <= 4."
              },
              "settlement": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2018-07-01"
                ],
                "description": "Settlement date (when the buyer gets the bond)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "mduration",
                  "coupons_remaining"
                ],
                "properties": {
                  "mduration": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Modified duration in years."
                  },
                  "coupons_remaining": {
                    "type": "integer",
                    "description": "Coupons from settlement to maturity (N)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/mduration@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel MDURATION function: modified duration of a bond",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_mirr",
          "title": "Excel MIRR function: modified internal rate of return",
          "description": "The modified IRR of periodic cash flows with separate finance and reinvestment rates, as Excel's MIRR.\n\nMIRR(values, finance_rate, reinvest_rate): negative flows are discounted at finance_rate, positive flows compounded at reinvest_rate, and the rate linking the two over n − 1 periods is returned.",
          "inputSchema": {
            "type": "object",
            "required": [
              "values",
              "finance_rate",
              "reinvest_rate"
            ],
            "properties": {
              "values": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "-120000",
                    "39000",
                    "30000",
                    "21000",
                    "37000",
                    "46000"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 2,
                "description": "Periodic cash flows, the first at the start. 2 to 1000 items. Each item: >= -1000000000000000 and <= 1000000000000000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "finance_rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.1"
                ],
                "description": "Rate paid on money borrowed (negative flows). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 100."
              },
              "reinvest_rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.12"
                ],
                "description": "Rate earned on money reinvested (positive flows). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 100."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "mirr"
                ],
                "properties": {
                  "mirr": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Modified IRR per period, as a decimal."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/mirr@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel MIRR function: modified internal rate of return",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_networkdays",
          "title": "Excel NETWORKDAYS function: working days between dates",
          "description": "Working days between two dates, both included, with holidays and any weekend, as Excel's NETWORKDAYS and NETWORKDAYS.INTL.\n\nNETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]); with the default weekend it is NETWORKDAYS. Both dates count. Negative when end is before start.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start_date",
              "end_date"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=0).",
                "additionalProperties": false
              },
              "weekend": {
                "type": "string",
                "default": "1",
                "maxLength": 7,
                "description": "Weekend days, as in NETWORKDAYS.INTL: a weekend number (\"1\" Saturday and Sunday, \"2\" Sunday and Monday, ... \"7\" Friday and Saturday, \"11\" Sunday only, ... \"17\" Saturday only) or seven 0s and 1s starting on Monday, 1 for a weekend day (\"0000011\" is Saturday and Sunday). At most 7 characters."
              },
              "end_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2013-03-01"
                ],
                "description": "End date."
              },
              "holidays": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "default": [],
                "examples": [
                  [
                    "2012-11-22"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 0,
                "description": "Dates that are not working days. Up to 1000 items."
              },
              "start_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2012-10-01"
                ],
                "description": "Start date."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "days"
                ],
                "properties": {
                  "days": {
                    "type": "integer",
                    "description": "Working days."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/networkdays@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel NETWORKDAYS function: working days between dates",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_nominal",
          "title": "Excel NOMINAL function: nominal annual rate",
          "description": "The nominal annual rate from an effective rate, as Excel's NOMINAL.\n\nNOMINAL(effect_rate, npery) = npery·((1 + effect_rate)^(1/npery) − 1).",
          "inputSchema": {
            "type": "object",
            "required": [
              "effect_rate",
              "npery"
            ],
            "properties": {
              "npery": {
                "type": "integer",
                "maximum": 100000,
                "minimum": 1,
                "examples": [
                  4
                ],
                "description": "Compounding periods per year (whole number). Allowed: >= 1 and <= 100000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "effect_rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.053543"
                ],
                "description": "Effective annual rate as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "nominal"
                ],
                "properties": {
                  "nominal": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Nominal annual rate as a decimal."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/nominal@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel NOMINAL function: nominal annual rate",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_nper",
          "title": "Excel NPER function: number of periods",
          "description": "How many periods it takes to pay off a loan or reach a goal, as Excel's NPER.\n\nNPER(rate, pmt, pv, [fv], [type]).",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "pmt",
              "pv"
            ],
            "properties": {
              "fv": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Future value wanted. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pv": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "-1000"
                ],
                "description": "Present value. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pmt": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "-100"
                ],
                "description": "Payment made each period. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08/12"
                ],
                "description": "Interest rate per period, as a decimal (0.005 for 0.5%). Write a monthly rate from an annual one as \"0.06/12\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "type": {
                "type": "integer",
                "default": 0,
                "maximum": 1,
                "minimum": 0,
                "description": "When payments are due: 0 at the end of each period, 1 at the beginning. Allowed: >= 0 and <= 1."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "nper"
                ],
                "properties": {
                  "nper": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The number of periods (not rounded to whole periods)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/nper@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel NPER function: number of periods",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_pmt",
          "title": "Excel PMT function: loan payment",
          "description": "The payment per period for a loan or an investment, the same as Excel's PMT.\n\nPMT(rate, nper, pv, [fv], [type]): the constant payment that brings pv to fv over nper periods at rate. Negative when you pay, as in Excel.",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "nper",
              "pv"
            ],
            "properties": {
              "fv": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Future value wanted after the last payment. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pv": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10000"
                ],
                "description": "Present value: the amount now (a loan you receive is positive). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "nper": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Total number of payment periods. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 12000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08/12"
                ],
                "description": "Interest rate per period, as a decimal (0.005 for 0.5%). Write a monthly rate from an annual one as \"0.06/12\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "type": {
                "type": "integer",
                "default": 0,
                "maximum": 1,
                "minimum": 0,
                "description": "When payments are due: 0 at the end of each period, 1 at the beginning. Allowed: >= 0 and <= 1."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "pmt"
                ],
                "properties": {
                  "pmt": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The payment per period."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/pmt@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel PMT function: loan payment",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_ppmt",
          "title": "Excel PPMT function: principal part of a payment",
          "description": "The principal repaid in one period of a loan, the same as Excel's PPMT.\n\nPPMT(rate, per, nper, pv, [fv], [type]) = PMT − IPMT for that period.",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "per",
              "nper",
              "pv"
            ],
            "properties": {
              "fv": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Future value wanted after the last payment. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pv": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10000"
                ],
                "description": "Present value: the amount now (a loan you receive is positive). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "per": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "1"
                ],
                "description": "The period you want, from 1 to nper. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 1 and <= 12000."
              },
              "nper": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Total number of payment periods. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 12000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08/12"
                ],
                "description": "Interest rate per period, as a decimal (0.005 for 0.5%). Write a monthly rate from an annual one as \"0.06/12\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "type": {
                "type": "integer",
                "default": 0,
                "maximum": 1,
                "minimum": 0,
                "description": "When payments are due: 0 at the end of each period, 1 at the beginning. Allowed: >= 0 and <= 1."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "ppmt"
                ],
                "properties": {
                  "ppmt": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The principal repaid in that period."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/ppmt@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel PPMT function: principal part of a payment",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_price",
          "title": "Excel PRICE function: bond price per 100 face value",
          "description": "The clean price per 100 of a bond paying periodic coupons, from its yield, as Excel's PRICE.\n\nPRICE(settlement, maturity, rate, yld, redemption, frequency, [basis]). Coupon dates count back from maturity in steps of 12/frequency months (a month-end maturity keeps every coupon on a month end). The accrued interest is subtracted, so this is the clean price.",
          "inputSchema": {
            "type": "object",
            "required": [
              "settlement",
              "maturity",
              "rate",
              "yld",
              "redemption",
              "frequency"
            ],
            "properties": {
              "yld": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.065"
                ],
                "description": "Annual yield as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 100."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.0575"
                ],
                "description": "Annual coupon rate as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 100."
              },
              "basis": {
                "type": "integer",
                "default": 0,
                "maximum": 4,
                "minimum": 0,
                "description": "Day count basis: 0 US (NASD) 30/360; 1 Actual/actual; 2 Actual/360; 3 Actual/365; 4 European 30/360. Allowed: >= 0 and <= 4."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "maturity": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2017-11-15"
                ],
                "description": "Maturity date."
              },
              "frequency": {
                "type": "integer",
                "maximum": 4,
                "minimum": 1,
                "examples": [
                  2
                ],
                "description": "Coupons per year: 1, 2 or 4. Allowed: >= 1 and <= 4."
              },
              "redemption": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "100"
                ],
                "description": "Redemption value per 100 of face value. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000."
              },
              "settlement": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2008-02-15"
                ],
                "description": "Settlement date (when the buyer gets the bond)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "price",
                  "coupons_remaining"
                ],
                "properties": {
                  "price": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Clean price per 100 of face value."
                  },
                  "coupons_remaining": {
                    "type": "integer",
                    "description": "Coupons from settlement to maturity (N)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/price@2"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel PRICE function: bond price per 100 face value",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_pv",
          "title": "Excel PV function: present value",
          "description": "The present value of a series of equal payments, the same as Excel's PV.\n\nPV(rate, nper, pmt, [fv], [type]): what the payments (and fv) are worth now.",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "nper",
              "pmt"
            ],
            "properties": {
              "fv": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Future value wanted after the last payment. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pmt": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "-200"
                ],
                "description": "Payment made each period (negative when you pay). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "nper": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Total number of payment periods. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 12000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.08/12"
                ],
                "description": "Interest rate per period, as a decimal (0.005 for 0.5%). Write a monthly rate from an annual one as \"0.06/12\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "type": {
                "type": "integer",
                "default": 0,
                "maximum": 1,
                "minimum": 0,
                "description": "When payments are due: 0 at the end of each period, 1 at the beginning. Allowed: >= 0 and <= 1."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "pv"
                ],
                "properties": {
                  "pv": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The present value."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/pv@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel PV function: present value",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_rate",
          "title": "Excel RATE function: interest rate per period",
          "description": "The interest rate per period of a loan or annuity, as Excel's RATE, proven correct to the last digit.\n\nRATE(nper, pmt, pv, [fv], [type], [guess]): the rate that solves the annuity equation. Excel iterates up to 20 times and can fail with #NUM!; here every rate above −100% is found and the one closest to guess is returned.",
          "inputSchema": {
            "type": "object",
            "required": [
              "nper",
              "pmt",
              "pv"
            ],
            "properties": {
              "fv": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Future value. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pv": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "8000"
                ],
                "description": "Present value. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "pmt": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "-200"
                ],
                "description": "Payment made each period. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= -1000000000000000 and <= 1000000000000000."
              },
              "nper": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Total number of payment periods. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 12000."
              },
              "type": {
                "type": "integer",
                "default": 0,
                "maximum": 1,
                "minimum": 0,
                "description": "When payments are due: 0 at the end of each period, 1 at the beginning. Allowed: >= 0 and <= 1."
              },
              "guess": {
                "type": "string",
                "default": "0.1",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Your guess for the rate (Excel's default 0.1). Only used to choose between several solutions. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "rate",
                  "all_rates"
                ],
                "properties": {
                  "rate": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Rate per period, as a decimal (0.0077 is 0.77%)."
                  },
                  "all_rates": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Every rate found, lowest first."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/rate@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel RATE function: interest rate per period",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_sln",
          "title": "Excel SLN function: straight-line depreciation",
          "description": "Straight-line depreciation for one period, as Excel's SLN.\n\nSLN(cost, salvage, life) = (cost − salvage) / life.",
          "inputSchema": {
            "type": "object",
            "required": [
              "cost",
              "salvage",
              "life"
            ],
            "properties": {
              "cost": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "2400"
                ],
                "description": "Initial cost of the asset. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              },
              "life": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Number of periods over which the asset is depreciated. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 10000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "salvage": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "300"
                ],
                "description": "Value at the end of its life (can be 0). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "sln"
                ],
                "properties": {
                  "sln": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Depreciation per period."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/sln@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel SLN function: straight-line depreciation",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_syd",
          "title": "Excel SYD function: sum-of-years-digits depreciation",
          "description": "Sum-of-years' digits depreciation for one period, as Excel's SYD.\n\nSYD(cost, salvage, life, per) = (cost − salvage)·(life − per + 1)·2 / (life·(life + 1)).",
          "inputSchema": {
            "type": "object",
            "required": [
              "cost",
              "salvage",
              "life",
              "per"
            ],
            "properties": {
              "per": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "1"
                ],
                "description": "The period, from 1 to life. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 10000."
              },
              "cost": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "2400"
                ],
                "description": "Initial cost of the asset. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              },
              "life": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Number of periods over which the asset is depreciated. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 10000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "salvage": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "300"
                ],
                "description": "Value at the end of its life (can be 0). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "syd"
                ],
                "properties": {
                  "syd": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Depreciation in that period."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/syd@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel SYD function: sum-of-years-digits depreciation",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_vdb",
          "title": "Excel VDB function: variable declining balance depreciation",
          "description": "Declining-balance depreciation between any two points in an asset's life, switching to straight line, as Excel's VDB.\n\nVDB(cost, salvage, life, start_period, end_period, [factor], [no_switch]). Periods may be fractional. Unless no_switch is true, depreciation switches to straight line once that is larger than the declining balance.",
          "inputSchema": {
            "type": "object",
            "required": [
              "cost",
              "salvage",
              "life",
              "start_period",
              "end_period"
            ],
            "properties": {
              "cost": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "2400"
                ],
                "description": "Initial cost of the asset. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              },
              "life": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "10"
                ],
                "description": "Number of periods over which the asset is depreciated. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 10000."
              },
              "factor": {
                "type": "string",
                "default": "2",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Rate at which the balance declines (2 is double-declining). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "salvage": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "300"
                ],
                "description": "Value at the end of its life (can be 0). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 1000000000000000."
              },
              "no_switch": {
                "type": "boolean",
                "default": false,
                "description": "true: never switch to straight line."
              },
              "end_period": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "1"
                ],
                "description": "End of the span. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 10000."
              },
              "start_period": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0"
                ],
                "description": "Start of the span, in the unit of life (0 is the start of the asset's life). A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 10000."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "vdb"
                ],
                "properties": {
                  "vdb": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Depreciation between start_period and end_period."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/vdb@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel VDB function: variable declining balance depreciation",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_workday",
          "title": "Excel WORKDAY function: date after working days",
          "description": "The date a number of working days before or after a date, with holidays and any weekend, as Excel's WORKDAY and WORKDAY.INTL.\n\nWORKDAY.INTL(start_date, days, [weekend], [holidays]). The start date itself is not counted; days = 0 returns start_date.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start_date",
              "days"
            ],
            "properties": {
              "days": {
                "type": "integer",
                "maximum": 35000,
                "minimum": -35000,
                "examples": [
                  151
                ],
                "description": "Working days to move (negative for earlier). Allowed: >= -35000 and <= 35000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=0).",
                "additionalProperties": false
              },
              "weekend": {
                "type": "string",
                "default": "1",
                "maxLength": 7,
                "description": "Weekend days, as in NETWORKDAYS.INTL: a weekend number (\"1\" Saturday and Sunday, \"2\" Sunday and Monday, ... \"7\" Friday and Saturday, \"11\" Sunday only, ... \"17\" Saturday only) or seven 0s and 1s starting on Monday, 1 for a weekend day (\"0000011\" is Saturday and Sunday). At most 7 characters."
              },
              "holidays": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "default": [],
                "examples": [
                  [
                    "2012-11-22"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 0,
                "description": "Dates that are not working days. Up to 1000 items."
              },
              "start_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2008-10-01"
                ],
                "description": "Start date."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "date",
                  "serial"
                ],
                "properties": {
                  "date": {
                    "type": "string",
                    "format": "date",
                    "description": "The resulting date."
                  },
                  "serial": {
                    "type": "integer",
                    "description": "Excel's serial number for the date."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/workday@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel WORKDAY function: date after working days",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_xirr",
          "title": "Excel XIRR function: IRR of cash flows on any dates",
          "description": "The annual rate of return of cash flows on any dates, as Excel's XIRR, proven correct to the last digit.\n\nXIRR(values, dates, [guess]): the rate at which XNPV is zero. Excel iterates to within 0.000001% and gives up after 100 tries; here every rate above −100% is found and pinned down exactly.",
          "inputSchema": {
            "type": "object",
            "required": [
              "values",
              "dates"
            ],
            "properties": {
              "dates": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "examples": [
                  [
                    "2008-01-01",
                    "2008-03-01",
                    "2008-10-30",
                    "2009-02-15",
                    "2009-04-01"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 2,
                "description": "The date of each cash flow, in the same order. The first date is the start: no date may be before it. 2 to 1000 items."
              },
              "guess": {
                "type": "string",
                "default": "0.1",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "description": "Your guess (Excel's default 0.1); chooses between several solutions. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "-10000",
                    "2750",
                    "4250",
                    "3250",
                    "2750"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 2,
                "description": "The cash flows. Money paid out is negative, money received positive. 2 to 1000 items. Each item: >= -1000000000000000 and <= 1000000000000000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "xirr",
                  "all_rates"
                ],
                "properties": {
                  "xirr": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Annual rate as a decimal (0.3734 is 37.34%)."
                  },
                  "all_rates": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Every rate found, lowest first."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/xirr@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel XIRR function: IRR of cash flows on any dates",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_xnpv",
          "title": "Excel XNPV function: net present value of dated cash flows",
          "description": "Net present value of cash flows on any dates, the same as Excel's XNPV.\n\nXNPV(rate, values, dates) = Σ valueᵢ / (1 + rate)^((dateᵢ − date₁)/365). Each flow is discounted by its days from the first date over a 365-day year, as in Excel.",
          "inputSchema": {
            "type": "object",
            "required": [
              "rate",
              "values",
              "dates"
            ],
            "properties": {
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.09"
                ],
                "description": "Annual discount rate as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > -1 and <= 1000."
              },
              "dates": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                },
                "examples": [
                  [
                    "2008-01-01",
                    "2008-03-01",
                    "2008-10-30",
                    "2009-02-15",
                    "2009-04-01"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 2,
                "description": "The date of each cash flow, in the same order. The first date is the start: no date may be before it. 2 to 1000 items."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "-10000",
                    "2750",
                    "4250",
                    "3250",
                    "2750"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 2,
                "description": "The cash flows. Money paid out is negative, money received positive. 2 to 1000 items. Each item: >= -1000000000000000 and <= 1000000000000000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "xnpv"
                ],
                "properties": {
                  "xnpv": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Net present value at the first date."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/xnpv@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel XNPV function: net present value of dated cash flows",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_yearfrac",
          "title": "Excel YEARFRAC function: fraction of a year between dates",
          "description": "The fraction of a year between two dates under Excel's five day-count bases, including Excel's own actual/actual rule.\n\nYEARFRAC(start_date, end_date, [basis]). Basis 1 follows Excel exactly: within a year it divides by 365 or 366 (366 when the span includes 29 February); over longer spans it divides by the average length of the calendar years touched. Basis 0 treats the last day of February as the 30th. The order of the dates does not matter.",
          "inputSchema": {
            "type": "object",
            "required": [
              "start_date",
              "end_date"
            ],
            "properties": {
              "basis": {
                "type": "integer",
                "default": 0,
                "maximum": 4,
                "minimum": 0,
                "description": "Day count basis: 0 US (NASD) 30/360; 1 Actual/actual; 2 Actual/360; 3 Actual/365; 4 European 30/360. Allowed: >= 0 and <= 4."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "end_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2012-07-30"
                ],
                "description": "End date."
              },
              "start_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2012-01-01"
                ],
                "description": "Start date."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "yearfrac"
                ],
                "properties": {
                  "yearfrac": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Fraction of a year."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/yearfrac@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel YEARFRAC function: fraction of a year between dates",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_excel_yield",
          "title": "Excel YIELD function: bond yield from price",
          "description": "The yield of a bond paying periodic coupons, from its price, as Excel's YIELD, proven correct to the last digit.\n\nYIELD(settlement, maturity, rate, pr, redemption, frequency, [basis]): the yield at which PRICE gives pr. With one coupon or less left it is Microsoft's closed form; otherwise the root of the PRICE equation.",
          "inputSchema": {
            "type": "object",
            "required": [
              "settlement",
              "maturity",
              "rate",
              "pr",
              "redemption",
              "frequency"
            ],
            "properties": {
              "pr": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "95.04287"
                ],
                "description": "Clean price per 100 of face value. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000."
              },
              "rate": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.0575"
                ],
                "description": "Annual coupon rate as a decimal. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: >= 0 and <= 100."
              },
              "basis": {
                "type": "integer",
                "default": 0,
                "maximum": 4,
                "minimum": 0,
                "description": "Day count basis: 0 US (NASD) 30/360; 1 Actual/actual; 2 Actual/360; 3 Actual/365; 4 European 30/360. Allowed: >= 0 and <= 4."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "maturity": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2017-11-15"
                ],
                "description": "Maturity date."
              },
              "frequency": {
                "type": "integer",
                "maximum": 4,
                "minimum": 1,
                "examples": [
                  2
                ],
                "description": "Coupons per year: 1, 2 or 4. Allowed: >= 1 and <= 4."
              },
              "redemption": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "100"
                ],
                "description": "Redemption value per 100 of face value. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000."
              },
              "settlement": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2008-02-15"
                ],
                "description": "Settlement date (when the buyer gets the bond)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "yield",
                  "coupons_remaining"
                ],
                "properties": {
                  "yield": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Annual yield as a decimal."
                  },
                  "coupons_remaining": {
                    "type": "integer",
                    "description": "Coupons from settlement to maturity (N)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "excel/yield@2"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Excel YIELD function: bond yield from price",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_apr_eu_aprc",
          "title": "EU and UK APRC calculator",
          "description": "Annual percentage rate of charge (APRC, the UK's APR) for consumer and mortgage credit, by the EU directives' equation and day count.\n\nComputes the annual percentage rate of charge defined in the EU Consumer Credit and Mortgage Credit Directives (Annex III and Annex I) and in the UK FCA rules (CONC App 1, MCOB 10A): the yearly rate X at which the payments, discounted with (1 + X) to the power of minus their time in years, equal the credit drawn down less the charges paid at the start. Times are 1/12 of a year per month and 1/52 per week; with dates, whole months (or weeks, or years) are counted back from each payment and the remaining days divided by 365 or 366, as the Mortgage Credit Directive and the European Commission's guidelines prescribe. The equation is solved with proven bounds and the APRC is rounded half up, to 1 decimal by default.",
          "inputSchema": {
            "type": "object",
            "required": [
              "credit_amount",
              "payment_amounts"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_up."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_up, decimals=1).",
                "additionalProperties": false
              },
              "start_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2012-01-12"
                ],
                "description": "Date of the drawdown (the credit agreement). Give it with first_payment_date to count exact days; without both, the first payment is one period after the drawdown."
              },
              "credit_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "200000"
                ],
                "description": "The credit, drawn down in full at the start. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "payment_counts": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "24"
                  ]
                ],
                "maxItems": 100,
                "minItems": 0,
                "description": "How many payments of each amount in payment_amounts (whole numbers, same order). Omit it when every amount is a single payment. Up to 100 items. Each item: >= 1 and <= 1200."
              },
              "payment_amounts": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "230"
                  ]
                ],
                "maxItems": 100,
                "minItems": 1,
                "description": "The payments in order. Give one amount per group of equal payments and the group sizes in payment_counts, e.g. [\"210.71\", \"220.25\"] with [24, 36]; without payment_counts each amount is one payment. 1 to 100 items. Each item: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "upfront_charges": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "4000"
                ],
                "description": "Charges the consumer pays at the start (arrangement or valuation fees, for example). Charges paid later go into the payments they are paid with. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "include_schedule": {
                "type": "boolean",
                "default": false,
                "description": "Also return each payment with its time in years."
              },
              "payment_frequency": {
                "enum": [
                  "monthly",
                  "quarterly",
                  "semiannually",
                  "annually",
                  "weekly",
                  "fortnightly"
                ],
                "type": "string",
                "default": "monthly",
                "description": "How often payments are made. Options: monthly: every month, 1/12 of a year; quarterly: every 3 months; semiannually: every 6 months; annually: every year; weekly: every week, 1/52 of a year; fortnightly: every 2 weeks"
              },
              "first_payment_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2012-02-15"
                ],
                "description": "Date of the first payment. Later payments fall on the same day of the month (or the same weekday) at the payment frequency."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "aprc_percent",
                  "total_amount_payable",
                  "total_cost_of_credit",
                  "number_of_payments"
                ],
                "properties": {
                  "schedule": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "payment",
                        "amount",
                        "years_from_start"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "format": "date",
                          "description": "Due date (when dates were given)."
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The payment. Unit: currency."
                        },
                        "payment": {
                          "type": "integer",
                          "description": "Payment number, starting at 1."
                        },
                        "years_from_start": {
                          "type": "string",
                          "description": "Time from the drawdown in years, exact (e.g. 1/12 + 3/365 shows as a fraction)."
                        }
                      }
                    },
                    "description": "Each payment with its time from the drawdown (when include_schedule is true)."
                  },
                  "aprc_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The annual percentage rate of charge, in percent, rounded half up. Unit: percent."
                  },
                  "number_of_payments": {
                    "type": "integer",
                    "description": "Number of payments."
                  },
                  "total_amount_payable": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Upfront charges plus all payments. Unit: currency."
                  },
                  "total_cost_of_credit": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total amount payable minus the credit amount. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/apr/eu-aprc@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "EU and UK APRC calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_apr_us_reg_z",
          "title": "US APR calculator (Truth in Lending, Regulation Z)",
          "description": "The annual percentage rate of a closed-end loan the way Regulation Z Appendix J defines it (actuarial method), with odd first periods and the accuracy tolerance.\n\nComputes the APR that US lenders must disclose under the Truth in Lending Act, using the actuarial method of Regulation Z, Appendix J: the rate per unit-period at which the payments, discounted back to consummation, equal the amount financed, times the number of unit-periods in a year. An odd first period is counted the way Appendix J counts it: full months back from the first payment date and the remaining days divided by 30, with simple interest for the fraction. Single-payment loans use the term as the unit-period. The equation is solved exactly and the APR is correctly rounded; the response also gives the finance charge and whether the 1/8 or 1/4 percentage point tolerance applies.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount_financed",
              "payment_amounts"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_up."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_up, decimals=2).",
                "additionalProperties": false
              },
              "payment_counts": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "24"
                  ]
                ],
                "maxItems": 100,
                "minItems": 0,
                "description": "How many payments of each amount in payment_amounts (whole numbers, same order). Omit it when every amount is a single payment. Up to 100 items. Each item: >= 1 and <= 1200."
              },
              "amount_financed": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "5000"
                ],
                "description": "The amount financed: the credit the borrower receives, after any prepaid finance charges. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "payment_amounts": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "230"
                  ]
                ],
                "maxItems": 100,
                "minItems": 1,
                "description": "The payments in order. Give one amount per group of equal payments and the group sizes in payment_counts, e.g. [\"210.71\", \"220.25\"] with [24, 36]; without payment_counts each amount is one payment. 1 to 100 items. Each item: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "consummation_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-01-12"
                ],
                "description": "When the loan is made (the finance charge starts). Give it with first_payment_date to count an odd first period; without both, the first payment is one full period after consummation."
              },
              "payment_frequency": {
                "enum": [
                  "monthly",
                  "semimonthly",
                  "biweekly",
                  "weekly",
                  "quarterly",
                  "semiannually",
                  "annually"
                ],
                "type": "string",
                "default": "monthly",
                "description": "How often payments are due; this is the unit-period. Options: monthly: 12 a year; semimonthly: 24 a year; biweekly: every 2 weeks, 26 a year; weekly: 52 a year; quarterly: 4 a year; semiannually: 2 a year; annually: once a year"
              },
              "first_payment_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-02-15"
                ],
                "description": "When the first payment is due. Later payments follow at the payment frequency."
              },
              "month_end_payments": {
                "type": "boolean",
                "default": false,
                "description": "Payments are due on the last day of each month, so months are counted from month end to month end (Appendix J (b)(3)(iv))."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "apr_percent",
                  "finance_charge",
                  "total_of_payments",
                  "number_of_payments",
                  "unit_period",
                  "unit_periods_per_year",
                  "first_payment_unit_periods",
                  "first_period_fraction",
                  "regular_transaction",
                  "tolerance_percent"
                ],
                "properties": {
                  "apr_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The annual percentage rate, in percent. Unit: percent."
                  },
                  "unit_period": {
                    "type": "string",
                    "description": "The unit-period used."
                  },
                  "finance_charge": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total of payments minus the amount financed. Unit: currency."
                  },
                  "tolerance_percent": {
                    "type": "string",
                    "description": "A disclosed APR within this many percentage points of the exact APR is accurate (Regulation Z § 1026.22(a)(2) and (3))."
                  },
                  "total_of_payments": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Sum of all payments. Unit: currency."
                  },
                  "number_of_payments": {
                    "type": "integer",
                    "description": "Number of payments."
                  },
                  "regular_transaction": {
                    "type": "boolean",
                    "description": "True when the payments are equal (apart from the first and the last), so the 1/8 point tolerance applies; false for irregular payments (1/4 point)."
                  },
                  "first_period_fraction": {
                    "type": "string",
                    "description": "The odd fraction of a unit-period before the first payment (0 for none)."
                  },
                  "unit_periods_per_year": {
                    "type": "string",
                    "description": "Unit-periods in a year; APR = rate per unit-period × this (exact)."
                  },
                  "first_payment_unit_periods": {
                    "type": "integer",
                    "description": "Full unit-periods from consummation to the first payment."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/apr/us-reg-z@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "US APR calculator (Truth in Lending, Regulation Z)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_black_76",
          "title": "Black-76 calculator for options on futures",
          "description": "The Black (1976) price and Greeks of a European option on a future or forward: commodity and bond futures options, caps, floors and swaptions.\n\nValues a European option on a futures or forward price with Black's 1976 model. It is the Black-Scholes formula with the forward price in place of the spot price and the whole payoff discounted, and is the market standard for options on commodity and interest-rate futures. The answer has the price, the Greeks with respect to the forward price, and d1 and d2.",
          "inputSchema": {
            "type": "object",
            "required": [
              "forward",
              "strike",
              "time_to_expiry_years",
              "volatility_percent",
              "risk_free_rate_percent",
              "option_type"
            ],
            "properties": {
              "strike": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "19"
                ],
                "description": "The option's strike price. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "forward": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "19"
                ],
                "description": "The futures or forward price now. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=6).",
                "additionalProperties": false
              },
              "option_type": {
                "enum": [
                  "call",
                  "put"
                ],
                "type": "string",
                "description": "Call or put. Options: call: the right to buy; put: the right to sell"
              },
              "volatility_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "20"
                ],
                "description": "Volatility per year in percent (20 for 20%). Allowed: > 0 and <= 1000. Unit: percent."
              },
              "time_to_expiry_years": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.5"
                ],
                "description": "Time to expiry in years. Write days as a ratio, such as \"30/365\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 100."
              },
              "risk_free_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10"
                ],
                "description": "Risk-free interest rate per year in percent, continuously compounded. Allowed: >= -50 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "price",
                  "delta",
                  "gamma",
                  "vega",
                  "theta",
                  "rho",
                  "d1",
                  "d2"
                ],
                "properties": {
                  "d1": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The model's d1."
                  },
                  "d2": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The model's d2."
                  },
                  "rho": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in the price for one percentage point more interest."
                  },
                  "vega": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in the price for one percentage point more volatility."
                  },
                  "delta": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in the price for a change of 1 in the underlying price."
                  },
                  "gamma": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in delta for a change of 1 in the underlying price."
                  },
                  "price": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The option's value. Unit: currency."
                  },
                  "theta": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in the price over one calendar day, other things equal."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/black-76@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Black-76 calculator for options on futures",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_black_scholes",
          "title": "Black-Scholes option price and Greeks calculator",
          "description": "The Black-Scholes-Merton price of a European call or put with delta, gamma, vega, theta and rho, correct to the last digit shown.\n\nValues a European option on a stock, index or currency with the Black-Scholes formula, with Merton's extension for a continuous dividend yield. The answer has the price and the five Greeks, and d1 and d2 for checking by hand. The normal distribution is evaluated with proven error bounds, so every digit returned is correct, including for options far in or out of the money where spreadsheet formulas lose digits.",
          "inputSchema": {
            "type": "object",
            "required": [
              "spot",
              "strike",
              "time_to_expiry_years",
              "volatility_percent",
              "risk_free_rate_percent",
              "option_type"
            ],
            "properties": {
              "spot": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "42"
                ],
                "description": "The underlying's price now. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "strike": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "40"
                ],
                "description": "The option's strike price. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=6).",
                "additionalProperties": false
              },
              "option_type": {
                "enum": [
                  "call",
                  "put"
                ],
                "type": "string",
                "description": "Call or put. Options: call: the right to buy; put: the right to sell"
              },
              "volatility_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "20"
                ],
                "description": "Volatility per year in percent (20 for 20%). Allowed: > 0 and <= 1000. Unit: percent."
              },
              "time_to_expiry_years": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.5"
                ],
                "description": "Time to expiry in years. Write days as a ratio, such as \"30/365\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 100."
              },
              "dividend_yield_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Dividend yield per year in percent, continuously compounded. Allowed: >= -50 and <= 100. Unit: percent."
              },
              "risk_free_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10"
                ],
                "description": "Risk-free interest rate per year in percent, continuously compounded. Allowed: >= -50 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "price",
                  "delta",
                  "gamma",
                  "vega",
                  "theta",
                  "rho",
                  "d1",
                  "d2"
                ],
                "properties": {
                  "d1": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The model's d1."
                  },
                  "d2": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The model's d2."
                  },
                  "rho": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in the price for one percentage point more interest."
                  },
                  "vega": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in the price for one percentage point more volatility."
                  },
                  "delta": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in the price for a change of 1 in the underlying price."
                  },
                  "gamma": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in delta for a change of 1 in the underlying price."
                  },
                  "price": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The option's value. Unit: currency."
                  },
                  "theta": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Change in the price over one calendar day, other things equal."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/black-scholes@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Black-Scholes option price and Greeks calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_bond_duration_convexity",
          "title": "Bond duration and convexity calculator",
          "description": "The price of a coupon bond at a yield, with its Macaulay and modified duration, convexity and DV01, for any settlement date.\n\nPrices a bond that pays periodic coupons by discounting each payment at the yield, and measures how the price reacts when the yield moves. Modified duration is the percentage fall in price for a rise of one percentage point in yield; convexity is the correction for larger moves; DV01 is the change in price, per 100 of face value, for one basis point. Between coupon dates the price is split into the clean price and accrued interest.",
          "inputSchema": {
            "type": "object",
            "required": [
              "settlement",
              "maturity",
              "coupon_rate_percent",
              "yield_percent"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=6).",
                "additionalProperties": false
              },
              "maturity": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2036-03-15"
                ],
                "description": "Maturity date."
              },
              "day_count": {
                "enum": [
                  "30/360",
                  "actual/actual",
                  "actual/360",
                  "actual/365",
                  "30e/360"
                ],
                "type": "string",
                "default": "30/360",
                "description": "How days are counted for accrued interest. Options: 30/360: US (NASD) 30/360; actual/actual: actual days over the actual length of the coupon period; actual/360: actual days over a 360-day year; actual/365: actual days over a 365-day year; 30e/360: European 30/360"
              },
              "frequency": {
                "type": "integer",
                "default": 2,
                "maximum": 4,
                "minimum": 1,
                "description": "Coupons per year: 1, 2 or 4. Allowed: >= 1 and <= 4."
              },
              "redemption": {
                "type": "string",
                "default": "100",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Amount repaid at maturity per 100 of face value. Allowed: > 0 and <= 1000000."
              },
              "settlement": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-03-15"
                ],
                "description": "Settlement date (when the buyer gets the bond)."
              },
              "yield_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6"
                ],
                "description": "Annual yield to maturity in percent, compounded at the coupon frequency. Allowed: > -50 and <= 1000. Unit: percent."
              },
              "coupon_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "5"
                ],
                "description": "Annual coupon rate in percent of face value. Allowed: >= 0 and <= 1000. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "clean_price",
                  "accrued_interest",
                  "dirty_price",
                  "macaulay_duration",
                  "modified_duration",
                  "convexity",
                  "dv01",
                  "coupons_remaining"
                ],
                "properties": {
                  "dv01": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Fall in price per 100 of face value for a rise of 0.01% in yield."
                  },
                  "convexity": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The second derivative of price to yield, divided by price."
                  },
                  "clean_price": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Price per 100 of face value without accrued interest."
                  },
                  "dirty_price": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "What the buyer pays: clean price + accrued interest."
                  },
                  "accrued_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Coupon earned since the last coupon date."
                  },
                  "coupons_remaining": {
                    "type": "integer",
                    "description": "Coupons from settlement to maturity."
                  },
                  "macaulay_duration": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Weighted average time to the payments, in years."
                  },
                  "modified_duration": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Macaulay duration ÷ (1 + yield ÷ frequency)."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/bond-duration-convexity@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Bond duration and convexity calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_compound_interest",
          "title": "Compound interest calculator",
          "description": "Future value of a lump sum with annual, monthly, daily or continuous compounding, plus the effective annual rate (APY).\n\nGrows a single deposit at a nominal annual rate compounded m times a year: A = P(1 + r/m)^(m·t), or A = P·e^(r·t) for continuous compounding. Whole numbers of periods are computed exactly; anything else is computed with certified high-precision arithmetic and rounded correctly.",
          "inputSchema": {
            "type": "object",
            "required": [
              "principal",
              "annual_rate_percent",
              "years"
            ],
            "properties": {
              "years": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10"
                ],
                "description": "Time in years. Allowed: >= 0 and <= 200. Unit: years."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "principal": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "1000"
                ],
                "description": "Amount deposited at the start. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "compounding": {
                "enum": [
                  "annually",
                  "semiannually",
                  "quarterly",
                  "monthly",
                  "weekly",
                  "daily",
                  "continuously"
                ],
                "type": "string",
                "default": "annually",
                "description": "How often interest is compounded. Options: annually: once a year; semiannually: twice a year; quarterly: 4 times a year; monthly: 12 times a year; weekly: 52 times a year; daily: 365 times a year; continuously: continuous compounding (e^rt)"
              },
              "annual_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "5"
                ],
                "description": "Nominal annual interest rate in percent (may be negative, above -100). Allowed: > -100 and <= 1000. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "final_amount",
                  "interest_earned",
                  "effective_annual_rate_percent",
                  "periods"
                ],
                "properties": {
                  "periods": {
                    "type": "string",
                    "description": "Number of compounding periods m·t used."
                  },
                  "final_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Balance at the end. Unit: currency."
                  },
                  "interest_earned": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Final amount minus principal. Unit: currency."
                  },
                  "effective_annual_rate_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Effective annual rate (APY) for this compounding, in percent. Unit: percent."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/compound-interest@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Compound interest calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_extra_payments",
          "title": "Extra mortgage payment calculator",
          "description": "How much sooner a loan is paid off, and how much interest is saved, by paying extra each month or making one lump-sum payment.\n\nRuns a loan's schedule twice: once as agreed, and once with an extra amount on top of every payment, a single lump sum in a month you choose, or both. Extra money goes straight to the balance, so less interest builds up afterwards. The answer gives the new pay-off time and the interest saved.",
          "inputSchema": {
            "type": "object",
            "required": [
              "principal",
              "annual_rate_percent",
              "term_months"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "lump_sum": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "A single extra payment. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "principal": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "300000"
                ],
                "description": "The loan amount. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "term_months": {
                "type": "integer",
                "maximum": 600,
                "minimum": 1,
                "examples": [
                  360
                ],
                "description": "The loan term in months. Allowed: >= 1 and <= 600."
              },
              "lump_sum_month": {
                "type": "integer",
                "default": 1,
                "maximum": 600,
                "minimum": 1,
                "description": "The payment number the lump sum is made with (1 is the first payment). Allowed: >= 1 and <= 600."
              },
              "annual_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6.5"
                ],
                "description": "The annual interest rate. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "extra_monthly_payment": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "200"
                ],
                "description": "Extra paid with every monthly payment. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "regular_payment",
                  "months_to_pay_off",
                  "months_saved",
                  "interest_without_extra",
                  "interest_with_extra",
                  "interest_saved",
                  "total_paid"
                ],
                "properties": {
                  "total_paid": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Everything paid with the extras: principal and interest. Unit: currency."
                  },
                  "months_saved": {
                    "type": "integer",
                    "description": "How many months sooner that is."
                  },
                  "interest_saved": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The difference. Unit: currency."
                  },
                  "regular_payment": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The agreed monthly payment. Unit: currency."
                  },
                  "months_to_pay_off": {
                    "type": "integer",
                    "description": "Months until the loan is repaid with the extra payments."
                  },
                  "interest_with_extra": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total interest with the extras. Unit: currency."
                  },
                  "interest_without_extra": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total interest on the agreed schedule. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/extra-payments@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Extra mortgage payment calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_fha_mip",
          "title": "FHA mortgage insurance (MIP) calculator",
          "description": "The upfront and annual mortgage insurance premium on an FHA loan, from HUD's current rate tables, and how long the annual premium is charged.\n\nAn FHA-insured mortgage carries two insurance premiums. The upfront premium is 1.75% of the base loan amount and is usually added to the loan. The annual premium depends on the loan term, the base loan amount and the loan-to-value ratio, and is charged monthly for 11 years or for the whole mortgage term. This calculator reads both from the tables in HUD Mortgagee Letter 2023-05, which apply to loans endorsed on or after 20 March 2023.",
          "inputSchema": {
            "type": "object",
            "required": [
              "base_loan_amount",
              "property_value",
              "term_years"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "term_years": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "30"
                ],
                "description": "The mortgage term in years. Allowed: >= 1 and <= 30."
              },
              "property_value": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "310000"
                ],
                "description": "The value the loan-to-value ratio is measured against: the lower of the price and the appraised value. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "base_loan_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "300000"
                ],
                "description": "The loan before the upfront premium is added. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "finance_upfront_mip": {
                "type": "boolean",
                "default": true,
                "description": "Whether the upfront premium is added to the loan instead of paid in cash."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "ltv_percent",
                  "upfront_mip",
                  "loan_amount_with_upfront_mip",
                  "annual_mip_basis_points",
                  "annual_mip_percent",
                  "monthly_mip_at_start",
                  "mip_duration",
                  "mip_months"
                ],
                "properties": {
                  "mip_months": {
                    "type": "integer",
                    "description": "The same in months."
                  },
                  "ltv_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Loan-to-value: base loan ÷ property value. Unit: percent."
                  },
                  "upfront_mip": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The upfront premium: 1.75% of the base loan. Unit: currency."
                  },
                  "mip_duration": {
                    "type": "string",
                    "description": "How long the annual premium is charged."
                  },
                  "annual_mip_percent": {
                    "type": "string",
                    "description": "The same rate in percent."
                  },
                  "monthly_mip_at_start": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "One twelfth of the annual rate on the starting base loan. The lender works the premium out again each year on the average balance, so it falls as the loan is repaid. Unit: currency."
                  },
                  "annual_mip_basis_points": {
                    "type": "integer",
                    "description": "The annual premium rate in basis points."
                  },
                  "loan_amount_with_upfront_mip": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The loan after the upfront premium is added, or the base loan when it is paid in cash. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/fha-mip@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "FHA mortgage insurance (MIP) calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_implied_volatility",
          "title": "Implied volatility calculator",
          "description": "The volatility at which the Black-Scholes-Merton formula gives an option's market price, pinned between proven bounds.\n\nTurns an option's price back into the volatility that explains it. The Black-Scholes price rises with volatility, so a price inside the option's possible range matches exactly one volatility. It is found here by closing in on it and then proving that the price is too low just below and too high just above, so the digits returned are correct. A price outside the possible range is refused with the reason.",
          "inputSchema": {
            "type": "object",
            "required": [
              "option_price",
              "spot",
              "strike",
              "time_to_expiry_years",
              "risk_free_rate_percent",
              "option_type"
            ],
            "properties": {
              "spot": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "42"
                ],
                "description": "The underlying's price now. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "strike": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "40"
                ],
                "description": "The option's strike price. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=6).",
                "additionalProperties": false
              },
              "option_type": {
                "enum": [
                  "call",
                  "put"
                ],
                "type": "string",
                "description": "Call or put. Options: call: the right to buy; put: the right to sell"
              },
              "option_price": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "4.759422"
                ],
                "description": "The option's market price. A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 1000000000000000."
              },
              "time_to_expiry_years": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?(/[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?)?$",
                "examples": [
                  "0.5"
                ],
                "description": "Time to expiry in years. Write days as a ratio, such as \"30/365\". A ratio of two decimals such as \"0.08/12\" is accepted. Allowed: > 0 and <= 100."
              },
              "dividend_yield_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Dividend yield per year in percent, continuously compounded. Allowed: >= -50 and <= 100. Unit: percent."
              },
              "risk_free_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10"
                ],
                "description": "Risk-free interest rate per year in percent, continuously compounded. Allowed: >= -50 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "implied_volatility_percent",
                  "implied_volatility"
                ],
                "properties": {
                  "implied_volatility": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The same as a decimal."
                  },
                  "implied_volatility_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Implied volatility per year. Unit: percent."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/implied-volatility@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Implied volatility calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_irr",
          "title": "Internal rate of return (IRR) calculator",
          "description": "Internal rate of return of periodic cash flows, with every IRR reported when there is more than one.\n\nFinds the discount rate at which the net present value of the cash flows is zero. Unlike spreadsheet IRR(), no starting guess is needed: all IRRs between −100% and the mathematical bound are searched, each one is pinned down with exact arithmetic, and the result is correctly rounded. When the cash flows change sign more than once there can be several IRRs; all are returned and a warning explains.",
          "inputSchema": {
            "type": "object",
            "required": [
              "cash_flows"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=4).",
                "additionalProperties": false
              },
              "cash_flows": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "-10000",
                    "3000",
                    "4200",
                    "6800"
                  ]
                ],
                "maxItems": 600,
                "minItems": 2,
                "description": "Cash flows in time order, one per period. Money paid out is negative, money received is positive. 2 to 600 items. Each item: >= -1000000000000000 and <= 1000000000000000."
              },
              "periods_per_year": {
                "type": "integer",
                "maximum": 365,
                "minimum": 1,
                "description": "Set to 12 for monthly flows, 4 for quarterly, ... to also get the effective annual IRR. Allowed: >= 1 and <= 365."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "irr_percent",
                  "all_irr_percent",
                  "irr_is_unique",
                  "sign_changes"
                ],
                "properties": {
                  "irr_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "IRR per period, in percent. Unit: percent."
                  },
                  "sign_changes": {
                    "type": "integer",
                    "description": "How many times the cash flows change sign."
                  },
                  "irr_is_unique": {
                    "type": "boolean",
                    "description": "True when there is exactly one IRR."
                  },
                  "all_irr_percent": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Every IRR found, lowest first, in percent."
                  },
                  "annual_effective_irr_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "(1 + IRR)^periods_per_year − 1, in percent. Unit: percent."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/irr@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Internal rate of return (IRR) calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_loan_emi",
          "title": "Loan EMI calculator",
          "description": "Monthly instalment (EMI), total interest and an exact amortization schedule for a fixed-rate loan.\n\nComputes the equated monthly instalment for a fixed-rate loan repaid in equal monthly payments, the total paid and the total interest. The schedule is computed the way lenders do it: each month's interest is rounded to the cent, every payment is the rounded EMI, and the final payment is adjusted so the balance ends at exactly zero. Totals are the sums of that schedule, so they always add up to the cent.",
          "inputSchema": {
            "type": "object",
            "required": [
              "principal",
              "annual_rate_percent",
              "term_months"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "principal": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "250000"
                ],
                "description": "Amount borrowed. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "term_months": {
                "type": "integer",
                "maximum": 1200,
                "minimum": 1,
                "examples": [
                  240
                ],
                "description": "Number of monthly payments. Allowed: >= 1 and <= 1200."
              },
              "include_schedule": {
                "type": "boolean",
                "default": false,
                "description": "Also return the month-by-month schedule."
              },
              "annual_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "7.5"
                ],
                "description": "Nominal annual interest rate in percent (7.5 means 7.5%), compounded monthly. Allowed: >= 0 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "emi",
                  "total_paid",
                  "total_interest",
                  "last_payment",
                  "number_of_payments"
                ],
                "properties": {
                  "emi": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The monthly payment, rounded to the precision. Unit: currency."
                  },
                  "schedule": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "period",
                        "payment",
                        "principal",
                        "interest",
                        "balance"
                      ],
                      "properties": {
                        "period": {
                          "type": "integer",
                          "description": "Payment number, starting at 1."
                        },
                        "balance": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Balance remaining after this payment."
                        },
                        "payment": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Amount paid this period."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Part of the payment that is interest."
                        },
                        "principal": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Part of the payment that reduces the balance."
                        }
                      }
                    },
                    "description": "The amortization schedule (when include_schedule is true)."
                  },
                  "total_paid": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Sum of all payments in the schedule. Unit: currency."
                  },
                  "last_payment": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The final payment, which clears the balance exactly. Unit: currency."
                  },
                  "total_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total paid minus the principal. Unit: currency."
                  },
                  "number_of_payments": {
                    "type": "integer",
                    "description": "Number of payments in the schedule."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/loan/emi@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Loan EMI calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_mortgage",
          "title": "Mortgage calculator",
          "description": "Monthly mortgage payment including property tax, insurance, HOA dues and PMI, with an exact amortization schedule.\n\nSplits the monthly housing payment into principal and interest, property tax, home insurance, HOA dues and private mortgage insurance (PMI). Principal and interest use the same exact, lender-style schedule as the loan EMI calculator. PMI applies when the loan is more than 80% of the price and stops once the scheduled balance reaches 78% of the original price, the automatic termination point in the US Homeowners Protection Act.",
          "inputSchema": {
            "type": "object",
            "required": [
              "home_price",
              "annual_rate_percent",
              "term_years"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "home_price": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "400000"
                ],
                "description": "Purchase price of the home. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "term_years": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "examples": [
                  30
                ],
                "description": "Length of the mortgage in years. Allowed: >= 1 and <= 50."
              },
              "monthly_hoa": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Homeowners association dues per month. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "down_payment": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "80000"
                ],
                "description": "Down payment as an amount. Give this or down_payment_percent. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "include_schedule": {
                "type": "boolean",
                "default": false,
                "description": "Also return the month-by-month schedule."
              },
              "annual_property_tax": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Property tax per year. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "annual_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6.5"
                ],
                "description": "Nominal annual interest rate in percent. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "down_payment_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Down payment as a percent of the price. Give this or down_payment. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "annual_home_insurance": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Home insurance premium per year. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "pmi_annual_rate_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "PMI premium per year as a percent of the original loan amount (often 0.3 to 1.5). Only applied when the loan is above 80% of the price. Allowed: >= 0 and <= 10. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "loan_amount",
                  "down_payment",
                  "loan_to_value_percent",
                  "monthly_principal_and_interest",
                  "monthly_property_tax",
                  "monthly_home_insurance",
                  "monthly_hoa",
                  "monthly_pmi",
                  "total_monthly_payment",
                  "pmi_months",
                  "total_pmi",
                  "total_interest",
                  "total_principal_and_interest",
                  "last_principal_and_interest_payment",
                  "number_of_payments"
                ],
                "properties": {
                  "schedule": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "period",
                        "payment",
                        "principal",
                        "interest",
                        "pmi",
                        "balance"
                      ],
                      "properties": {
                        "pmi": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "PMI charged this month."
                        },
                        "period": {
                          "type": "integer",
                          "description": "Payment number."
                        },
                        "balance": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Balance after this payment."
                        },
                        "payment": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Principal and interest paid this month."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Interest part."
                        },
                        "principal": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Principal part."
                        }
                      }
                    },
                    "description": "The amortization schedule (when include_schedule is true)."
                  },
                  "total_pmi": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total PMI paid. Unit: currency."
                  },
                  "pmi_months": {
                    "type": "integer",
                    "description": "Number of months PMI is charged."
                  },
                  "loan_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Price minus down payment. Unit: currency."
                  },
                  "monthly_hoa": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Monthly HOA dues. Unit: currency."
                  },
                  "monthly_pmi": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Monthly PMI while it applies. Unit: currency."
                  },
                  "down_payment": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Down payment amount. Unit: currency."
                  },
                  "total_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total interest over the life of the loan. Unit: currency."
                  },
                  "number_of_payments": {
                    "type": "integer",
                    "description": "Number of monthly payments."
                  },
                  "monthly_property_tax": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Annual property tax ÷ 12. Unit: currency."
                  },
                  "loan_to_value_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Loan amount as a percent of the price. Unit: percent."
                  },
                  "total_monthly_payment": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total of the monthly items above (first month). Unit: currency."
                  },
                  "monthly_home_insurance": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Annual insurance ÷ 12. Unit: currency."
                  },
                  "total_principal_and_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Sum of all principal and interest payments. Unit: currency."
                  },
                  "monthly_principal_and_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Monthly principal and interest payment. Unit: currency."
                  },
                  "last_principal_and_interest_payment": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The final payment, which clears the balance exactly. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/mortgage@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Mortgage calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_mortgage_affordability",
          "title": "Mortgage affordability calculator",
          "description": "The largest loan and home price an income supports, from housing and debt-to-income ratios you set (28% and 36% by default).\n\nLenders compare monthly payments with gross monthly income. This calculator takes two limits: the share of income that may go to housing costs, and the share that may go to all debt payments together. It finds the largest housing payment that meets both, takes off property tax, insurance and fees, and turns what is left into the loan that a level monthly payment repays at the given rate and term. The ratios are inputs because lenders and loan programmes use different ones.",
          "inputSchema": {
            "type": "object",
            "required": [
              "gross_monthly_income",
              "annual_rate_percent",
              "term_years"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "term_years": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "examples": [
                  30
                ],
                "description": "The mortgage term in years. Allowed: >= 1 and <= 50."
              },
              "down_payment": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "40000"
                ],
                "description": "Cash paid towards the price. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "debt_ratio_percent": {
                "type": "string",
                "default": "36",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "The most of gross income that may go to housing costs and other debts together (the back-end or debt-to-income ratio). Allowed: > 0 and <= 100. Unit: percent."
              },
              "annual_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6.5"
                ],
                "description": "The mortgage's annual interest rate. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "gross_monthly_income": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6000"
                ],
                "description": "Income per month before tax. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "housing_ratio_percent": {
                "type": "string",
                "default": "28",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "The most of gross income that may go to housing costs (the front-end ratio). Allowed: > 0 and <= 100. Unit: percent."
              },
              "monthly_debt_payments": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "500"
                ],
                "description": "Other debt payments per month: car loans, student loans, credit card minimums. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "monthly_taxes_insurance_and_fees": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "450"
                ],
                "description": "Property tax, home insurance, mortgage insurance and association fees per month. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "max_monthly_housing_payment",
                  "max_principal_and_interest",
                  "max_loan_amount",
                  "max_home_price",
                  "limited_by"
                ],
                "properties": {
                  "limited_by": {
                    "type": "string",
                    "description": "Which ratio set the limit: housing_ratio or debt_ratio."
                  },
                  "max_home_price": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The loan plus the down payment. Unit: currency."
                  },
                  "max_loan_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The loan that payment repays. Unit: currency."
                  },
                  "max_principal_and_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "What is left for the loan payment after taxes, insurance and fees. Unit: currency."
                  },
                  "max_monthly_housing_payment": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The largest monthly housing cost that meets both ratios. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/mortgage-affordability@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Mortgage affordability calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_npv",
          "title": "Net present value (NPV) calculator",
          "description": "Net present value of a series of periodic cash flows at a discount rate.\n\nDiscounts each cash flow to today and adds them up: NPV = Σ CFₜ / (1 + r)ᵗ. By default the first cash flow happens now (t = 0) and is not discounted, the usual finance-textbook convention. Choose first_cash_flow_at = t1 to match spreadsheet NPV() functions, which discount the first value by one period.",
          "inputSchema": {
            "type": "object",
            "required": [
              "discount_rate_percent",
              "cash_flows"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "cash_flows": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "-10000",
                    "3000",
                    "4200",
                    "6800"
                  ]
                ],
                "maxItems": 600,
                "minItems": 1,
                "description": "Cash flows in time order, one per period. Money paid out is negative, money received is positive. 1 to 600 items. Each item: >= -1000000000000000 and <= 1000000000000000."
              },
              "first_cash_flow_at": {
                "enum": [
                  "t0",
                  "t1"
                ],
                "type": "string",
                "default": "t0",
                "description": "When the first cash flow happens. Options: t0: now, not discounted (finance convention); t1: at the end of the first period (spreadsheet NPV convention)"
              },
              "discount_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10"
                ],
                "description": "Discount rate per period, in percent. Allowed: > -100 and <= 1000. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "npv",
                  "present_values"
                ],
                "properties": {
                  "npv": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Net present value. Unit: currency."
                  },
                  "present_values": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Present value of each cash flow."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/npv@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Net present value (NPV) calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_refinance_break_even",
          "title": "Refinance break-even calculator",
          "description": "How many months of lower payments it takes to earn back the closing costs of a refinance, and the difference in total cost over the life of the loans.\n\nCompares keeping a loan with replacing it. It works out the payment on what is left of the current loan and on the new loan, the monthly saving, and the break-even point: the first month by which the savings add up to the closing costs. It also totals every remaining payment on each side, because a lower payment over a longer term can still cost more in the end.",
          "inputSchema": {
            "type": "object",
            "required": [
              "current_balance",
              "current_rate_percent",
              "remaining_months",
              "new_rate_percent",
              "new_term_months"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "closing_costs": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "5000"
                ],
                "description": "Fees and costs of the refinance. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "current_balance": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "250000"
                ],
                "description": "What is still owed. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "new_term_months": {
                "type": "integer",
                "maximum": 600,
                "minimum": 1,
                "examples": [
                  300
                ],
                "description": "The new loan's term in months. Allowed: >= 1 and <= 600."
              },
              "new_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6"
                ],
                "description": "The new loan's annual rate. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "remaining_months": {
                "type": "integer",
                "maximum": 600,
                "minimum": 1,
                "examples": [
                  300
                ],
                "description": "Months left on the current loan. Allowed: >= 1 and <= 600."
              },
              "current_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "7"
                ],
                "description": "The current loan's annual rate. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "finance_closing_costs": {
                "type": "boolean",
                "default": false,
                "description": "true when the costs are added to the new loan instead of paid in cash."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "current_payment",
                  "new_payment",
                  "monthly_saving",
                  "current_total_remaining",
                  "new_total_cost",
                  "lifetime_saving",
                  "current_interest_remaining",
                  "new_interest"
                ],
                "properties": {
                  "new_payment": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Monthly payment on the new loan. Unit: currency."
                  },
                  "new_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest on the new loan. Unit: currency."
                  },
                  "monthly_saving": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "current_payment − new_payment. Unit: currency."
                  },
                  "new_total_cost": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Every payment on the new loan, plus the closing costs when paid in cash. Unit: currency."
                  },
                  "current_payment": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Monthly payment on the current loan. Unit: currency."
                  },
                  "lifetime_saving": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "current_total_remaining − new_total_cost; negative when the refinance costs more overall. Unit: currency."
                  },
                  "break_even_months": {
                    "type": "integer",
                    "description": "The first month by which the monthly savings cover the closing costs. Absent when the new payment is not lower."
                  },
                  "current_total_remaining": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Every remaining payment on the current loan, added up. Unit: currency."
                  },
                  "current_interest_remaining": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest still to pay on the current loan. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/refinance-break-even@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Refinance break-even calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_rent_vs_buy",
          "title": "Rent or buy calculator",
          "description": "The net cost of renting against buying a home over a number of years, from assumptions you set, with the first year in which buying comes out ahead.\n\nAdds up what each choice costs over the years you plan to stay. Buying costs the down payment, the buying costs, the mortgage payments and the yearly costs of owning, less what is left after selling the home and repaying the loan. Renting costs the rent, less what the down payment and buying costs would have earned if invested instead. Every growth rate is an input, because the answer depends on them and nobody knows them in advance; change them to see how sure the result is.",
          "inputSchema": {
            "type": "object",
            "required": [
              "home_price",
              "down_payment",
              "annual_rate_percent",
              "term_years",
              "years",
              "monthly_rent",
              "rent_increase_percent",
              "home_appreciation_percent",
              "annual_ownership_cost_percent",
              "buying_costs_percent",
              "selling_costs_percent",
              "investment_return_percent"
            ],
            "properties": {
              "years": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "examples": [
                  10
                ],
                "description": "How many years to compare. Allowed: >= 1 and <= 50."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "home_price": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "400000"
                ],
                "description": "The price of the home. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "term_years": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "examples": [
                  30
                ],
                "description": "The mortgage term in years. Allowed: >= 1 and <= 50."
              },
              "down_payment": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "80000"
                ],
                "description": "Cash paid towards the price. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "monthly_rent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "2000"
                ],
                "description": "Rent per month in the first year. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "annual_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6.5"
                ],
                "description": "The mortgage's annual rate. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "buying_costs_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "3"
                ],
                "description": "Costs of buying, as a percentage of the price. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "rent_increase_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "3"
                ],
                "description": "How much the rent rises each year. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "selling_costs_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "6"
                ],
                "description": "Costs of selling, as a percentage of the sale price. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "home_appreciation_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "3"
                ],
                "description": "How much the home's value changes each year; negative for a fall. Allowed: >= -50 and <= 100. Unit: percent."
              },
              "investment_return_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "5"
                ],
                "description": "The yearly return the down payment and buying costs would earn if invested instead. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "annual_ownership_cost_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "2"
                ],
                "description": "Property tax, insurance and upkeep per year, as a percentage of the home's value. Allowed: >= 0 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "cost_of_renting",
                  "cost_of_buying",
                  "difference",
                  "cheaper",
                  "home_value_at_end",
                  "loan_balance_at_end",
                  "years_table"
                ],
                "properties": {
                  "cheaper": {
                    "type": "string",
                    "description": "buy or rent."
                  },
                  "difference": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "cost_of_renting − cost_of_buying: positive when buying is cheaper. Unit: currency."
                  },
                  "years_table": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "year",
                        "cost_of_renting",
                        "cost_of_buying",
                        "home_value",
                        "loan_balance"
                      ],
                      "properties": {
                        "year": {
                          "type": "integer",
                          "description": "Year number."
                        },
                        "home_value": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The home's value at the end of the year. Unit: currency."
                        },
                        "loan_balance": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The loan balance then. Unit: currency."
                        },
                        "cost_of_buying": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Net cost of buying so far. Unit: currency."
                        },
                        "cost_of_renting": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Net cost of renting so far. Unit: currency."
                        }
                      }
                    },
                    "description": "Both net costs if you stopped after each year."
                  },
                  "cost_of_buying": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Net cost of buying over the years. Unit: currency."
                  },
                  "break_even_year": {
                    "type": "integer",
                    "description": "The first year in which buying costs no more than renting. Absent when that does not happen within the years compared."
                  },
                  "cost_of_renting": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Net cost of renting over the years. Unit: currency."
                  },
                  "home_value_at_end": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The home's value after the years. Unit: currency."
                  },
                  "loan_balance_at_end": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "What is still owed then. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/rent-vs-buy@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Rent or buy calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_roi",
          "title": "Return on investment (ROI) calculator",
          "description": "Gain, ROI percentage and annualized return (CAGR) of an investment.\n\nROI = (amount returned − amount invested) ÷ amount invested. With the holding period in years, also returns the annualized return (compound annual growth rate): (returned ÷ invested)^(1 ÷ years) − 1.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount_invested",
              "amount_returned"
            ],
            "properties": {
              "years": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "3"
                ],
                "description": "Holding period in years, for the annualized return. Allowed: > 0 and <= 1000. Unit: years."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "amount_invested": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10000"
                ],
                "description": "Total amount put in. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "amount_returned": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "14500"
                ],
                "description": "Total amount received back (sale value plus income). Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "gain",
                  "roi_percent"
                ],
                "properties": {
                  "gain": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Amount returned minus amount invested. Unit: currency."
                  },
                  "roi_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Return on investment in percent. Unit: percent."
                  },
                  "annualized_roi_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Compound annual growth rate in percent. Unit: percent."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/roi@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Return on investment (ROI) calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_savings_goal",
          "title": "Savings goal calculator",
          "description": "How much to save each month (or week, or year) to reach a goal, or how long it takes with a given contribution.\n\nSolves the future-value-of-annuity equation either for the regular contribution or for the number of contributions. Interest compounds once per contribution period. The final balance is recomputed exactly with the rounded contribution, so you can see whether it lands on, above or below the goal.",
          "inputSchema": {
            "type": "object",
            "required": [
              "goal_amount",
              "annual_rate_percent"
            ],
            "properties": {
              "years": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "3"
                ],
                "description": "Time to reach the goal, in years (solve_for = contribution). Allowed: > 0 and <= 100. Unit: years."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "solve_for": {
                "enum": [
                  "contribution",
                  "time"
                ],
                "type": "string",
                "default": "contribution",
                "description": "What to calculate. Options: contribution: the contribution needed to reach the goal in a given time; time: how many contributions are needed with a given contribution"
              },
              "goal_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "20000"
                ],
                "description": "The amount you want to reach. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "contribution": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Contribution per period (solve_for = time). Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "current_savings": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Amount already saved. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "annual_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "4"
                ],
                "description": "Expected annual interest or return in percent. Allowed: >= 0 and <= 100. Unit: percent."
              },
              "contribution_timing": {
                "enum": [
                  "end",
                  "beginning"
                ],
                "type": "string",
                "default": "end",
                "description": "When in each period you contribute. Options: end: at the end of each period (ordinary annuity); beginning: at the start of each period (annuity due)"
              },
              "contribution_frequency": {
                "enum": [
                  "monthly",
                  "semimonthly",
                  "biweekly",
                  "weekly",
                  "quarterly",
                  "annually"
                ],
                "type": "string",
                "default": "monthly",
                "description": "How often you contribute. Options: monthly: 12 contributions a year; semimonthly: 24 contributions a year; biweekly: 26 contributions a year; weekly: 52 contributions a year; quarterly: 4 contributions a year; annually: 1 contribution a year"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "contribution",
                  "number_of_contributions",
                  "years",
                  "total_contributions",
                  "interest_earned",
                  "final_balance"
                ],
                "properties": {
                  "years": {
                    "type": "string",
                    "description": "Number of contributions ÷ contributions per year."
                  },
                  "contribution": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Contribution per period. Unit: currency."
                  },
                  "final_balance": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Balance after the last contribution. Unit: currency."
                  },
                  "interest_earned": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Final balance minus savings and contributions. Unit: currency."
                  },
                  "total_contributions": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Contribution × number of contributions. Unit: currency."
                  },
                  "number_of_contributions": {
                    "type": "integer",
                    "description": "Number of contributions."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/savings-goal@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Savings goal calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_simple_interest",
          "title": "Simple interest calculator",
          "description": "Simple interest for a number of years or between two dates, with standard day-count conventions (Actual/365, Actual/360, Actual/Actual, 30/360, 30E/360).\n\nInterest that is not compounded: I = P × r × t. Give the time either as a number of years or as a start and end date. With dates, the year fraction t follows a day-count convention from the ISDA 2006 Definitions; the exact fraction used is returned so you can check it.",
          "inputSchema": {
            "type": "object",
            "required": [
              "principal",
              "annual_rate_percent"
            ],
            "properties": {
              "years": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "2"
                ],
                "description": "Time in years (for example 0.5). Use this or the two dates. Allowed: >= 0 and <= 1000. Unit: years."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "end_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-07-15"
                ],
                "description": "Day the interest period ends (YYYY-MM-DD); interest accrues up to but not including this day."
              },
              "day_count": {
                "enum": [
                  "actual/365",
                  "actual/360",
                  "actual/actual",
                  "30/360",
                  "30e/360"
                ],
                "type": "string",
                "default": "actual/365",
                "description": "Day-count convention used with dates. Options: actual/365: Actual/365 Fixed: actual days ÷ 365.; actual/360: Actual/360: actual days ÷ 360.; actual/actual: Actual/Actual (ISDA): days in each calendar year ÷ that year's length (365 or 366), summed.; 30/360: 30/360 Bond Basis: months of 30 days, years of 360; D1=31→30, and D2=31→30 when D1 is 30 or 31.; 30e/360: 30E/360 Eurobond Basis: months of 30 days, years of 360; any 31st becomes the 30th."
              },
              "principal": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10000"
                ],
                "description": "Amount the interest is charged on. Allowed: >= 0 and <= 1000000000000000. Unit: currency."
              },
              "start_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-01-15"
                ],
                "description": "First day of the interest period (YYYY-MM-DD)."
              },
              "annual_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "5"
                ],
                "description": "Annual interest rate in percent. Allowed: >= 0 and <= 1000. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "interest",
                  "total_amount",
                  "year_fraction"
                ],
                "properties": {
                  "days": {
                    "type": "integer",
                    "description": "Days counted under the convention (dates only)."
                  },
                  "interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest for the period. Unit: currency."
                  },
                  "total_amount": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Principal plus interest. Unit: currency."
                  },
                  "year_fraction": {
                    "type": "string",
                    "description": "The exact year fraction t used, as a decimal or a fraction such as 181/365."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/simple-interest@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Simple interest calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_usda_guarantee_fee",
          "title": "USDA loan guarantee fee calculator",
          "description": "The upfront guarantee fee and the annual fee on a USDA guaranteed home loan, at the rates USDA Rural Development set for fiscal year 2027.\n\nA USDA Single Family Housing Guaranteed loan has an upfront guarantee fee of 1.00% and an annual fee of 0.35%, for purchases and refinances in fiscal year 2027 (1 October 2026 to 30 September 2027). The upfront fee can be added to the loan; it is then 1% of the loan including the fee. The annual fee is paid monthly.",
          "inputSchema": {
            "type": "object",
            "required": [
              "loan_amount"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "loan_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "200000"
                ],
                "description": "The loan before the upfront fee is added. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "finance_upfront_fee": {
                "type": "boolean",
                "default": true,
                "description": "Whether the upfront fee is added to the loan instead of paid in cash."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "upfront_fee",
                  "loan_amount_with_fee",
                  "annual_fee_percent",
                  "monthly_annual_fee_at_start"
                ],
                "properties": {
                  "upfront_fee": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The upfront guarantee fee. Unit: currency."
                  },
                  "annual_fee_percent": {
                    "type": "string",
                    "description": "The annual fee rate. Unit: percent."
                  },
                  "loan_amount_with_fee": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The loan after the fee is added, or the loan as given when it is paid in cash. Unit: currency."
                  },
                  "monthly_annual_fee_at_start": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "One twelfth of the annual fee on the starting loan. The fee is worked out again each year on the scheduled balance, so it falls as the loan is repaid. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/usda-guarantee-fee@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "USDA loan guarantee fee calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_va_funding_fee",
          "title": "VA funding fee calculator",
          "description": "The VA funding fee on a home loan, from the Department of Veterans Affairs' current rate chart, by loan type, down payment and first or later use.\n\nMost VA home loans carry a one-time funding fee, a percentage of the loan amount that depends on the kind of loan, on the down payment for a purchase, and on whether the borrower has used a VA loan before. This calculator applies the rate chart the VA publishes for loans closed on or after 7 April 2023 and shows the loan amount if the fee is financed.",
          "inputSchema": {
            "type": "object",
            "required": [
              "loan_amount"
            ],
            "properties": {
              "exempt": {
                "type": "boolean",
                "default": false,
                "description": "true when no fee is due, for example for a veteran who receives VA compensation for a service-connected disability."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "first_use": {
                "type": "boolean",
                "default": true,
                "description": "true for the first use of the VA home loan benefit, false after that."
              },
              "loan_type": {
                "enum": [
                  "purchase",
                  "cash_out_refinance",
                  "irrrl",
                  "nadl_purchase",
                  "nadl_refinance",
                  "manufactured_home",
                  "assumption",
                  "vendee"
                ],
                "type": "string",
                "default": "purchase",
                "description": "The kind of loan. Options: purchase: VA-backed purchase or construction loan; cash_out_refinance: VA-backed cash-out refinance; irrrl: interest rate reduction refinance loan (IRRRL); nadl_purchase: Native American Direct Loan, purchase; nadl_refinance: Native American Direct Loan, refinance; manufactured_home: manufactured home loan (not permanently affixed); assumption: loan assumption; vendee: vendee loan (buying a VA-acquired property)"
              },
              "loan_amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "190000"
                ],
                "description": "The loan amount, without the fee. The fee is a percentage of the loan, not of the purchase price. Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "down_payment_percent": {
                "type": "string",
                "default": "0",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "5"
                ],
                "description": "Down payment as a percentage of the purchase price (purchase and construction loans only). Allowed: >= 0 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "funding_fee_percent",
                  "funding_fee",
                  "loan_amount_with_fee"
                ],
                "properties": {
                  "funding_fee": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The fee. Unit: currency."
                  },
                  "funding_fee_percent": {
                    "type": "string",
                    "description": "The fee rate. Unit: percent."
                  },
                  "loan_amount_with_fee": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The loan when the fee is added to it. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/va-funding-fee@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "VA funding fee calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_finance_yield_to_call",
          "title": "Yield to call calculator",
          "description": "The yield of a callable bond if the issuer redeems it on the call date at the call price, found as a proven root of the price equation.\n\nA callable bond can be repaid early at a set price. Yield to call is the yield the buyer earns if that happens: the rate at which the coupons up to the call date and the call price are worth today's price. It is the same equation as yield to maturity (Excel's YIELD) with the call date in place of maturity and the call price in place of the redemption value. Compare it with the yield to maturity; the lower of the two is the yield to worst.",
          "inputSchema": {
            "type": "object",
            "required": [
              "settlement",
              "call_date",
              "coupon_rate_percent",
              "price",
              "call_price"
            ],
            "properties": {
              "price": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "104"
                ],
                "description": "Clean price paid per 100 of face value. Allowed: > 0 and <= 1000000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=6).",
                "additionalProperties": false
              },
              "call_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2031-03-15"
                ],
                "description": "The date the bond can be called."
              },
              "day_count": {
                "enum": [
                  "30/360",
                  "actual/actual",
                  "actual/360",
                  "actual/365",
                  "30e/360"
                ],
                "type": "string",
                "default": "30/360",
                "description": "How days are counted for accrued interest. Options: 30/360: US (NASD) 30/360; actual/actual: actual days over the actual length of the coupon period; actual/360: actual days over a 360-day year; actual/365: actual days over a 365-day year; 30e/360: European 30/360"
              },
              "frequency": {
                "type": "integer",
                "default": 2,
                "maximum": 4,
                "minimum": 1,
                "description": "Coupons per year: 1, 2 or 4. Allowed: >= 1 and <= 4."
              },
              "call_price": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "102"
                ],
                "description": "Amount paid per 100 of face value if the bond is called. Allowed: > 0 and <= 1000000."
              },
              "settlement": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-03-15"
                ],
                "description": "Settlement date (when the buyer gets the bond)."
              },
              "coupon_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "5"
                ],
                "description": "Annual coupon rate in percent of face value. Allowed: >= 0 and <= 1000. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "yield_to_call_percent",
                  "coupons_until_call"
                ],
                "properties": {
                  "coupons_until_call": {
                    "type": "integer",
                    "description": "Coupons from settlement to the call date."
                  },
                  "yield_to_call_percent": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Annual yield to the call date. Unit: percent."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "finance/yield-to-call@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Yield to call calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_health_bmi",
          "title": "BMI calculator",
          "description": "Body mass index for adults from weight and height in metric or imperial units, with the WHO/CDC weight category and the healthy weight range for that height.\n\nComputes BMI = weight (kg) ÷ height (m)² from exact unit definitions, so imperial inputs need no 703 approximation. The category is decided on the exact BMI, so a BMI of 24.96 is 'Healthy weight' even though it displays as 25.0; the response warns when rounding crosses a band boundary like that.",
          "inputSchema": {
            "type": "object",
            "required": [
              "weight",
              "height"
            ],
            "properties": {
              "height": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "175"
                ],
                "description": "Height in height_unit. Allowed: > 0 and <= 300."
              },
              "weight": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "70"
                ],
                "description": "Body weight in weight_unit. Allowed: > 0 and <= 2000."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=1).",
                "additionalProperties": false
              },
              "height_unit": {
                "enum": [
                  "cm",
                  "m",
                  "in",
                  "ft"
                ],
                "type": "string",
                "default": "cm",
                "description": "Unit of height. Options: cm: centimetres; m: metres; in: inches (2.54 cm); ft: feet (12 in); add the rest with height_inches"
              },
              "weight_unit": {
                "enum": [
                  "kg",
                  "lb",
                  "st"
                ],
                "type": "string",
                "default": "kg",
                "description": "Unit of weight. Options: kg: kilograms; lb: pounds (0.45359237 kg); st: stone (14 lb)"
              },
              "height_inches": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Extra inches when height_unit is ft (5 ft 10 in is height 5, height_inches 10). Allowed: >= 0 and < 12."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "bmi",
                  "category",
                  "category_label",
                  "healthy_weight_min",
                  "healthy_weight_max",
                  "weight_kg",
                  "height_m"
                ],
                "properties": {
                  "bmi": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Body mass index in kg/m². Unit: kg/m²."
                  },
                  "category": {
                    "type": "string",
                    "description": "Weight category code: underweight, healthy_weight, overweight, obesity_class_1, obesity_class_2 or obesity_class_3."
                  },
                  "height_m": {
                    "type": "string",
                    "description": "Height in metres, exact (not rounded)."
                  },
                  "weight_kg": {
                    "type": "string",
                    "description": "Weight in kilograms, exact (not rounded)."
                  },
                  "category_label": {
                    "type": "string",
                    "description": "Weight category in words."
                  },
                  "healthy_weight_max": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Weight at BMI 25 for this height, in weight_unit (the healthy band ends just below it)."
                  },
                  "healthy_weight_min": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Lowest weight in the healthy band (BMI 18.5) for this height, in weight_unit."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "health/bmi@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "BMI calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_math_expression",
          "title": "Expression calculator",
          "description": "Evaluate an arithmetic expression exactly, with functions like sqrt, ln, sin and factorial.\n\nEvaluates expressions such as (1/3 + 1/6) * 2^10 or sqrt(2) * sin(45) with no floating-point error: rational arithmetic is exact, and irrational results (roots, logarithms, trig) are computed with certified interval arithmetic and rounded correctly. The interpretation output shows how the expression was read, with every implied parenthesis written out.",
          "inputSchema": {
            "type": "object",
            "required": [
              "expression"
            ],
            "properties": {
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=20).",
                "additionalProperties": false
              },
              "angle_unit": {
                "enum": [
                  "radians",
                  "degrees"
                ],
                "type": "string",
                "default": "radians",
                "description": "Unit for trig function inputs and inverse-trig outputs. Options: radians: radians; degrees: degrees"
              },
              "expression": {
                "type": "string",
                "examples": [
                  "(1/3 + 1/6) * 2^10"
                ],
                "maxLength": 1000,
                "description": "The expression. Operators: + - * / ^ (or **) and ! (factorial); constants pi and e; functions: abs, acos, asin, atan, cbrt, ceil, cos, cosh, exp, factorial, floor, ln, log, log10, log2, max, min, mod, root, sin, sinh, sqrt, tan, tanh. At most 1000 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "result",
                  "interpretation"
                ],
                "properties": {
                  "result": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The value of the expression."
                  },
                  "interpretation": {
                    "type": "string",
                    "description": "The expression as parsed, with explicit parentheses."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "math/expression@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Expression calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_math_fraction",
          "title": "Fraction calculator",
          "description": "Add, subtract, multiply, divide and simplify fractions and mixed numbers, with the exact repeating decimal.\n\nWorks with exact fractions such as 3/4, mixed numbers such as 1 1/2, and decimals. Results are always in lowest terms and include the mixed number, a rounded decimal and the exact decimal expansion with its repeating block in parentheses (1/6 = 0.1(6)).",
          "inputSchema": {
            "type": "object",
            "required": [
              "operation",
              "a"
            ],
            "properties": {
              "a": {
                "type": "string",
                "examples": [
                  "1/3"
                ],
                "maxLength": 200,
                "description": "First fraction, e.g. '3/4', '-1 1/2' or '0.75'. At most 200 characters."
              },
              "b": {
                "type": "string",
                "examples": [
                  "1/6"
                ],
                "maxLength": 200,
                "description": "Second fraction (not used by simplify). At most 200 characters."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=20).",
                "additionalProperties": false
              },
              "operation": {
                "enum": [
                  "simplify",
                  "add",
                  "subtract",
                  "multiply",
                  "divide"
                ],
                "type": "string",
                "examples": [
                  "add"
                ],
                "description": "What to do. Options: simplify: reduce a to lowest terms; add: a + b; subtract: a − b; multiply: a × b; divide: a ÷ b"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "fraction",
                  "numerator",
                  "denominator",
                  "mixed_number",
                  "decimal",
                  "repeating_decimal",
                  "is_terminating"
                ],
                "properties": {
                  "decimal": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Result as a rounded decimal."
                  },
                  "fraction": {
                    "type": "string",
                    "description": "Result in lowest terms, e.g. '1/2' or '3'."
                  },
                  "numerator": {
                    "type": "string",
                    "description": "Numerator in lowest terms (a string, since it can exceed JavaScript's safe integer range)."
                  },
                  "denominator": {
                    "type": "string",
                    "description": "Denominator in lowest terms (always positive)."
                  },
                  "mixed_number": {
                    "type": "string",
                    "description": "Result as a mixed number, e.g. '1 1/2'."
                  },
                  "is_terminating": {
                    "type": "boolean",
                    "description": "True when the decimal expansion ends."
                  },
                  "repeating_decimal": {
                    "type": "string",
                    "description": "Exact decimal with the repeating block in parentheses."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "math/fraction@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Fraction calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_math_percentage",
          "title": "Percentage calculator",
          "description": "Percent of a number, what percent one number is of another, percent change, percent difference, and increase or decrease by a percent.\n\nSix everyday percentage questions in one calculator, each with its formula returned so the meaning of a and b is never in doubt. All arithmetic is exact.",
          "inputSchema": {
            "type": "object",
            "required": [
              "operation",
              "a",
              "b"
            ],
            "properties": {
              "a": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "15"
                ],
                "description": "First number (see operation for its meaning)."
              },
              "b": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "80"
                ],
                "description": "Second number (see operation for its meaning)."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "operation": {
                "enum": [
                  "percent_of",
                  "what_percent",
                  "change",
                  "difference",
                  "increase",
                  "decrease"
                ],
                "type": "string",
                "examples": [
                  "percent_of"
                ],
                "description": "Which percentage question to answer. Options: percent_of: a% of b; what_percent: a is what percent of b; change: percent change from a to b; difference: percent difference between a and b; increase: b increased by a%; decrease: b decreased by a%"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "result",
                  "formula_used"
                ],
                "properties": {
                  "result": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The answer (a percentage for what_percent, change and difference)."
                  },
                  "formula_used": {
                    "type": "string",
                    "description": "The formula applied."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "math/percentage@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Percentage calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_math_rounding",
          "title": "Rounding calculator",
          "description": "Round a number to decimal places, significant digits or a multiple, with any of seven rounding rules.\n\nRounds exactly (no binary floating point), so 2.675 to two places with half-up gives 2.68, not the 2.67 many programs print. Choose the rule explicitly: half-up, banker's rounding (half-even), half-down, up, down (truncate), ceiling or floor.",
          "inputSchema": {
            "type": "object",
            "required": [
              "value"
            ],
            "properties": {
              "mode": {
                "enum": [
                  "half_up",
                  "half_even",
                  "half_down",
                  "up",
                  "down",
                  "ceiling",
                  "floor"
                ],
                "type": "string",
                "default": "half_up",
                "description": "Rounding rule. Options: half_up: to nearest, ties away from zero (2.5 → 3, -2.5 → -3); half_even: to nearest, ties to even (2.5 → 2, 3.5 → 4): banker's rounding; half_down: to nearest, ties towards zero (2.5 → 2); up: away from zero (2.1 → 3, -2.1 → -3); down: towards zero, i.e. truncate (2.9 → 2); ceiling: towards +∞ (2.1 → 3, -2.1 → -2); floor: towards −∞ (2.9 → 2, -2.1 → -3)"
              },
              "value": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "2.675"
                ],
                "description": "The number to round."
              },
              "method": {
                "enum": [
                  "decimals",
                  "significant",
                  "multiple"
                ],
                "type": "string",
                "default": "decimals",
                "description": "What to round to. Options: decimals: to a number of decimal places (negative rounds to tens, hundreds, ...); significant: to a number of significant digits; multiple: to the nearest multiple of a step, e.g. 0.05 for cash rounding"
              },
              "places": {
                "type": "integer",
                "maximum": 60,
                "minimum": -20,
                "examples": [
                  2
                ],
                "description": "Decimal places (method decimals) or significant digits (method significant). Allowed: >= -20 and <= 60."
              },
              "multiple": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Step to round to (method multiple), e.g. 0.05. Allowed: > 0."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "result",
                  "changed",
                  "difference"
                ],
                "properties": {
                  "result": {
                    "type": "string",
                    "description": "The rounded number, with trailing zeros kept (2.10)."
                  },
                  "changed": {
                    "type": "boolean",
                    "description": "False when the value was already exact at this precision."
                  },
                  "difference": {
                    "type": "string",
                    "description": "result − value, exactly."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "math/rounding@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Rounding calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_math_scientific",
          "title": "Scientific calculator",
          "description": "Roots, powers, logarithms, exponentials, trig and hyperbolic functions, and factorials, correctly rounded to up to 50 significant digits.\n\nEach function is evaluated with certified interval arithmetic and rounded correctly, so every returned digit is right. Exact cases stay exact: sqrt(2.25) is 1.5, log10(1000) is 3, sin(30°) is 0.5 and the cube root of -8 is -2.",
          "inputSchema": {
            "type": "object",
            "required": [
              "function",
              "x"
            ],
            "properties": {
              "x": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "2"
                ],
                "description": "The argument."
              },
              "y": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Second argument for power, nth_root and log_base."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=20).",
                "additionalProperties": false
              },
              "function": {
                "enum": [
                  "sqrt",
                  "cbrt",
                  "nth_root",
                  "power",
                  "reciprocal",
                  "exp",
                  "ln",
                  "log10",
                  "log2",
                  "log_base",
                  "sin",
                  "cos",
                  "tan",
                  "asin",
                  "acos",
                  "atan",
                  "sinh",
                  "cosh",
                  "tanh",
                  "factorial"
                ],
                "type": "string",
                "examples": [
                  "sqrt"
                ],
                "description": "Function to apply. Options: sqrt: √x; cbrt: ∛x (real cube root); nth_root: the real y-th root of x (y a whole number from 2 to 1000); power: x^y; reciprocal: 1/x; exp: e^x; ln: natural logarithm of x; log10: base-10 logarithm of x; log2: base-2 logarithm of x; log_base: logarithm of x to base y; sin: sine of x; cos: cosine of x; tan: tangent of x; asin: inverse sine of x; acos: inverse cosine of x; atan: inverse tangent of x; sinh: hyperbolic sine of x; cosh: hyperbolic cosine of x; tanh: hyperbolic tangent of x; factorial: x! (x a whole number from 0 to 1000)"
              },
              "angle_unit": {
                "enum": [
                  "radians",
                  "degrees"
                ],
                "type": "string",
                "default": "radians",
                "description": "Unit for trig inputs and inverse-trig outputs. Options: radians: radians; degrees: degrees"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "result"
                ],
                "properties": {
                  "result": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The function value."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "math/scientific@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Scientific calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_math_statistics",
          "title": "Statistics calculator",
          "description": "Mean, median, mode, range, variance and standard deviation (population and sample) of a list of numbers.\n\nComputes descriptive statistics exactly. Sums, means and variances are exact fractions; standard deviations are square roots computed with certified arithmetic, so even long lists of decimals give correctly rounded results with no accumulated floating-point error.",
          "inputSchema": {
            "type": "object",
            "required": [
              "values"
            ],
            "properties": {
              "values": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "2",
                    "4",
                    "4",
                    "4",
                    "5",
                    "5",
                    "7",
                    "9"
                  ]
                ],
                "maxItems": 10000,
                "minItems": 1,
                "description": "The data, as a list of numbers. 1 to 10000 items."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "count",
                  "sum",
                  "mean",
                  "median",
                  "mode",
                  "minimum",
                  "maximum",
                  "range",
                  "population_variance",
                  "population_std_dev"
                ],
                "properties": {
                  "sum": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Sum of the values."
                  },
                  "mean": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Arithmetic mean."
                  },
                  "mode": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Most frequent value(s), exact; empty when no value repeats."
                  },
                  "count": {
                    "type": "integer",
                    "description": "Number of values."
                  },
                  "range": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Maximum minus minimum."
                  },
                  "median": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Middle value (mean of the two middle values for an even count)."
                  },
                  "maximum": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Largest value."
                  },
                  "minimum": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Smallest value."
                  },
                  "sample_std_dev": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Square root of the sample variance (needs n ≥ 2)."
                  },
                  "sample_variance": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Σ(x − mean)² / (n − 1) (needs n ≥ 2)."
                  },
                  "population_std_dev": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Square root of the population variance."
                  },
                  "population_variance": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Σ(x − mean)² / n."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "math/statistics@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Statistics calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_money_allocate",
          "title": "Money splitter",
          "description": "Split an amount by ratios or into equal parts so the shares are whole cents and add up exactly to the amount.\n\nSplits an amount of money between several parts, by ratios (70/30, 1:2:3, percentages) or into equal parts, so that every share is a whole number of the currency's minor unit and the shares add up to the amount exactly: no cent is lost or invented. Rounding each share on its own does not work: 10.00 split three ways rounds to 3.33 three times, which is 9.99. Here each part first gets its exact share rounded down, and the few cents left over are handed out one at a time. Use it for splitting bills, revenue shares, commission, refunds across order lines, or a discount across invoice lines. The currency sets the minor unit: cents for USD and EUR, whole yen for JPY, fils (0.001) for KWD.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount",
              "currency"
            ],
            "properties": {
              "parts": {
                "type": "integer",
                "maximum": 1000,
                "minimum": 1,
                "examples": [
                  3
                ],
                "description": "Number of equal parts (instead of ratios). Allowed: >= 1 and <= 1000."
              },
              "amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "100"
                ],
                "description": "The amount to split. A negative amount (a refund) is split the same way and every share is negative. Allowed: >= -1000000000000000 and <= 1000000000000000. Unit: currency."
              },
              "method": {
                "enum": [
                  "largest_remainder",
                  "in_order"
                ],
                "type": "string",
                "default": "largest_remainder",
                "description": "Who gets the minor units left over after every share is rounded down. Options: largest_remainder: the leftover minor units go to the parts whose exact shares were cut the most, earlier parts first on a tie (Hamilton's method); in_order: the leftover minor units go to the first parts, one each, skipping parts with a ratio of 0 (the rule of Dinero.js and Martin Fowler's Money pattern)"
              },
              "ratios": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "70",
                    "20",
                    "10"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 1,
                "description": "The parts' ratios, in order. Only their proportions matter: [70, 30], [7, 3] and [0.7, 0.3] split the same way. A ratio of 0 gets nothing. Give ratios or parts. 1 to 1000 items. Each item: >= 0 and <= 1000000000000000."
              },
              "currency": {
                "type": "string",
                "examples": [
                  "USD"
                ],
                "maxLength": 3,
                "description": "ISO 4217 code of the currency, such as USD, EUR, JPY or KWD. It sets the number of decimals (the minor unit): 2 for most currencies, 0 for JPY, 3 for KWD. At most 3 characters."
              },
              "rounding": {
                "enum": [
                  "half_up",
                  "half_even",
                  "half_down",
                  "up",
                  "down",
                  "ceiling",
                  "floor"
                ],
                "type": "string",
                "default": "half_up",
                "description": "How to round the amount to the currency's minor unit first, if it has more decimals (a warning says so). Options: half_up: to nearest, ties away from zero (2.5 → 3, -2.5 → -3); half_even: to nearest, ties to even (2.5 → 2, 3.5 → 4): banker's rounding; half_down: to nearest, ties towards zero (2.5 → 2); up: away from zero (2.1 → 3, -2.1 → -3); down: towards zero, i.e. truncate (2.9 → 2); ceiling: towards +∞ (2.1 → 3, -2.1 → -2); floor: towards −∞ (2.9 → 2, -2.1 → -3)"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "total",
                  "shares",
                  "leftover_units",
                  "decimals",
                  "allocation"
                ],
                "properties": {
                  "total": {
                    "type": "string",
                    "description": "The amount that was split, in the currency's minor unit; the shares add up to exactly this."
                  },
                  "shares": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The shares, in the order of the parts."
                  },
                  "decimals": {
                    "type": "integer",
                    "description": "The currency's number of decimals (ISO 4217 minor unit)."
                  },
                  "allocation": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "part",
                        "ratio",
                        "exact_share",
                        "share",
                        "extra_unit"
                      ],
                      "properties": {
                        "part": {
                          "type": "integer",
                          "description": "Part number, starting at 1, in the order given."
                        },
                        "ratio": {
                          "type": "string",
                          "description": "This part's ratio, as given (1 for equal parts)."
                        },
                        "share": {
                          "type": "string",
                          "description": "This part's share in whole minor units."
                        },
                        "extra_unit": {
                          "type": "boolean",
                          "description": "True when this part got one of the leftover minor units."
                        },
                        "exact_share": {
                          "type": "string",
                          "description": "total × ratio ÷ sum of ratios, exactly (a fraction p/q when it does not end), where total is the amount in whole minor units."
                        }
                      }
                    },
                    "description": "Each part: ratio, exact share and share."
                  },
                  "leftover_units": {
                    "type": "integer",
                    "description": "How many minor units were left after rounding every share down, and handed out one each."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "money/allocate@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Money splitter",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_money_round",
          "title": "Currency rounding calculator",
          "description": "Round an amount to its currency's minor unit (ISO 4217: 2 decimals for EUR, 0 for JPY, 3 for KWD) and to a country's cash rounding rule, such as 0.05 in Canada.\n\nRounds an amount of money the way the currency and the country require. First it rounds to the currency's minor unit from ISO 4217, the international list of currency codes: cents for USD and EUR, whole yen for JPY, three decimals for the Kuwaiti dinar. Then, if you give a country, it applies that country's rule for rounding cash totals in countries that have withdrawn their smallest coins, such as 0.05 in Canada, Australia and several euro countries, 0.10 in Israel, a whole krona in Sweden or 10 pesos in Chile. There are 23 countries, and every rule follows the country's law, central bank or government guidance, cited in the references, including the special cases: Finland and Estonia never round a total of 0.01 or 0.02 to zero, Slovakia rounds it up to 0.05, and Chile rounds 5 pesos down. You can also give your own cash step.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount",
              "currency"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "23.37"
                ],
                "description": "The amount to round. Allowed: >= -1000000000000000 and <= 1000000000000000. Unit: currency."
              },
              "cash_tie": {
                "enum": [
                  "up",
                  "down"
                ],
                "type": "string",
                "description": "Which way a cash total exactly halfway between two steps goes. The default is the country's rule; when the rule does not say (or with cash_step), up is used and a CASH_TIE_ASSUMED warning says so. Options: up: a total exactly halfway between two steps rounds away from zero; down: a total exactly halfway between two steps rounds towards zero"
              },
              "currency": {
                "type": "string",
                "examples": [
                  "EUR"
                ],
                "maxLength": 3,
                "description": "ISO 4217 code of the currency, such as USD, EUR, JPY or KWD. It sets the number of decimals (the minor unit): 2 for most currencies, 0 for JPY, 3 for KWD. At most 3 characters."
              },
              "rounding": {
                "enum": [
                  "half_up",
                  "half_even",
                  "half_down",
                  "up",
                  "down",
                  "ceiling",
                  "floor"
                ],
                "type": "string",
                "default": "half_up",
                "description": "How to round to the currency's minor unit. half_up is the usual commercial rule (and the rule for euro conversions). Options: half_up: to nearest, ties away from zero (2.5 → 3, -2.5 → -3); half_even: to nearest, ties to even (2.5 → 2, 3.5 → 4): banker's rounding; half_down: to nearest, ties towards zero (2.5 → 2); up: away from zero (2.1 → 3, -2.1 → -3); down: towards zero, i.e. truncate (2.9 → 2); ceiling: towards +∞ (2.1 → 3, -2.1 → -2); floor: towards −∞ (2.9 → 2, -2.1 → -3)"
              },
              "cash_step": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Optional cash step of your own, such as 0.05 or 0.10, instead of cash_country. It must be a whole number of minor units. Allowed: > 0 and <= 1000000."
              },
              "cash_country": {
                "type": "string",
                "examples": [
                  "NL"
                ],
                "maxLength": 2,
                "description": "Optional ISO 3166 two-letter country code, to also round the total for a cash payment by that country's rule. The currency must be the country's. Countries: AU (AUD), BE (EUR), BS (BSD), CA (CAD), CH (CHF), CL (CLP), CZ (CZK), DK (DKK), EE (EUR), FI (EUR), HU (HUF), IE (EUR), IL (ILS), IT (EUR), JM (JMD), LT (EUR), MY (MYR), NL (EUR), NO (NOK), NZ (NZD), SE (SEK), SK (EUR), TT (TTD). At most 2 characters."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "rounded",
                  "minor_units",
                  "decimals",
                  "currency_name",
                  "difference"
                ],
                "properties": {
                  "rounded": {
                    "type": "string",
                    "description": "The amount in the currency's minor unit, with every decimal shown (10.50, 1050 for JPY, 1.235 for KWD)."
                  },
                  "decimals": {
                    "type": "integer",
                    "description": "The currency's ISO 4217 minor unit."
                  },
                  "cash_rule": {
                    "type": "string",
                    "description": "The cash rounding rule that was applied, in words."
                  },
                  "cash_step": {
                    "type": "string",
                    "description": "The cash rounding step used."
                  },
                  "difference": {
                    "type": "string",
                    "description": "rounded − amount, exactly."
                  },
                  "cash_amount": {
                    "type": "string",
                    "description": "The total to pay in cash after the cash rounding rule."
                  },
                  "cash_source": {
                    "type": "string",
                    "description": "Link to the law, central bank or government page the country's rule comes from."
                  },
                  "minor_units": {
                    "type": "string",
                    "description": "The rounded amount as a whole number of minor units (1050 for 10.50 EUR), as a string so it stays exact. Most payment APIs take amounts in this form, though a few use other minor units than ISO 4217 for some currencies, so check yours."
                  },
                  "currency_name": {
                    "type": "string",
                    "description": "The currency's English name."
                  },
                  "cash_difference": {
                    "type": "string",
                    "description": "cash_amount − rounded, exactly."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "money/round@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Currency rounding calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_payments_late_interest_eu",
          "title": "EU late payment interest calculator (Directive 2011/7)",
          "description": "Statutory interest on a late business invoice under the EU Late Payment Directive: the ECB rate plus at least 8 points, set each half-year, plus €40.\n\nSimple interest at the ECB main refinancing rate plus a margin (at least 8 percentage points). The ECB rate in force on 1 January applies to days from January to June and the rate on 1 July to days from July to December, so a long delay is split into half-years. Also returns the €40 minimum compensation.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount",
              "due_date",
              "payment_date"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10000"
                ],
                "description": "The unpaid amount (the invoice or debt). Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "due_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-03-31"
                ],
                "description": "The last day the payment was due (interest starts the day after)."
              },
              "day_count": {
                "enum": [
                  "actual_365",
                  "actual_actual",
                  "actual_360"
                ],
                "type": "string",
                "default": "actual_365",
                "description": "How a day's share of the year is counted. Options: actual_365: each day is 1/365 of a year, leap years included (the usual practice); actual_actual: each day is 1/365 of a year, or 1/366 in a leap year; actual_360: each day is 1/360 of a year"
              },
              "payment_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-06-29"
                ],
                "description": "The day the payment was or will be made (counted as a day of interest)."
              },
              "margin_percent": {
                "type": "string",
                "default": "8",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Points added to the ECB rate: 8 in the directive; some countries add more (Germany 9). Allowed: >= 8 and <= 50. Unit: percent."
              },
              "reference_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Use this ECB rate (in percent) for every day instead of the published one, for example for a date not yet covered. Allowed: >= -5 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "days_late",
                  "interest",
                  "compensation",
                  "total_claim",
                  "periods"
                ],
                "properties": {
                  "periods": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "start",
                        "end",
                        "days",
                        "annual_rate_percent",
                        "interest"
                      ],
                      "properties": {
                        "end": {
                          "type": "string",
                          "format": "date",
                          "description": "Last day of interest in this period."
                        },
                        "days": {
                          "type": "integer",
                          "description": "Days of interest in this period."
                        },
                        "start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day of interest in this period."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Interest for the period. Unit: currency."
                        },
                        "annual_rate_percent": {
                          "type": "string",
                          "description": "Interest rate for the period, in percent a year."
                        }
                      }
                    },
                    "description": "Interest for each half-year."
                  },
                  "interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Statutory interest. Unit: currency."
                  },
                  "days_late": {
                    "type": "integer",
                    "description": "Days of interest."
                  },
                  "total_claim": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest plus the compensation. Unit: currency."
                  },
                  "compensation": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Minimum fixed compensation (Article 6). Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "payments/late-interest/eu@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "EU late payment interest calculator (Directive 2011/7)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_payments_late_interest_germany",
          "title": "Verzugszinsen calculator (§ 288 BGB, Germany)",
          "description": "Verzugszinsen under § 288 BGB, half-year by half-year: the Basiszinssatz plus 9 points and the €40 fee between businesses, or plus 5 points with consumers.\n\nSimple interest at the Bundesbank Basiszinssatz (§ 247 BGB) plus 9 percentage points when no consumer is involved, or 5 points when the debtor is a consumer (8 points for business contracts made before 29 July 2014). The Basiszinssatz changes on 1 January and 1 July, so a long delay is split into half-years. Business debtors also owe the €40 Verzugspauschale (§ 288 (5) BGB).",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount",
              "due_date",
              "payment_date"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10000"
                ],
                "description": "The unpaid amount (the invoice or debt). Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "debtor": {
                "enum": [
                  "business",
                  "consumer"
                ],
                "type": "string",
                "default": "business",
                "description": "Who owes the money. Options: business: no consumer involved: Basiszinssatz + 9 points; consumer: the debtor is a consumer: Basiszinssatz + 5 points"
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "due_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-03-31"
                ],
                "description": "The last day before default (Verzug begins the next day)."
              },
              "day_count": {
                "enum": [
                  "actual_365",
                  "actual_actual",
                  "actual_360"
                ],
                "type": "string",
                "default": "actual_365",
                "description": "How a day's share of the year is counted. Options: actual_365: each day is 1/365 of a year, leap years included (the usual practice); actual_actual: each day is 1/365 of a year, or 1/366 in a leap year; actual_360: each day is 1/360 of a year"
              },
              "payment_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-06-29"
                ],
                "description": "The day the payment was or will be made (counted as a day of interest)."
              },
              "reference_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Use this Basiszinssatz (in percent) for every day instead of the published one, for example for a date not yet covered. Allowed: >= -5 and <= 100. Unit: percent."
              },
              "contract_before_29_july_2014": {
                "type": "boolean",
                "default": false,
                "description": "The business contract was made before 29 July 2014 (8 points, no €40 fee)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "days_late",
                  "margin_percent",
                  "interest",
                  "compensation",
                  "total_claim",
                  "periods"
                ],
                "properties": {
                  "periods": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "start",
                        "end",
                        "days",
                        "annual_rate_percent",
                        "interest"
                      ],
                      "properties": {
                        "end": {
                          "type": "string",
                          "format": "date",
                          "description": "Last day of interest in this period."
                        },
                        "days": {
                          "type": "integer",
                          "description": "Days of interest in this period."
                        },
                        "start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day of interest in this period."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Interest for the period. Unit: currency."
                        },
                        "annual_rate_percent": {
                          "type": "string",
                          "description": "Interest rate for the period, in percent a year."
                        }
                      }
                    },
                    "description": "Interest for each half-year."
                  },
                  "interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Verzugszinsen. Unit: currency."
                  },
                  "days_late": {
                    "type": "integer",
                    "description": "Days of interest."
                  },
                  "total_claim": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest plus the Verzugspauschale. Unit: currency."
                  },
                  "compensation": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Verzugspauschale (€40 for business debtors). Unit: currency."
                  },
                  "margin_percent": {
                    "type": "string",
                    "description": "Points over the Basiszinssatz."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "payments/late-interest/germany@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Verzugszinsen calculator (§ 288 BGB, Germany)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_payments_late_interest_india_msme",
          "title": "MSME delayed payment interest calculator (India)",
          "description": "Interest owed to a micro or small enterprise for late payment under sections 15 and 16 of India's MSMED Act 2006: three times the RBI Bank Rate, compounded monthly.\n\nA buyer must pay a micro or small supplier by the agreed date, which may be at most 45 days after accepting the goods or services, or within 15 days when nothing was agreed. After that, the buyer owes compound interest with monthly rests at three times the Bank Rate notified by the Reserve Bank of India.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount",
              "acceptance_date",
              "payment_date"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10000"
                ],
                "description": "The unpaid amount (the invoice or debt). Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "payment_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-06-30"
                ],
                "description": "The day the payment was or will be made (counted as a day of interest)."
              },
              "acceptance_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-01-10"
                ],
                "description": "The day the buyer accepted (or is deemed to have accepted) the goods or services."
              },
              "agreed_payment_date": {
                "type": "string",
                "format": "date",
                "description": "The payment date agreed in writing, if any."
              },
              "reference_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Use this RBI Bank Rate (in percent) for every day instead of the published one, for example for a date not yet covered. Allowed: >= -5 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "due_date",
                  "days_late",
                  "interest",
                  "total_due",
                  "periods"
                ],
                "properties": {
                  "periods": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "start",
                        "end",
                        "days",
                        "annual_rate_percent",
                        "interest",
                        "compounded"
                      ],
                      "properties": {
                        "end": {
                          "type": "string",
                          "format": "date",
                          "description": "Last day of interest in this period."
                        },
                        "days": {
                          "type": "integer",
                          "description": "Days of interest in this period."
                        },
                        "start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day of interest in this period."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Interest for the period. Unit: currency."
                        },
                        "compounded": {
                          "type": "boolean",
                          "description": "Interest is added to the balance at the end of this period."
                        },
                        "annual_rate_percent": {
                          "type": "string",
                          "description": "Interest rate for the period, in percent a year."
                        }
                      }
                    },
                    "description": "Interest for each monthly rest (split where the Bank Rate changes)."
                  },
                  "due_date": {
                    "type": "string",
                    "format": "date",
                    "description": "The last day to pay without interest."
                  },
                  "interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Compound interest owed. Unit: currency."
                  },
                  "days_late": {
                    "type": "integer",
                    "description": "Days of interest."
                  },
                  "total_due": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Amount plus interest. Unit: currency."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "payments/late-interest/india-msme@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "MSME delayed payment interest calculator (India)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_payments_late_interest_uk",
          "title": "UK late payment interest calculator (8% over base)",
          "description": "Statutory interest and fixed compensation on a late business invoice under the UK Late Payment of Commercial Debts (Interest) Act 1998.\n\nSimple interest at 8 percentage points over the Bank of England Bank Rate. The rate is fixed for the whole debt: it uses Bank Rate on 31 December for interest that starts between 1 January and 30 June, and on 30 June for interest that starts between 1 July and 31 December. Also returns the fixed sum for recovery costs: £40, £70 or £100 depending on the size of the debt.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount",
              "due_date",
              "payment_date"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10000"
                ],
                "description": "The unpaid amount (the invoice or debt). Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "method": {
                "enum": [
                  "exact",
                  "daily_pence"
                ],
                "type": "string",
                "default": "exact",
                "description": "exact: amount × rate × days / 365. daily_pence: first round the daily interest to the penny, as the worked example on GOV.UK does. Options: exact: the exact interest, rounded once; daily_pence: daily interest rounded to the penny, then times the days"
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "due_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-03-31"
                ],
                "description": "The last day the payment was due (interest starts the day after)."
              },
              "payment_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-06-29"
                ],
                "description": "The day the payment was or will be made (counted as a day of interest)."
              },
              "reference_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Use this Bank Rate (in percent) for every day instead of the published one, for example for a date not yet covered. Allowed: >= -5 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "days_late",
                  "annual_rate_percent",
                  "reference_rate_percent",
                  "reference_date",
                  "daily_interest",
                  "interest",
                  "compensation",
                  "total_claim",
                  "periods"
                ],
                "properties": {
                  "periods": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "start",
                        "end",
                        "days",
                        "annual_rate_percent",
                        "interest"
                      ],
                      "properties": {
                        "end": {
                          "type": "string",
                          "format": "date",
                          "description": "Last day of interest in this period."
                        },
                        "days": {
                          "type": "integer",
                          "description": "Days of interest in this period."
                        },
                        "start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day of interest in this period."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Interest for the period. Unit: currency."
                        },
                        "annual_rate_percent": {
                          "type": "string",
                          "description": "Interest rate for the period, in percent a year."
                        }
                      }
                    },
                    "description": "The interest period."
                  },
                  "interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Statutory interest. Unit: currency."
                  },
                  "days_late": {
                    "type": "integer",
                    "description": "Days of interest."
                  },
                  "total_claim": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest plus the fixed sum. Unit: currency."
                  },
                  "compensation": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Fixed sum for recovery costs (s.5A). Unit: currency."
                  },
                  "daily_interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest per day. Unit: currency."
                  },
                  "reference_date": {
                    "type": "string",
                    "format": "date",
                    "description": "The day whose Bank Rate was used."
                  },
                  "annual_rate_percent": {
                    "type": "string",
                    "description": "Statutory rate: reference rate + 8."
                  },
                  "reference_rate_percent": {
                    "type": "string",
                    "description": "Bank Rate used."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "payments/late-interest/uk@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "UK late payment interest calculator (8% over base)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_payments_late_interest_us_prompt_payment",
          "title": "Prompt Payment Act interest calculator",
          "description": "The interest penalty a US federal agency owes on a late invoice under the Prompt Payment Act: the Treasury rate, compounded every 30 days on a 360-day year.\n\nUses the Prompt Payment rate in effect on the day after the due date for the whole delay. Unpaid interest is added to the principal at the end of each 30-day period, the leftover days earn simple interest on a 360-day year, and interest stops after one year. This is the Treasury formula P(1 + r/12)ⁿ(1 + r·d/360) − P.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amount",
              "due_date",
              "payment_date"
            ],
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "10000"
                ],
                "description": "The unpaid amount (the invoice or debt). Allowed: > 0 and <= 1000000000000000. Unit: currency."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, decimals=2).",
                "additionalProperties": false
              },
              "due_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-03-31"
                ],
                "description": "The last day the payment was due (interest starts the day after)."
              },
              "payment_date": {
                "type": "string",
                "format": "date",
                "examples": [
                  "2026-06-29"
                ],
                "description": "The day the payment was or will be made (counted as a day of interest)."
              },
              "reference_rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "Use this Prompt Payment rate (in percent) for every day instead of the published one, for example for a date not yet covered. Allowed: >= -5 and <= 100. Unit: percent."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "days_late",
                  "annual_rate_percent",
                  "periods_compounded",
                  "interest",
                  "periods"
                ],
                "properties": {
                  "periods": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "start",
                        "end",
                        "days",
                        "annual_rate_percent",
                        "interest"
                      ],
                      "properties": {
                        "end": {
                          "type": "string",
                          "format": "date",
                          "description": "Last day of interest in this period."
                        },
                        "days": {
                          "type": "integer",
                          "description": "Days of interest in this period."
                        },
                        "start": {
                          "type": "string",
                          "format": "date",
                          "description": "First day of interest in this period."
                        },
                        "interest": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Interest for the period. Unit: currency."
                        },
                        "annual_rate_percent": {
                          "type": "string",
                          "description": "Interest rate for the period, in percent a year."
                        }
                      }
                    },
                    "description": "The interest period."
                  },
                  "interest": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Interest penalty. Unit: currency."
                  },
                  "days_late": {
                    "type": "integer",
                    "description": "Days of interest."
                  },
                  "periods_compounded": {
                    "type": "integer",
                    "description": "Whole 30-day periods (n)."
                  },
                  "annual_rate_percent": {
                    "type": "string",
                    "description": "Prompt Payment rate used."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "payments/late-interest/us-prompt-payment@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Prompt Payment Act interest calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_tax_vat",
          "title": "VAT and GST calculator",
          "description": "VAT or GST on one amount or a whole invoice, added or taken out of tax-inclusive prices, with the per-rate rounding EN 16931 e-invoices require.\n\nWorks out net, tax and gross for one amount or for every line of an invoice. Give amounts without tax to add it, or set amounts_include_tax to take the tax out of prices that already include it. Lines can have different rates. By default the tax is worked out once for each rate on the sum of that rate's lines and rounded to the cent, which is how the European e-invoice standard EN 16931 (and so XRechnung, Peppol and Factur-X) defines the VAT breakdown. The other choice rounds the tax on each line and adds those up, as a till receipt does; the two can differ by a few cents on a long invoice. The rate can be given, or looked up as a country's standard rate, in which case the answer names the official page it came from.",
          "inputSchema": {
            "type": "object",
            "required": [
              "amounts"
            ],
            "properties": {
              "amounts": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "4000",
                    "900",
                    "2000"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 1,
                "description": "The amount of each line: one item for a single price. Without tax, or with tax when amounts_include_tax is true. Negative amounts are credits. 1 to 1000 items. Each item: >= -1000000000000000 and <= 1000000000000000. Unit: currency."
              },
              "country": {
                "enum": [
                  "AT",
                  "BE",
                  "BG",
                  "CY",
                  "CZ",
                  "DE",
                  "DK",
                  "EE",
                  "EL",
                  "ES",
                  "FI",
                  "FR",
                  "HR",
                  "HU",
                  "IE",
                  "IT",
                  "LT",
                  "LU",
                  "LV",
                  "MT",
                  "NL",
                  "PL",
                  "PT",
                  "RO",
                  "SE",
                  "SI",
                  "SK",
                  "GB",
                  "CH",
                  "NO",
                  "AU",
                  "NZ",
                  "SG",
                  "IN",
                  "CA",
                  "CA-NB",
                  "CA-NL",
                  "CA-NS",
                  "CA-ON",
                  "CA-PE",
                  "GR",
                  "UK"
                ],
                "type": "string",
                "description": "Use this country's standard rate for every line (see tax/vat-rates for the table). Reduced rates depend on what is sold, so give those as rate_percent. Options: AT: Austria: VAT 20%; BE: Belgium: VAT 21%; BG: Bulgaria: VAT 20%; CY: Cyprus: VAT 19%; CZ: Czechia: VAT 21%; DE: Germany: VAT 19%; DK: Denmark: VAT 25%; EE: Estonia: VAT 24%; EL: Greece: VAT 24%; ES: Spain: VAT 21%; FI: Finland: VAT 25.5%; FR: France: VAT 20%; HR: Croatia: VAT 25%; HU: Hungary: VAT 27%; IE: Ireland: VAT 23%; IT: Italy: VAT 22%; LT: Lithuania: VAT 21%; LU: Luxembourg: VAT 17%; LV: Latvia: VAT 21%; MT: Malta: VAT 18%; NL: Netherlands: VAT 21%; PL: Poland: VAT 23%; PT: Portugal: VAT 23%; RO: Romania: VAT 21%; SE: Sweden: VAT 25%; SI: Slovenia: VAT 22%; SK: Slovakia: VAT 23%; GB: United Kingdom: VAT 20%; CH: Switzerland: VAT (MWST) 8.1%; NO: Norway: VAT (MVA) 25%; AU: Australia: GST 10%; NZ: New Zealand: GST 15%; SG: Singapore: GST 9%; IN: India: GST 18%; CA: Canada (GST only): GST 5%; CA-NB: Canada: New Brunswick: HST 15%; CA-NL: Canada: Newfoundland and Labrador: HST 15%; CA-NS: Canada: Nova Scotia: HST 14%; CA-ON: Canada: Ontario: HST 13%; CA-PE: Canada: Prince Edward Island: HST 15%; GR: the same as EL; UK: the same as GB"
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_up."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_up, decimals=2).",
                "additionalProperties": false
              },
              "rounding": {
                "enum": [
                  "per_rate",
                  "per_line"
                ],
                "type": "string",
                "default": "per_rate",
                "description": "Where the tax is rounded. Options: per_rate: once for each rate, on the sum of that rate's lines (EN 16931, the usual rule for invoices); per_line: on each line, then added up (till receipts, and invoices that print tax per line)"
              },
              "rate_percent": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "description": "One tax rate for every line, in percent (20 for 20%). Allowed: >= 0 and <= 100. Unit: %."
              },
              "rates_percent": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$"
                },
                "examples": [
                  [
                    "25",
                    "25",
                    "0"
                  ]
                ],
                "maxItems": 1000,
                "minItems": 0,
                "description": "The tax rate of each line in percent, one per amount and in the same order. Up to 1000 items. Each item: >= 0 and <= 100. Unit: %."
              },
              "amounts_include_tax": {
                "type": "boolean",
                "default": false,
                "description": "true when the amounts already include the tax, to take it out."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "net_total",
                  "tax_total",
                  "gross_total",
                  "breakdown"
                ],
                "properties": {
                  "lines": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "line",
                        "rate_percent",
                        "net",
                        "tax",
                        "gross"
                      ],
                      "properties": {
                        "net": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Amount without tax. Unit: currency."
                        },
                        "tax": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The tax. Unit: currency."
                        },
                        "line": {
                          "type": "integer",
                          "description": "Line number, starting at 1."
                        },
                        "gross": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Amount with tax: net + tax. Unit: currency."
                        },
                        "rate_percent": {
                          "type": "string",
                          "description": "The tax rate, as given. Unit: %."
                        }
                      }
                    },
                    "description": "One row per line, when rounding is per_line."
                  },
                  "breakdown": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "rate_percent",
                        "net",
                        "tax",
                        "gross"
                      ],
                      "properties": {
                        "net": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Amount without tax. Unit: currency."
                        },
                        "tax": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The tax. Unit: currency."
                        },
                        "gross": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "Amount with tax: net + tax. Unit: currency."
                        },
                        "rate_percent": {
                          "type": "string",
                          "description": "The tax rate, as given. Unit: %."
                        }
                      }
                    },
                    "description": "One row per tax rate, highest rate first."
                  },
                  "net_total": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total without tax. Unit: currency."
                  },
                  "tax_total": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total tax: the sum of the tax of each rate. Unit: currency."
                  },
                  "gross_total": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "Total with tax: net_total + tax_total. Unit: currency."
                  },
                  "rate_source": {
                    "type": "string",
                    "description": "Where the rate comes from, when country was given."
                  },
                  "rate_checked_on": {
                    "type": "string",
                    "format": "date",
                    "description": "The day the rate was last compared with that source."
                  },
                  "rate_source_url": {
                    "type": "string",
                    "description": "The source's address."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "tax/vat@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "VAT and GST calculator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_tax_vat_rates",
          "title": "VAT and GST rates by country",
          "description": "The standard and reduced VAT or GST rates of a country, with the official page they were read from and the day they were last checked.\n\nThe VAT or GST rates of 40 countries and provinces: the 27 EU member states from the European Commission's table, and the United Kingdom, Switzerland, Norway, Australia, New Zealand, Singapore, India and Canada (the federal GST and each province's HST) from the tax authority's own page. Every answer names its source and the day the rate was last compared with it, so you can see how fresh it is. Zero rates, exemptions and regional rates are not listed.",
          "inputSchema": {
            "type": "object",
            "required": [
              "country"
            ],
            "properties": {
              "country": {
                "enum": [
                  "AT",
                  "BE",
                  "BG",
                  "CY",
                  "CZ",
                  "DE",
                  "DK",
                  "EE",
                  "EL",
                  "ES",
                  "FI",
                  "FR",
                  "HR",
                  "HU",
                  "IE",
                  "IT",
                  "LT",
                  "LU",
                  "LV",
                  "MT",
                  "NL",
                  "PL",
                  "PT",
                  "RO",
                  "SE",
                  "SI",
                  "SK",
                  "GB",
                  "CH",
                  "NO",
                  "AU",
                  "NZ",
                  "SG",
                  "IN",
                  "CA",
                  "CA-NB",
                  "CA-NL",
                  "CA-NS",
                  "CA-ON",
                  "CA-PE",
                  "GR",
                  "UK"
                ],
                "type": "string",
                "examples": [
                  "DE"
                ],
                "description": "The country: its two-letter code (EL or GR for Greece, GB or UK for the United Kingdom), or CA- and the province for a Canadian province with HST. Options: AT: Austria: VAT 20%; BE: Belgium: VAT 21%; BG: Bulgaria: VAT 20%; CY: Cyprus: VAT 19%; CZ: Czechia: VAT 21%; DE: Germany: VAT 19%; DK: Denmark: VAT 25%; EE: Estonia: VAT 24%; EL: Greece: VAT 24%; ES: Spain: VAT 21%; FI: Finland: VAT 25.5%; FR: France: VAT 20%; HR: Croatia: VAT 25%; HU: Hungary: VAT 27%; IE: Ireland: VAT 23%; IT: Italy: VAT 22%; LT: Lithuania: VAT 21%; LU: Luxembourg: VAT 17%; LV: Latvia: VAT 21%; MT: Malta: VAT 18%; NL: Netherlands: VAT 21%; PL: Poland: VAT 23%; PT: Portugal: VAT 23%; RO: Romania: VAT 21%; SE: Sweden: VAT 25%; SI: Slovenia: VAT 22%; SK: Slovakia: VAT 23%; GB: United Kingdom: VAT 20%; CH: Switzerland: VAT (MWST) 8.1%; NO: Norway: VAT (MVA) 25%; AU: Australia: GST 10%; NZ: New Zealand: GST 15%; SG: Singapore: GST 9%; IN: India: GST 18%; CA: Canada (GST only): GST 5%; CA-NB: Canada: New Brunswick: HST 15%; CA-NL: Canada: Newfoundland and Labrador: HST 15%; CA-NS: Canada: Nova Scotia: HST 14%; CA-ON: Canada: Ontario: HST 13%; CA-PE: Canada: Prince Edward Island: HST 15%; GR: the same as EL; UK: the same as GB"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [
                  "country",
                  "name",
                  "tax",
                  "standard_rate_percent",
                  "other_rates_percent",
                  "source",
                  "source_url",
                  "checked_on"
                ],
                "properties": {
                  "tax": {
                    "type": "string",
                    "description": "What the tax is called there."
                  },
                  "name": {
                    "type": "string",
                    "description": "The country's name."
                  },
                  "source": {
                    "type": "string",
                    "description": "The official page the rates were read from."
                  },
                  "country": {
                    "type": "string",
                    "description": "The code the rates are listed under."
                  },
                  "checked_on": {
                    "type": "string",
                    "format": "date",
                    "description": "The day the rates were last compared with the source."
                  },
                  "source_url": {
                    "type": "string",
                    "description": "Its address."
                  },
                  "other_rates_percent": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The other rates above zero, lowest first: reduced and super-reduced rates, and for India the 40% rate. Unit: %."
                  },
                  "standard_rate_percent": {
                    "type": "string",
                    "description": "The standard rate. Unit: %."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "tax/vat-rates@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "VAT and GST rates by country",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_units_data_size",
          "title": "Data size converter",
          "description": "Convert between bits, bytes and their decimal (kB, MB) and binary (KiB, MiB) multiples.\n\nConvert between bits, bytes and their decimal (kB, MB) and binary (KiB, MiB) multiples. Conversion factors are exact values from the official unit definitions, so the result is exact before the single final rounding. Leave out to_unit to get the value in every supported unit.",
          "inputSchema": {
            "type": "object",
            "required": [
              "value",
              "from_unit"
            ],
            "properties": {
              "value": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "1"
                ],
                "description": "The amount to convert. Allowed: >= 0."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "to_unit": {
                "enum": [
                  "bit",
                  "B",
                  "kB",
                  "MB",
                  "GB",
                  "TB",
                  "PB",
                  "EB",
                  "ZB",
                  "KiB",
                  "MiB",
                  "GiB",
                  "TiB",
                  "PiB",
                  "EiB",
                  "ZiB",
                  "kbit",
                  "Mbit",
                  "Gbit",
                  "Tbit",
                  "Kibit",
                  "Mibit",
                  "Gibit"
                ],
                "type": "string",
                "examples": [
                  "B"
                ],
                "description": "Unit to convert to. Omit to convert to every unit. Options: bit: bit; B: byte; kB: kilobyte; MB: megabyte; GB: gigabyte; TB: terabyte; PB: petabyte; EB: exabyte; ZB: zettabyte; KiB: kibibyte; MiB: mebibyte; GiB: gibibyte; TiB: tebibyte; PiB: pebibyte; EiB: exbibyte; ZiB: zebibyte; kbit: kilobit; Mbit: megabit; Gbit: gigabit; Tbit: terabit; Kibit: kibibit; Mibit: mebibit; Gibit: gibibit"
              },
              "from_unit": {
                "enum": [
                  "bit",
                  "B",
                  "kB",
                  "MB",
                  "GB",
                  "TB",
                  "PB",
                  "EB",
                  "ZB",
                  "KiB",
                  "MiB",
                  "GiB",
                  "TiB",
                  "PiB",
                  "EiB",
                  "ZiB",
                  "kbit",
                  "Mbit",
                  "Gbit",
                  "Tbit",
                  "Kibit",
                  "Mibit",
                  "Gibit"
                ],
                "type": "string",
                "examples": [
                  "bit"
                ],
                "description": "Unit of the value. Options: bit: bit; B: byte; kB: kilobyte; MB: megabyte; GB: gigabyte; TB: terabyte; PB: petabyte; EB: exabyte; ZB: zettabyte; KiB: kibibyte; MiB: mebibyte; GiB: gibibyte; TiB: tebibyte; PiB: pebibyte; EiB: exbibyte; ZiB: zebibyte; kbit: kilobit; Mbit: megabit; Gbit: gigabit; Tbit: terabit; Kibit: kibibit; Mibit: mebibit; Gibit: gibibit"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [],
                "properties": {
                  "factor": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "How many to_unit make one from_unit (multiply by this to convert)."
                  },
                  "result": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The converted value."
                  },
                  "all_units": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "unit",
                        "name",
                        "value"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Unit name."
                        },
                        "unit": {
                          "type": "string",
                          "description": "Unit code."
                        },
                        "value": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The value in this unit."
                        }
                      }
                    },
                    "description": "The value expressed in every supported unit."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "units/data-size@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Data size converter",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_units_length",
          "title": "Length converter",
          "description": "Convert between metric, imperial/US, nautical and astronomical lengths.\n\nConvert between metric, imperial/US, nautical and astronomical lengths. Conversion factors are exact values from the official unit definitions, so the result is exact before the single final rounding. Leave out to_unit to get the value in every supported unit.",
          "inputSchema": {
            "type": "object",
            "required": [
              "value",
              "from_unit"
            ],
            "properties": {
              "value": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "1"
                ],
                "description": "The amount to convert."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "to_unit": {
                "enum": [
                  "m",
                  "km",
                  "cm",
                  "mm",
                  "um",
                  "nm",
                  "in",
                  "ft",
                  "yd",
                  "mi",
                  "nmi",
                  "mil",
                  "fathom",
                  "chain",
                  "furlong",
                  "ft_us",
                  "au",
                  "ly",
                  "pc"
                ],
                "type": "string",
                "examples": [
                  "km"
                ],
                "description": "Unit to convert to. Omit to convert to every unit. Options: m: metre; km: kilometre; cm: centimetre; mm: millimetre; um: micrometre; nm: nanometre; in: inch; ft: foot; yd: yard; mi: mile; nmi: nautical mile; mil: mil (thou); fathom: fathom; chain: chain; furlong: furlong; ft_us: US survey foot; au: astronomical unit; ly: light-year; pc: parsec"
              },
              "from_unit": {
                "enum": [
                  "m",
                  "km",
                  "cm",
                  "mm",
                  "um",
                  "nm",
                  "in",
                  "ft",
                  "yd",
                  "mi",
                  "nmi",
                  "mil",
                  "fathom",
                  "chain",
                  "furlong",
                  "ft_us",
                  "au",
                  "ly",
                  "pc"
                ],
                "type": "string",
                "examples": [
                  "m"
                ],
                "description": "Unit of the value. Options: m: metre; km: kilometre; cm: centimetre; mm: millimetre; um: micrometre; nm: nanometre; in: inch; ft: foot; yd: yard; mi: mile; nmi: nautical mile; mil: mil (thou); fathom: fathom; chain: chain; furlong: furlong; ft_us: US survey foot; au: astronomical unit; ly: light-year; pc: parsec"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [],
                "properties": {
                  "factor": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "How many to_unit make one from_unit (multiply by this to convert)."
                  },
                  "result": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The converted value."
                  },
                  "all_units": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "unit",
                        "name",
                        "value"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Unit name."
                        },
                        "unit": {
                          "type": "string",
                          "description": "Unit code."
                        },
                        "value": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The value in this unit."
                        }
                      }
                    },
                    "description": "The value expressed in every supported unit."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "units/length@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Length converter",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_units_mass",
          "title": "Mass and weight converter",
          "description": "Convert between metric, avoirdupois (pounds and ounces), troy and carat units.\n\nConvert between metric, avoirdupois (pounds and ounces), troy and carat units. Conversion factors are exact values from the official unit definitions, so the result is exact before the single final rounding. Leave out to_unit to get the value in every supported unit.",
          "inputSchema": {
            "type": "object",
            "required": [
              "value",
              "from_unit"
            ],
            "properties": {
              "value": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "1"
                ],
                "description": "The amount to convert. Allowed: >= 0."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "to_unit": {
                "enum": [
                  "kg",
                  "g",
                  "mg",
                  "ug",
                  "t",
                  "lb",
                  "oz",
                  "st",
                  "short_ton",
                  "long_ton",
                  "gr",
                  "ozt",
                  "lbt",
                  "ct"
                ],
                "type": "string",
                "examples": [
                  "g"
                ],
                "description": "Unit to convert to. Omit to convert to every unit. Options: kg: kilogram; g: gram; mg: milligram; ug: microgram; t: tonne (metric ton); lb: pound (avoirdupois); oz: ounce (avoirdupois); st: stone; short_ton: short ton (US); long_ton: long ton (UK); gr: grain; ozt: troy ounce; lbt: troy pound; ct: carat (metric)"
              },
              "from_unit": {
                "enum": [
                  "kg",
                  "g",
                  "mg",
                  "ug",
                  "t",
                  "lb",
                  "oz",
                  "st",
                  "short_ton",
                  "long_ton",
                  "gr",
                  "ozt",
                  "lbt",
                  "ct"
                ],
                "type": "string",
                "examples": [
                  "kg"
                ],
                "description": "Unit of the value. Options: kg: kilogram; g: gram; mg: milligram; ug: microgram; t: tonne (metric ton); lb: pound (avoirdupois); oz: ounce (avoirdupois); st: stone; short_ton: short ton (US); long_ton: long ton (UK); gr: grain; ozt: troy ounce; lbt: troy pound; ct: carat (metric)"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [],
                "properties": {
                  "factor": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "How many to_unit make one from_unit (multiply by this to convert)."
                  },
                  "result": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The converted value."
                  },
                  "all_units": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "unit",
                        "name",
                        "value"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Unit name."
                        },
                        "unit": {
                          "type": "string",
                          "description": "Unit code."
                        },
                        "value": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The value in this unit."
                        }
                      }
                    },
                    "description": "The value expressed in every supported unit."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "units/mass@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Mass and weight converter",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_units_temperature",
          "title": "Temperature converter",
          "description": "Convert temperatures between Celsius, Fahrenheit, kelvin and Rankine.\n\nConverts a temperature reading, or a temperature difference, between scales. A reading uses the scale offsets (0 °C = 32 °F); a difference does not (a rise of 10 °C is a rise of 18 °F). All factors are exact.",
          "inputSchema": {
            "type": "object",
            "required": [
              "value",
              "from_unit"
            ],
            "properties": {
              "value": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "100"
                ],
                "description": "The temperature (or temperature difference) to convert."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "to_unit": {
                "enum": [
                  "C",
                  "K",
                  "F",
                  "R"
                ],
                "type": "string",
                "examples": [
                  "F"
                ],
                "description": "Scale to convert to. Omit to convert to every scale. Options: C: degree Celsius; K: kelvin; F: degree Fahrenheit; R: degree Rankine"
              },
              "quantity": {
                "enum": [
                  "reading",
                  "difference"
                ],
                "type": "string",
                "default": "reading",
                "description": "Whether the value is a reading or a difference between two readings. Options: reading: a temperature reading, like 20 °C; difference: a change or interval, like a rise of 5 °C"
              },
              "from_unit": {
                "enum": [
                  "C",
                  "K",
                  "F",
                  "R"
                ],
                "type": "string",
                "examples": [
                  "C"
                ],
                "description": "Scale of the value. Options: C: degree Celsius; K: kelvin; F: degree Fahrenheit; R: degree Rankine"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [],
                "properties": {
                  "result": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The converted temperature."
                  },
                  "all_units": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "unit",
                        "name",
                        "value"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Scale name."
                        },
                        "unit": {
                          "type": "string",
                          "description": "Scale code."
                        },
                        "value": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The value on this scale."
                        }
                      }
                    },
                    "description": "The value on every scale."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "units/temperature@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Temperature converter",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "calc_units_volume",
          "title": "Volume converter",
          "description": "Convert between metric, US customary, imperial and cubic units of volume.\n\nConvert between metric, US customary, imperial and cubic units of volume. Conversion factors are exact values from the official unit definitions, so the result is exact before the single final rounding. Leave out to_unit to get the value in every supported unit.",
          "inputSchema": {
            "type": "object",
            "required": [
              "value",
              "from_unit"
            ],
            "properties": {
              "value": {
                "type": "string",
                "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
                "examples": [
                  "1"
                ],
                "description": "The amount to convert. Allowed: >= 0."
              },
              "options": {
                "type": "object",
                "properties": {
                  "decimals": {
                    "type": "integer",
                    "maximum": 20,
                    "minimum": 0,
                    "description": "Round results to this many digits after the decimal point."
                  },
                  "rounding": {
                    "enum": [
                      "half_even",
                      "half_up",
                      "half_down",
                      "up",
                      "down",
                      "ceiling",
                      "floor"
                    ],
                    "type": "string",
                    "description": "Rounding mode applied once to each result. Default half_even."
                  },
                  "significant_digits": {
                    "type": "integer",
                    "maximum": 50,
                    "minimum": 1,
                    "description": "Round results to this many significant digits."
                  }
                },
                "description": "Precision and rounding of the results (default: rounding=half_even, significant_digits=15).",
                "additionalProperties": false
              },
              "to_unit": {
                "enum": [
                  "m3",
                  "l",
                  "ml",
                  "cm3",
                  "in3",
                  "ft3",
                  "yd3",
                  "gal_us",
                  "qt_us",
                  "pt_us",
                  "cup_us",
                  "cup_us_legal",
                  "floz_us",
                  "tbsp_us",
                  "tsp_us",
                  "bbl_oil",
                  "gal_imp",
                  "qt_imp",
                  "pt_imp",
                  "floz_imp"
                ],
                "type": "string",
                "examples": [
                  "l"
                ],
                "description": "Unit to convert to. Omit to convert to every unit. Options: m3: cubic metre; l: litre; ml: millilitre; cm3: cubic centimetre; in3: cubic inch; ft3: cubic foot; yd3: cubic yard; gal_us: US gallon; qt_us: US liquid quart; pt_us: US liquid pint; cup_us: US customary cup; cup_us_legal: US legal cup (nutrition labels); floz_us: US fluid ounce; tbsp_us: US tablespoon; tsp_us: US teaspoon; bbl_oil: oil barrel; gal_imp: imperial gallon; qt_imp: imperial quart; pt_imp: imperial pint; floz_imp: imperial fluid ounce"
              },
              "from_unit": {
                "enum": [
                  "m3",
                  "l",
                  "ml",
                  "cm3",
                  "in3",
                  "ft3",
                  "yd3",
                  "gal_us",
                  "qt_us",
                  "pt_us",
                  "cup_us",
                  "cup_us_legal",
                  "floz_us",
                  "tbsp_us",
                  "tsp_us",
                  "bbl_oil",
                  "gal_imp",
                  "qt_imp",
                  "pt_imp",
                  "floz_imp"
                ],
                "type": "string",
                "examples": [
                  "m3"
                ],
                "description": "Unit of the value. Options: m3: cubic metre; l: litre; ml: millilitre; cm3: cubic centimetre; in3: cubic inch; ft3: cubic foot; yd3: cubic yard; gal_us: US gallon; qt_us: US liquid quart; pt_us: US liquid pint; cup_us: US customary cup; cup_us_legal: US legal cup (nutrition labels); floz_us: US fluid ounce; tbsp_us: US tablespoon; tsp_us: US teaspoon; bbl_oil: oil barrel; gal_imp: imperial gallon; qt_imp: imperial quart; pt_imp: imperial pint; floz_imp: imperial fluid ounce"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "calculator",
              "result",
              "exactness",
              "inputs",
              "warnings"
            ],
            "properties": {
              "inputs": {
                "type": "object",
                "description": "The inputs as understood."
              },
              "result": {
                "type": "object",
                "required": [],
                "properties": {
                  "factor": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "How many to_unit make one from_unit (multiply by this to convert)."
                  },
                  "result": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "description": "The converted value."
                  },
                  "all_units": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "unit",
                        "name",
                        "value"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Unit name."
                        },
                        "unit": {
                          "type": "string",
                          "description": "Unit code."
                        },
                        "value": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$",
                          "description": "The value in this unit."
                        }
                      }
                    },
                    "description": "The value expressed in every supported unit."
                  }
                }
              },
              "formula": {
                "type": "string"
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "exactness": {
                "type": "object",
                "description": "For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0).",
                "additionalProperties": {
                  "enum": [
                    "exact",
                    "rounded",
                    "rounded_uncertified",
                    "underflow"
                  ],
                  "type": "string"
                }
              },
              "precision": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The precision and rounding that were applied."
              },
              "calculator": {
                "type": "string",
                "examples": [
                  "units/volume@1"
                ],
                "description": "The calculator and version that ran."
              },
              "references": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "annotations": {
            "title": "Volume converter",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_einvoice_en16931",
          "title": "EN 16931 validator (UBL and CII)",
          "description": "Check a UBL or CII invoice against the European e-invoicing standard EN 16931 with CEN's official rules.\n\nRuns the UBL 2.1 or UN/CEFACT CII D16B schema and then CEN/TC 434's own validation artefacts: the business rules (BR-…), calculation rules (BR-CO-…), VAT rules and code lists of EN 16931-1. The syntax is detected from the document. Country rules (CIUS) such as XRechnung or Peppol BIS are separate endpoints.",
          "inputSchema": {
            "type": "object",
            "required": [
              "xml"
            ],
            "properties": {
              "xml": {
                "type": "string",
                "maxLength": 4194304,
                "description": "The invoice XML, as text."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "validator",
              "result",
              "rules"
            ],
            "properties": {
              "rules": {
                "type": "array",
                "items": {
                  "type": "object"
                },
                "description": "The official artefacts used: name, version and source."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "scenario",
                  "errors",
                  "warnings",
                  "notices",
                  "error_rules",
                  "checks",
                  "messages",
                  "messages_truncated"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean",
                    "description": "true when the document matched a scenario and no check reported an error."
                  },
                  "checks": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Each check in the order it ran, and whether it passed (a schema failure skips the rules, as in KoSIT's validator)."
                  },
                  "errors": {
                    "type": "integer",
                    "description": "Messages at level error."
                  },
                  "notices": {
                    "type": "integer",
                    "description": "Messages at level information."
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "rule",
                        "level",
                        "message",
                        "check"
                      ],
                      "properties": {
                        "line": {
                          "type": "integer",
                          "description": "Line in the document, for syntax and schema errors."
                        },
                        "rule": {
                          "type": "string",
                          "description": "The rule's ID, e.g. BR-CO-10, or XSD for a schema error."
                        },
                        "check": {
                          "type": "string",
                          "description": "The check (schema or rule set) that reported it."
                        },
                        "level": {
                          "enum": [
                            "error",
                            "warning",
                            "information"
                          ],
                          "type": "string"
                        },
                        "message": {
                          "type": "string",
                          "description": "The rule owner's own wording."
                        },
                        "location": {
                          "type": "string",
                          "description": "XPath of the element concerned, when given."
                        }
                      }
                    },
                    "description": "Up to 500 findings."
                  },
                  "scenario": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which set of rules applied, chosen from the document's own type and specification ID; null when none applies."
                  },
                  "warnings": {
                    "type": "integer",
                    "description": "Messages at level warning."
                  },
                  "error_rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The distinct rules that reported an error, sorted."
                  },
                  "document_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "UBL Invoice, UBL CreditNote or UN/CEFACT CII."
                  },
                  "specification_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The CustomizationID (UBL) or guideline ID (CII), BT-24, as found."
                  },
                  "messages_truncated": {
                    "type": "boolean"
                  }
                }
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "validator": {
                "type": "string",
                "examples": [
                  "einvoice/en16931@1"
                ],
                "description": "The validator and version that ran."
              }
            }
          },
          "annotations": {
            "title": "EN 16931 validator (UBL and CII)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_einvoice_peppol_bis",
          "title": "Peppol BIS 3.0 invoice validator",
          "description": "Check a UBL invoice or credit note against Peppol BIS Billing 3.0 with OpenPeppol's official rules.\n\nRuns the UBL 2.1 schema, the EN 16931 rules in the copy Peppol ships, and the Peppol BIS Billing 3.0 rules (PEPPOL-EN16931-R…, country rules for Norway, Denmark, Italy, Sweden, Greece, Iceland, the Netherlands and Germany). Peppol BIS 3.0 documents are UBL only.",
          "inputSchema": {
            "type": "object",
            "required": [
              "xml"
            ],
            "properties": {
              "xml": {
                "type": "string",
                "maxLength": 4194304,
                "description": "The invoice XML, as text."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "validator",
              "result",
              "rules"
            ],
            "properties": {
              "rules": {
                "type": "array",
                "items": {
                  "type": "object"
                },
                "description": "The official artefacts used: name, version and source."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "scenario",
                  "errors",
                  "warnings",
                  "notices",
                  "error_rules",
                  "checks",
                  "messages",
                  "messages_truncated"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean",
                    "description": "true when the document matched a scenario and no check reported an error."
                  },
                  "checks": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Each check in the order it ran, and whether it passed (a schema failure skips the rules, as in KoSIT's validator)."
                  },
                  "errors": {
                    "type": "integer",
                    "description": "Messages at level error."
                  },
                  "notices": {
                    "type": "integer",
                    "description": "Messages at level information."
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "rule",
                        "level",
                        "message",
                        "check"
                      ],
                      "properties": {
                        "line": {
                          "type": "integer",
                          "description": "Line in the document, for syntax and schema errors."
                        },
                        "rule": {
                          "type": "string",
                          "description": "The rule's ID, e.g. BR-CO-10, or XSD for a schema error."
                        },
                        "check": {
                          "type": "string",
                          "description": "The check (schema or rule set) that reported it."
                        },
                        "level": {
                          "enum": [
                            "error",
                            "warning",
                            "information"
                          ],
                          "type": "string"
                        },
                        "message": {
                          "type": "string",
                          "description": "The rule owner's own wording."
                        },
                        "location": {
                          "type": "string",
                          "description": "XPath of the element concerned, when given."
                        }
                      }
                    },
                    "description": "Up to 500 findings."
                  },
                  "scenario": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which set of rules applied, chosen from the document's own type and specification ID; null when none applies."
                  },
                  "warnings": {
                    "type": "integer",
                    "description": "Messages at level warning."
                  },
                  "error_rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The distinct rules that reported an error, sorted."
                  },
                  "document_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "UBL Invoice, UBL CreditNote or UN/CEFACT CII."
                  },
                  "specification_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The CustomizationID (UBL) or guideline ID (CII), BT-24, as found."
                  },
                  "messages_truncated": {
                    "type": "boolean"
                  }
                }
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "validator": {
                "type": "string",
                "examples": [
                  "einvoice/peppol-bis@1"
                ],
                "description": "The validator and version that ran."
              }
            }
          },
          "annotations": {
            "title": "Peppol BIS 3.0 invoice validator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_einvoice_xrechnung",
          "title": "XRechnung validator (KoSIT rules)",
          "description": "Check an XRechnung 3.0 invoice the way German public buyers do, with KoSIT's official validator configuration.\n\nUses KoSIT's validator configuration for XRechnung unchanged: its scenarios choose the rules from the document's type and specification ID, then the UBL or CII schema, the EN 16931 rules and the XRechnung rules (BR-DE-…) run, with KoSIT's custom levels. The decision is KoSIT's: valid means no error.",
          "inputSchema": {
            "type": "object",
            "required": [
              "xml"
            ],
            "properties": {
              "xml": {
                "type": "string",
                "maxLength": 4194304,
                "description": "The invoice XML, as text."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "validator",
              "result",
              "rules"
            ],
            "properties": {
              "rules": {
                "type": "array",
                "items": {
                  "type": "object"
                },
                "description": "The official artefacts used: name, version and source."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "scenario",
                  "errors",
                  "warnings",
                  "notices",
                  "error_rules",
                  "checks",
                  "messages",
                  "messages_truncated"
                ],
                "properties": {
                  "valid": {
                    "type": "boolean",
                    "description": "true when the document matched a scenario and no check reported an error."
                  },
                  "checks": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Each check in the order it ran, and whether it passed (a schema failure skips the rules, as in KoSIT's validator)."
                  },
                  "errors": {
                    "type": "integer",
                    "description": "Messages at level error."
                  },
                  "notices": {
                    "type": "integer",
                    "description": "Messages at level information."
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "rule",
                        "level",
                        "message",
                        "check"
                      ],
                      "properties": {
                        "line": {
                          "type": "integer",
                          "description": "Line in the document, for syntax and schema errors."
                        },
                        "rule": {
                          "type": "string",
                          "description": "The rule's ID, e.g. BR-CO-10, or XSD for a schema error."
                        },
                        "check": {
                          "type": "string",
                          "description": "The check (schema or rule set) that reported it."
                        },
                        "level": {
                          "enum": [
                            "error",
                            "warning",
                            "information"
                          ],
                          "type": "string"
                        },
                        "message": {
                          "type": "string",
                          "description": "The rule owner's own wording."
                        },
                        "location": {
                          "type": "string",
                          "description": "XPath of the element concerned, when given."
                        }
                      }
                    },
                    "description": "Up to 500 findings."
                  },
                  "scenario": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which set of rules applied, chosen from the document's own type and specification ID; null when none applies."
                  },
                  "warnings": {
                    "type": "integer",
                    "description": "Messages at level warning."
                  },
                  "error_rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The distinct rules that reported an error, sorted."
                  },
                  "document_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "UBL Invoice, UBL CreditNote or UN/CEFACT CII."
                  },
                  "specification_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The CustomizationID (UBL) or guideline ID (CII), BT-24, as found."
                  },
                  "messages_truncated": {
                    "type": "boolean"
                  }
                }
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "validator": {
                "type": "string",
                "examples": [
                  "einvoice/xrechnung@1"
                ],
                "description": "The validator and version that ran."
              }
            }
          },
          "annotations": {
            "title": "XRechnung validator (KoSIT rules)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "validate_einvoice_factur_x",
          "title": "Factur-X / ZUGFeRD validator",
          "description": "Check a Factur-X or ZUGFeRD 2 invoice, as a PDF or its XML, against the rules for its profile.\n\nTakes the PDF (base64) or the CII XML. From a PDF the embedded factur-x.xml, zugferd-invoice.xml or xrechnung.xml is read, with the profile the PDF's XMP metadata names. The profile comes from the guideline ID (BT-24): MINIMUM, BASIC WL, BASIC, EN 16931 and EXTENDED use the Factur-X 1.09.2 / ZUGFeRD 2.5 schema and Schematron for that profile; XRECHNUNG uses KoSIT's rules.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "pdf": {
                "type": "string",
                "description": "The Factur-X or ZUGFeRD PDF, base64-encoded (at most 6 MiB).",
                "contentEncoding": "base64"
              },
              "xml": {
                "type": "string",
                "maxLength": 4194304,
                "description": "Or the CII invoice XML, as text."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "validator",
              "result",
              "rules"
            ],
            "properties": {
              "rules": {
                "type": "array",
                "items": {
                  "type": "object"
                },
                "description": "The official artefacts used: name, version and source."
              },
              "result": {
                "type": "object",
                "required": [
                  "valid",
                  "scenario",
                  "errors",
                  "warnings",
                  "notices",
                  "error_rules",
                  "checks",
                  "messages",
                  "messages_truncated"
                ],
                "properties": {
                  "pdf": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "For a PDF: the embedded file's name, the XMP ConformanceLevel and pdfa_checked (always false)."
                  },
                  "valid": {
                    "type": "boolean",
                    "description": "true when the document matched a scenario and no check reported an error."
                  },
                  "checks": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Each check in the order it ran, and whether it passed (a schema failure skips the rules, as in KoSIT's validator)."
                  },
                  "errors": {
                    "type": "integer",
                    "description": "Messages at level error."
                  },
                  "notices": {
                    "type": "integer",
                    "description": "Messages at level information."
                  },
                  "profile": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "MINIMUM, BASIC WL, BASIC, EN 16931, EXTENDED or XRECHNUNG."
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "rule",
                        "level",
                        "message",
                        "check"
                      ],
                      "properties": {
                        "line": {
                          "type": "integer",
                          "description": "Line in the document, for syntax and schema errors."
                        },
                        "rule": {
                          "type": "string",
                          "description": "The rule's ID, e.g. BR-CO-10, or XSD for a schema error."
                        },
                        "check": {
                          "type": "string",
                          "description": "The check (schema or rule set) that reported it."
                        },
                        "level": {
                          "enum": [
                            "error",
                            "warning",
                            "information"
                          ],
                          "type": "string"
                        },
                        "message": {
                          "type": "string",
                          "description": "The rule owner's own wording."
                        },
                        "location": {
                          "type": "string",
                          "description": "XPath of the element concerned, when given."
                        }
                      }
                    },
                    "description": "Up to 500 findings."
                  },
                  "scenario": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which set of rules applied, chosen from the document's own type and specification ID; null when none applies."
                  },
                  "warnings": {
                    "type": "integer",
                    "description": "Messages at level warning."
                  },
                  "error_rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The distinct rules that reported an error, sorted."
                  },
                  "document_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "UBL Invoice, UBL CreditNote or UN/CEFACT CII."
                  },
                  "specification_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The CustomizationID (UBL) or guideline ID (CII), BT-24, as found."
                  },
                  "messages_truncated": {
                    "type": "boolean"
                  }
                }
              },
              "receipt": {
                "type": "string",
                "description": "Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify."
              },
              "validator": {
                "type": "string",
                "examples": [
                  "einvoice/factur-x@1"
                ],
                "description": "The validator and version that ran."
              }
            }
          },
          "annotations": {
            "title": "Factur-X / ZUGFeRD validator",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "Exact calculators: finance (loans, mortgages, interest, NPV, IRR, ROI, regulated APR for US Regulation Z and EU/UK APRC), billing (tiered pricing, proration, stacked discounts), money (ISO 4217 currency and cash rounding, splitting without losing a cent), late-payment interest (UK, EU, Germany, India MSME, US Prompt Payment), Excel-compatible functions (PMT, XIRR, YEARFRAC and more), lease accounting (IFRS 16, ASC 842) and depreciation (MACRS, India), dates, units, math and everyday tools. Results are computed with exact or certified arithmetic and rounded once, as documented per tool. Pass numbers as strings (\"0.1\") to keep every digit. Each result says which calculator version ran, the formula, its references and whether each value is exact or rounded. E-invoice validators (EN 16931, Peppol BIS, XRechnung, Factur-X/ZUGFeRD) run the rule owners' official rules on an invoice and list every rule it breaks."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}