Add an odometer reading
add_odometer_readingRecords the odometer of one vehicle on a given day, without any cost. Use it when the user tells or shows the current mileage; a fill-up or a cost with the odometer already records it. Nothing is overwritten: the tool only adds. After saving, repeat the date and value to the user and give them entryUrl. A warning ODOMETER_OUT_OF_ORDER means the value contradicts other readings.
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>",
"date": "<date>",
"odometerKm": "<odometerKm>"
},
"name": "add_odometer_reading"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Day of the reading (YYYY-MM-DD), at most tomorrow. | |
| note | No | Free-text note, at most 2000 characters. Optional. | |
| vehicleId | Yes | Vehicle id (UUID) from list_vehicles. Never guess it or reuse a name. | |
| odometerKm | Yes | Odometer value in km, as shown on the dashboard. At most 1 decimal place. | |
| confirmDuplicate | No | Set to true only after the user confirmed that this is a separate entry, when a previous call returned the warning POSSIBLE_DUPLICATE. Never set it on the first call. |