Overview
- Category
- Math
- 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/fibonacci-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/fibonacci-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.
term· number · required- Enter term number for this calculation.
sequence_length· number · required- Enter sequence rows for this calculation.
{
"type": "object",
"properties": {
"term": {
"type": "number",
"description": "Enter term number for this calculation.",
"minimum": 0,
"maximum": 1000
},
"sequence_length": {
"type": "number",
"description": "Enter sequence rows for this calculation.",
"minimum": 1,
"maximum": 100
}
},
"required": [
"term",
"sequence_length"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
term_value· string- Selected Fibonacci value calculated by the tool.
previous_value· string- Previous value calculated by the tool.
ratio_to_previous· number- Ratio to previous calculated by the tool.
sequence· array- Sequence calculated by the tool.
{
"type": "object",
"properties": {
"term_value": {
"type": "string",
"description": "Selected Fibonacci value calculated by the tool."
},
"previous_value": {
"type": "string",
"description": "Previous value calculated by the tool."
},
"ratio_to_previous": {
"type": "number",
"description": "Ratio to previous calculated by the tool."
},
"sequence": {
"type": "array",
"description": "Sequence calculated by the tool."
}
},
"additionalProperties": false
}
Fibonacci 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/fibonacci-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"term": 20,
"sequence_length": 20
}'
{
"ok": true,
"data": {
"slug": "fibonacci-calculator",
"result": {
"values": {
"term_value": "6765",
"previous_value": "4181",
"ratio_to_previous": 1.6180339999999999722746224506408907473087310791015625,
"sequence": [
{
"term": 0,
"value": "0"
},
{
"term": 1,
"value": "1"
},
{
"term": 2,
"value": "1"
},
{
"term": 3,
"value": "2"
},
{
"term": 4,
"value": "3"
},
{
"term": 5,
"value": "5"
},
{
"term": 6,
"value": "8"
},
{
"term": 7,
"value": "13"
}
]
},
"display": {
"display": "6765"
},
"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.