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/toll-cost-estimator
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/toll-cost-estimator/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.
distance· number · required- Enter distance.
fuel_efficiency· number · required- Enter fuel efficiency.
unit_rate· number · required- Enter fare, fuel, or toll rate.
stops· number · required- Enter stops.
{
"type": "object",
"properties": {
"distance": {
"type": "number",
"description": "Enter distance."
},
"fuel_efficiency": {
"type": "number",
"description": "Enter fuel efficiency."
},
"unit_rate": {
"type": "number",
"description": "Enter fare, fuel, or toll rate."
},
"stops": {
"type": "number",
"description": "Enter stops."
}
},
"required": [
"distance",
"fuel_efficiency",
"unit_rate",
"stops"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
estimated_total· number- Estimated total produced by the tool.
distance_cost· number- Distance cost produced by the tool.
plan· array- Route or fare plan produced by the tool.
{
"type": "object",
"properties": {
"estimated_total": {
"type": "number",
"description": "Estimated total produced by the tool."
},
"distance_cost": {
"type": "number",
"description": "Distance cost produced by the tool."
},
"plan": {
"type": "array",
"description": "Route or fare plan produced by the tool."
}
},
"additionalProperties": false
}
Toll Cost Estimator 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/toll-cost-estimator/execute" \
-H "Content-Type: application/json" \
-d '{
"distance": 320,
"fuel_efficiency": 28,
"unit_rate": 3.45000000000000017763568394002504646778106689453125,
"stops": 2
}'
{
"ok": true,
"data": {
"slug": "toll-cost-estimator",
"result": {
"values": {
"estimated_total": 46.3299999999999982946974341757595539093017578125,
"distance_cost": 39.42999999999999971578290569595992565155029296875,
"plan": [
{
"stop": 1,
"distance": 106.7000000000000028421709430404007434844970703125
},
{
"stop": 2,
"distance": 213.30000000000001136868377216160297393798828125
}
]
},
"display": {
"display": "46.33"
},
"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.