Add a cost
add_cost_entryAdds a cost other than a fill-up (service, repair, insurance, parking and so on) to one vehicle's Nenpi log, for example from a photo of an invoice. Confirm the values with the user before calling. Nothing is overwritten: the tool only adds. After saving, repeat to the user what was saved (date, category, amount) and give them entryUrl, where they can correct or delete the entry. If 'saved' is false, read the warning: a matching entry already exists. Regular costs such as monthly instalments are better set up once as a recurring cost in the Nenpi app. If the cost is for something a reminder was waiting for (service, inspection, policy renewal), ask whether to also mark it done with complete_reminder.
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>",
"category": "<category>",
"amount": "<amount>"
},
"name": "add_cost_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Day of the cost (YYYY-MM-DD), at most tomorrow. | |
| note | No | Free-text note, at most 2000 characters. Optional. | |
| title | No | Short description, such as 'Oil change' or 'Winter tyres'. At most 120 characters. | |
| amount | Yes | Total paid, in the vehicle's currency (list_vehicles), with no more decimal places than the currency has (2 for PLN and EUR, 0 for JPY). | |
| vendor | No | Workshop, insurer or shop; reuse the spelling from recentVendors in get_entry_hints. At most 120 characters. | |
| category | Yes | SERVICE (scheduled maintenance), REPAIR, TYRES, WASH, PARKING, TOLLS, INSURANCE, INSPECTION (roadworthiness test), TAX_FEES (tax, registration, fines), ACCESSORIES, FINANCING (loan or lease instalment) or OTHER. Fill-ups go to add_fuel_entry. | |
| currency | No | ISO 4217 code of the amount. Only when list_vehicles shows the vehicle without a currency: the first amount sets it for good. Otherwise omit it, all amounts are in the vehicle's currency. | |
| vehicleId | Yes | Vehicle id (UUID) from list_vehicles. Never guess it or reuse a name. | |
| odometerKm | No | Odometer at the time, in km, if the invoice or the user gives it. Never invent it. | |
| 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. |