Privi Car: add a sealed record
car_record_addAppend one entry to the vehicle's hash chain: an odometer reading, service, repair, inspection, trip (distance and time only), fuel, charge, accident, title change or note. Each entry is hashed with the one before it, so history cannot be edited quietly. An odometer reading lower than an earlier one is recorded and flagged as a rollback.
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": {
"vehicle": "<vehicle>",
"owner_key": "<owner_key>",
"type": "<type>"
},
"name": "car_record_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Any of: odometer, unit (km|mi), distance, duration_min, liters, kwh, cost_usd, summary, date (YYYY-MM-DD). No location. | |
| type | Yes | odometer | service | repair | inspection | trip | fuel | charge | accident | title | note | |
| vehicle | Yes | vehicle_id (car_...) or the 17-character VIN | |
| owner_key | Yes | The owner_key (carkey_...) returned by car_register |