Jp Mortgage
jp_mortgageMortgage schedules (level payment/principal), total interest, prepayment effect. $0.005/call. Deterministic, cites primary sources; errors and unverified rules are never billed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"principal_yen": "<principal_yen>",
"annual_rate": "<annual_rate>",
"months": "<months>"
},
"name": "jp_mortgage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | One of: level_payment, level_principal. Cost method: total_average or moving_average | level_payment |
| months | Yes | Loan term in months | |
| x_payment | No | Optional: base64 X-PAYMENT header value (x402 exact scheme, USDC on Base mainnet). Omit it to receive the payment requirements (accepts[] + docs) for this call without being charged. | |
| prepayment | No | Optional prepayment {at_month, amount_yen, mode: reduce_term|reduce_payment} | |
| annual_rate | Yes | Annual interest rate as a decimal, e.g. 0.01 | |
| principal_yen | Yes | Loan principal in yen |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | JSON body of the underlying call (see /samples/{product} for each product's shape) | |
| status | Yes | HTTP status of the underlying call (200 result, 402 payment terms, 4xx input error) | |
| how_to_pay | No | ||
| receipt_id | No | set on paid results; free re-fetch via get_receipt | |
| payment_required | No | true when status is 402: body holds x402 payment terms, not a result. Pay and call again with x_payment |