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/cd-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/cd-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.
deposit· number · required- Enter initial deposit.
annual_rate· number · required- Enter annual percentage yield.
term_months· number · required- Enter term.
compounding· string · required-
Enter compounding. Accepted values:
daily, monthly, quarterly, annually.
{
"type": "object",
"properties": {
"deposit": {
"type": "number",
"description": "Enter initial deposit."
},
"annual_rate": {
"type": "number",
"description": "Enter annual percentage yield."
},
"term_months": {
"type": "number",
"description": "Enter term."
},
"compounding": {
"type": "string",
"description": "Enter compounding.",
"enum": [
"daily",
"monthly",
"quarterly",
"annually"
]
}
},
"required": [
"deposit",
"annual_rate",
"term_months",
"compounding"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
ending_balance· number- Ending balance produced by the tool.
interest_earned· number- Interest earned produced by the tool.
effective_yield· number- Effective yield produced by the tool.
{
"type": "object",
"properties": {
"ending_balance": {
"type": "number",
"description": "Ending balance produced by the tool."
},
"interest_earned": {
"type": "number",
"description": "Interest earned produced by the tool."
},
"effective_yield": {
"type": "number",
"description": "Effective yield produced by the tool."
}
},
"additionalProperties": false
}
CD 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/cd-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"deposit": 20000,
"annual_rate": 4.5,
"term_months": 18,
"compounding": "monthly"
}'
{
"ok": true,
"data": {
"slug": "cd-calculator",
"result": {
"values": {
"ending_balance": 21393.9000000000014551915228366851806640625,
"interest_earned": 1393.90000000000009094947017729282379150390625,
"effective_yield": 6.9695210000000002992237568832933902740478515625
},
"display": {
"display": "21393.9"
},
"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.