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/retirement-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/retirement-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.
current_age· number · required- Enter the current age used in the calculation.
retirement_age· number · required- Enter the retirement age used in the calculation.
current_savings· number · required- Enter the current retirement savings used in the calculation.
monthly_contribution· number · required- Enter the monthly contribution used in the calculation.
annual_return· number · required- Enter the expected annual return used in the calculation.
retirement_goal· number · required- Enter the retirement savings goal used in the calculation.
{
"type": "object",
"properties": {
"current_age": {
"type": "number",
"description": "Enter the current age used in the calculation.",
"minimum": 18,
"maximum": 90
},
"retirement_age": {
"type": "number",
"description": "Enter the retirement age used in the calculation.",
"minimum": 19,
"maximum": 100
},
"current_savings": {
"type": "number",
"description": "Enter the current retirement savings used in the calculation.",
"minimum": 0
},
"monthly_contribution": {
"type": "number",
"description": "Enter the monthly contribution used in the calculation.",
"minimum": 0
},
"annual_return": {
"type": "number",
"description": "Enter the expected annual return used in the calculation."
},
"retirement_goal": {
"type": "number",
"description": "Enter the retirement savings goal used in the calculation.",
"minimum": 0
}
},
"required": [
"current_age",
"retirement_age",
"current_savings",
"monthly_contribution",
"annual_return",
"retirement_goal"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
projected_balance· number- Projected balance produced by the calculation.
total_contributions· number- Total contributed produced by the calculation.
investment_growth· number- Estimated investment growth produced by the calculation.
goal_gap· number- Goal surplus or gap produced by the calculation.
{
"type": "object",
"properties": {
"projected_balance": {
"type": "number",
"description": "Projected balance produced by the calculation."
},
"total_contributions": {
"type": "number",
"description": "Total contributed produced by the calculation."
},
"investment_growth": {
"type": "number",
"description": "Estimated investment growth produced by the calculation."
},
"goal_gap": {
"type": "number",
"description": "Goal surplus or gap produced by the calculation."
}
},
"additionalProperties": false
}
Retirement Calculator 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/retirement-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"current_age": 35,
"retirement_age": 67,
"current_savings": 75000,
"monthly_contribution": 750,
"annual_return": 6,
"retirement_goal": 1200000
}'
{
"ok": true,
"data": {
"slug": "retirement-calculator",
"result": {
"values": {
"projected_balance": 1377391.0200000000186264514923095703125,
"total_contributions": 363000,
"investment_growth": 1014391.0200000000186264514923095703125,
"goal_gap": 177391.01999999998952262103557586669921875
},
"display": {
"display": "1377391.02"
},
"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.