Overview
- Category
- Travel & Auto
- 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/vehicle-range-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/vehicle-range-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.
vehicle_type· string · required-
Enter vehicle type. Accepted values:
ev, fuel. usable_capacity· number · required- Enter usable battery or fuel capacity.
efficiency· number · required- Enter efficiency.
reserve· number · required- Enter reserve.
condition_adjustment· number · required- Enter condition adjustment.
{
"type": "object",
"properties": {
"vehicle_type": {
"type": "string",
"description": "Enter vehicle type.",
"enum": [
"ev",
"fuel"
]
},
"usable_capacity": {
"type": "number",
"description": "Enter usable battery or fuel capacity."
},
"efficiency": {
"type": "number",
"description": "Enter efficiency."
},
"reserve": {
"type": "number",
"description": "Enter reserve."
},
"condition_adjustment": {
"type": "number",
"description": "Enter condition adjustment."
}
},
"required": [
"vehicle_type",
"usable_capacity",
"efficiency",
"reserve",
"condition_adjustment"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
estimated_range· number- Estimated range produced by the tool.
usable_after_reserve· number- Usable capacity after reserve produced by the tool.
base_range· number- Base range produced by the tool.
planning_band· string- Planning range produced by the tool.
{
"type": "object",
"properties": {
"estimated_range": {
"type": "number",
"description": "Estimated range produced by the tool."
},
"usable_after_reserve": {
"type": "number",
"description": "Usable capacity after reserve produced by the tool."
},
"base_range": {
"type": "number",
"description": "Base range produced by the tool."
},
"planning_band": {
"type": "string",
"description": "Planning range produced by the tool."
}
},
"additionalProperties": false
}
Vehicle Range 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/vehicle-range-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"vehicle_type": "ev",
"usable_capacity": 72,
"efficiency": 3.399999999999999911182158029987476766109466552734375,
"reserve": 10,
"condition_adjustment": -8
}'
{
"ok": true,
"data": {
"slug": "vehicle-range-calculator",
"result": {
"values": {
"estimated_range": 202.68999999999999772626324556767940521240234375,
"usable_after_reserve": 64.7999999999999971578290569595992565155029296875,
"base_range": 220.31999999999999317878973670303821563720703125,
"planning_band": "172.3–212.8"
},
"display": {
"display": "202.69"
},
"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.