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/investment-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/investment-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.
initial_investment· number · required- Enter the initial investment 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.
years· number · required- Enter the investment period used in the calculation.
{
"type": "object",
"properties": {
"initial_investment": {
"type": "number",
"description": "Enter the initial investment 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."
},
"years": {
"type": "number",
"description": "Enter the investment period used in the calculation.",
"minimum": 1,
"maximum": 80
}
},
"required": [
"initial_investment",
"monthly_contribution",
"annual_return",
"years"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
future_value· number- Estimated future value produced by the calculation.
total_contributions· number- Total contributions produced by the calculation.
investment_growth· number- Estimated growth produced by the calculation.
return_percent· number- Growth on contributions produced by the calculation.
{
"type": "object",
"properties": {
"future_value": {
"type": "number",
"description": "Estimated future value produced by the calculation."
},
"total_contributions": {
"type": "number",
"description": "Total contributions produced by the calculation."
},
"investment_growth": {
"type": "number",
"description": "Estimated growth produced by the calculation."
},
"return_percent": {
"type": "number",
"description": "Growth on contributions produced by the calculation."
}
},
"additionalProperties": false
}
Investment 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/investment-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"initial_investment": 10000,
"monthly_contribution": 500,
"annual_return": 7,
"years": 20
}'
{
"ok": true,
"data": {
"slug": "investment-calculator",
"result": {
"values": {
"future_value": 300850.71999999997206032276153564453125,
"total_contributions": 130000,
"investment_growth": 170850.72000000000116415321826934814453125,
"return_percent": 131.419999999999987494447850622236728668212890625
},
"display": {
"display": "300850.72"
},
"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.