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/roth-ira-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/roth-ira-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_balance· number · required- Enter current balance for this calculation.
annual_contribution· number · required- Enter annual contribution for this calculation.
annual_return· number · required- Enter annual return for this calculation.
years· number · required- Enter years for this calculation.
{
"type": "object",
"properties": {
"current_balance": {
"type": "number",
"description": "Enter current balance for this calculation.",
"minimum": 0
},
"annual_contribution": {
"type": "number",
"description": "Enter annual contribution for this calculation.",
"minimum": 0
},
"annual_return": {
"type": "number",
"description": "Enter annual return for this calculation."
},
"years": {
"type": "number",
"description": "Enter years for this calculation.",
"minimum": 1
}
},
"required": [
"current_balance",
"annual_contribution",
"annual_return",
"years"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
future_value· number- Projected balance calculated by the tool.
total_contributions· number- Total contributions calculated by the tool.
investment_growth· number- Projected growth calculated by the tool.
timeline· array- Annual timeline calculated by the tool.
{
"type": "object",
"properties": {
"future_value": {
"type": "number",
"description": "Projected balance calculated by the tool."
},
"total_contributions": {
"type": "number",
"description": "Total contributions calculated by the tool."
},
"investment_growth": {
"type": "number",
"description": "Projected growth calculated by the tool."
},
"timeline": {
"type": "array",
"description": "Annual timeline calculated by the tool."
}
},
"additionalProperties": false
}
Roth IRA 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/roth-ira-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"current_balance": 25000,
"annual_contribution": 7000,
"annual_return": 7,
"years": 25
}'
{
"ok": true,
"data": {
"slug": "roth-ira-calculator",
"result": {
"values": {
"future_value": 578429.079999999958090484142303466796875,
"total_contributions": 200000,
"investment_growth": 378429.0800000000162981450557708740234375,
"timeline": [
{
"year": 1,
"balance": 33750
},
{
"year": 2,
"balance": 43112.5
},
{
"year": 3,
"balance": 53130.3799999999973806552588939666748046875
},
{
"year": 4,
"balance": 63849.5
},
{
"year": 5,
"balance": 75318.97000000000116415321826934814453125
},
{
"year": 6,
"balance": 87591.289999999993597157299518585205078125
},
{
"year": 7,
"balance": 100722.6799999999930150806903839111328125
},
{
"year": 8,
"balance": 114773.270000000004074536263942718505859375
}
]
},
"display": {
"display": "578429.08"
},
"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.