Overview
- Category
- Finance
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/annuity-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/annuity-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
periodic_payment· number · required- Enter periodic payment for this calculation.
annual_rate· number · required- Enter annual return for this calculation.
years· number · required- Enter years for this calculation.
frequency· string · required-
Enter payment frequency for this calculation. Accepted values:
12, 4, 1. timing· string · required-
Enter payment timing for this calculation. Accepted values:
end, beginning.
{
"type": "object",
"properties": {
"periodic_payment": {
"type": "number",
"description": "Enter periodic payment for this calculation.",
"minimum": 0
},
"annual_rate": {
"type": "number",
"description": "Enter annual return for this calculation."
},
"years": {
"type": "number",
"description": "Enter years for this calculation.",
"minimum": 1
},
"frequency": {
"type": "string",
"description": "Enter payment frequency for this calculation.",
"enum": [
"12",
"4",
"1"
]
},
"timing": {
"type": "string",
"description": "Enter payment timing for this calculation.",
"enum": [
"end",
"beginning"
]
}
},
"required": [
"periodic_payment",
"annual_rate",
"years",
"frequency",
"timing"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
future_value· number- Future value calculated by the tool.
total_payments· number- Total payments calculated by the tool.
growth· number- Projected growth calculated by the tool.
{
"type": "object",
"properties": {
"future_value": {
"type": "number",
"description": "Future value calculated by the tool."
},
"total_payments": {
"type": "number",
"description": "Total payments calculated by the tool."
},
"growth": {
"type": "number",
"description": "Projected growth calculated by the tool."
}
},
"additionalProperties": false
}
Annuity Calculator worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/annuity-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"periodic_payment": 500,
"annual_rate": 5,
"years": 20,
"frequency": "12",
"timing": "end"
}'
{
"ok": true,
"data": {
"slug": "annuity-calculator",
"result": {
"values": {
"future_value": 205516.82999999998719431459903717041015625,
"total_payments": 120000,
"growth": 85516.830000000001746229827404022216796875
},
"display": {
"display": "205516.83"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.