Skip to main content
Glama

Nenpi - car costs, fuel log and reminders

Add a fill-up

add_fuel_entry

Adds a fill-up (fuel, LPG, CNG or charging) to one vehicle's Nenpi log, for example from a photo of a receipt. Call get_entry_hints first for the odometer, energy carrier and station. Confirm the values with the user before calling, especially fullTank and odometerKm. Nothing is overwritten: the tool only adds. After saving, repeat to the user what was saved (date, amount, quantity, odometer) and give them entryUrl, where they can correct or delete the entry. If 'saved' is false, read the warning: a matching entry already exists. A warning ODOMETER_OUT_OF_ORDER with 'saved' true means the entry was saved but its odometer contradicts other readings and is left out of consumption: tell the user.

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>",
      "energyCarrier": "<energyCarrier>",
      "amount": "<amount>",
      "quantity": "<quantity>",
      "fullTank": "<fullTank>"
    },
    "name": "add_fuel_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesDay of the fill-up (YYYY-MM-DD), at most tomorrow.
noteNoFree-text note, at most 2000 characters. Optional.
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).
vendorNoStation, such as 'Orlen' or 'Shell Puławska'; reuse the spelling from recentVendors in get_entry_hints. At most 120 characters.
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.
fullTankYesTrue if the tank was filled up to the brim (the pump nozzle clicked off). Fuel consumption is computed between full tanks, so ask the user if unsure: a receipt does not say it.
quantityYesAmount of fuel: litres for PETROL, DIESEL and LPG, kg for CNG, kWh for ELECTRICITY. At most 3 decimal places.
unitPriceNoPrice per litre, kg or kWh as printed on the receipt, at most 4 decimal places. Optional: Nenpi can work it out from amount and quantity.
vehicleIdYesVehicle id (UUID) from list_vehicles. Never guess it or reuse a name.
odometerKmNoOdometer at the fill-up, in km. Strongly recommended with fullTank: without it this fill-up cannot close a consumption segment. Ask the user; never invent it. get_entry_hints gives the latest known reading, which is only a lower bound.
energyCarrierYesWhat was filled up. Usually the same as lastFuel.energyCarrier from get_entry_hints; LPG cars fill up both LPG and PETROL, so follow the receipt.
missedPreviousNoTrue only if the user says that an earlier fill-up was not recorded in Nenpi, so the consumption chain restarts here. Default false.
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.4/5.0
Behavior4/5

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

Annotations already declare a non-destructive, non-idempotent write, and the description goes further: nothing is overwritten, only adds; 'saved' false means a duplicate warning; ODOMETER_OUT_OF_ORDER still saves but excludes the entry from consumption. It stops short of explaining response shape beyond entryUrl and the warning names, but the failure modes are well disclosed.

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, then instructions in rough call order, then post-call guidance. Dense and mostly waste-free, though the error-handling sentences could be tightened.

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?

For a 13-parameter mutation with no output schema, it covers preconditions, duplicate and odometer edge cases, and what to report back to the user (saved values plus entryUrl) – enough for an agent to call and follow up correctly.

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

Parameters3/5

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

Schema coverage is 100% and the schema already spells out odometerKm ('never invent it'), currency, and confirmDuplicate semantics, so most of the description's parameter talk (fullTank, odometerKm) repeats structured data. It adds only a light prioritization hint about which fields need user confirmation.

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 fill-up ... to one vehicle's Nenpi log") and enumerates the energy carriers covered, which separates it from add_cost_entry and add_odometer_reading without opening a 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 sequencing (call get_entry_hints first), a precondition (confirm values with the user, especially fullTank and odometerKm), and conditional rules (set confirmDuplicate only after a POSSIBLE_DUPLICATE warning, never on the first call).

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