Get distance driven
get_distanceHow many km one vehicle was driven in a date range: one number with its unit, source and notes about missing data. Use this for every question about distance driven ("how many km did I drive last month / in 2025"); use get_driving_stats only when the user asks for more (consumption, trips, patterns). Pass both dates; both ends are inclusive. Answer with distanceKm and name its source: TELEMATICS_TRIPS is the sum of Suzuki Connect trip distances, ODOMETER is how far the odometer advanced (vehicles without telematics). 'covered' is the part of the requested 'period' the number is about; if it is shorter, say which days it covers. comparison puts both measurements side by side for the same trips (the odometer from the start of the first to the end of the last trip in 'covered', with the dates in odometerStart and odometerEnd): differenceKm = odometerDistanceKm - tripDistanceKm. A positive difference means the trips do not account for every km on the odometer; the data does not show why (trips the car did not report, rows missing from imported files, rounding), so do not call it missed trips unless a note says ODOMETER_JUMPS_BETWEEN_TRIPS. A null number comes with a reason: say the data is missing, never report it as zero. Mention notes that change the answer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vehicleId": "<vehicleId>"
},
"name": "get_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive. 'Last month' asked in November 2026 is 2026-10-31. | |
| from | No | First day, inclusive. 'Last month' asked in November 2026 is 2026-10-01. | |
| vehicleId | Yes | Vehicle id (UUID) from list_vehicles. Never guess it or reuse a name. |