Get cost statistics
get_cost_statsCost statistics of one vehicle from its Nenpi log (fuel, service, insurance, financing and other costs the user entered), for a date range (both ends inclusive; omit both for the whole history): total, monthly average, cost per km, totals per category and per group (RUNNING, OWNERSHIP, FINANCING), per month, fuel per energy carrier (quantity, effective and pump price, fill-up to fill-up consumption), data quality and remaining commitments. Costs are counted on the payment date. 'range' is the period actually covered by the log, which may be shorter than requested. distanceKm comes from odometer readings, not telematics. Odometer readings are not costs and are never counted as cost entries. costPerKmApproximate is true for ranges shorter than 365 days: a yearly policy paid in one month then distorts the cost per km, so call it indicative. 'commitments' is a projection of future instalments as of today, independent of the range and not included in any total. Every amount carries its currency.
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_cost_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive. Omit for the end of history. | |
| from | No | First day, inclusive. Omit for the start of history. | |
| vehicleId | Yes | Vehicle id (UUID) from list_vehicles. Never guess it or reuse a name. |