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/ev-charging-cost-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/ev-charging-cost-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.
battery_added· number · required- Enter battery energy added.
charging_efficiency· number · required- Enter charging efficiency.
electricity_rate· number · required- Enter electricity rate per kwh.
session_fee· number · required- Enter session fee.
{
"type": "object",
"properties": {
"battery_added": {
"type": "number",
"description": "Enter battery energy added."
},
"charging_efficiency": {
"type": "number",
"description": "Enter charging efficiency."
},
"electricity_rate": {
"type": "number",
"description": "Enter electricity rate per kwh.",
"minimum": 0
},
"session_fee": {
"type": "number",
"description": "Enter session fee.",
"minimum": 0
}
},
"required": [
"battery_added",
"charging_efficiency",
"electricity_rate",
"session_fee"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
grid_energy· number- Grid energy produced by the tool.
energy_cost· number- Energy cost produced by the tool.
total_cost· number- Total charging cost produced by the tool.
{
"type": "object",
"properties": {
"grid_energy": {
"type": "number",
"description": "Grid energy produced by the tool."
},
"energy_cost": {
"type": "number",
"description": "Energy cost produced by the tool."
},
"total_cost": {
"type": "number",
"description": "Total charging cost produced by the tool."
}
},
"additionalProperties": false
}
EV Charging Cost 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/ev-charging-cost-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"battery_added": 52,
"charging_efficiency": 88,
"electricity_rate": 0.1700000000000000122124532708767219446599483489990234375,
"session_fee": 0
}'
{
"ok": true,
"data": {
"slug": "ev-charging-cost-calculator",
"result": {
"values": {
"grid_energy": 59.090000000000003410605131648480892181396484375,
"energy_cost": 10.050000000000000710542735760100185871124267578125,
"total_cost": 10.050000000000000710542735760100185871124267578125
},
"display": {
"display": "59.09"
},
"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.