Skip to main content
Glama

Nenpi - car costs, fuel log and reminders

Add a cost

add_cost_entry

Adds 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

NameRequiredDescriptionDefault
dateYesDay of the cost (YYYY-MM-DD), at most tomorrow.
noteNoFree-text note, at most 2000 characters. Optional.
titleNoShort description, such as 'Oil change' or 'Winter tyres'. At most 120 characters.
amountYesTotal 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).
vendorNoWorkshop, insurer or shop; reuse the spelling from recentVendors in get_entry_hints. At most 120 characters.
categoryYesSERVICE (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.
currencyNoISO 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.
vehicleIdYesVehicle id (UUID) from list_vehicles. Never guess it or reuse a name.
odometerKmNoOdometer at the time, in km, if the invoice or the user gives it. Never invent it.
confirmDuplicateNoSet 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=false and idempotentHint=false, but the description adds real behavior: nothing is overwritten, only appended; a 'saved: false' result means a matching entry already exists; and the agent should echo back date, category, amount and hand over entryUrl. The duplicate-warning path and the post-call reporting obligation are not derivable from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose in the first clause, then pre-call, post-call, and edge-case guidance in a compact sequence. Most sentences earn their place, though 'Nothing is overwritten: the tool only adds' partly restates the non-destructive annotation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters and no output schema, the description carries the return-shape burden itself, explaining the 'saved' flag, the warning, and entryUrl. Combined with sibling routing and the reminder cross-reference, nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description adds workflow meaning on top: the duplicate warning path explains when a repeat call with confirmDuplicate is warranted, and the saved-value echo names which fields matter. It stops short of adding syntax or format detail beyond the schema, which is acceptable given full coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Adds a cost... to one vehicle's Nenpi log') and immediately scopes it against the sibling: costs other than a fill-up, with fill-ups routed to add_fuel_entry. An agent can distinguish it from add_fuel_entry and get_cost_stats without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit pre-call guidance ('Confirm the values with the user before calling'), routes an alternative use case to a recurring cost in the app, and cross-references complete_reminder for the reminder case. It also states when not to use it for fill-ups, so both the when and the when-not are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources