Get Longest Trip On Single Charge
get_longest_trip_on_single_chargeIdentify the longest distance a Tesla has driven between two consecutive charges. Use it to analyze maximum range and efficiency for a specific vehicle.
Instructions
Find the longest distance driven between two consecutive charges.
Uses window functions on charging_processes to define charge windows, then sums drives within each window to find the record.
Returns JSON with: record_distance_km, start_time, end_time, start_battery_pct, arrival_battery_pct, battery_consumed_pct, efficiency_comment.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_longest_trip_on_single_charge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| car_id | No | Filter by vehicle ID (default: TESLA_CAR_ID env or first car) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |