Skip to main content
Glama

Nenpi - car costs, fuel log and reminders

Get cost statistics

get_cost_stats
Read-onlyIdempotent

Cost 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

NameRequiredDescriptionDefault
toNoLast day, inclusive. Omit for the end of history.
fromNoFirst day, inclusive. Omit for the start of history.
vehicleIdYesVehicle id (UUID) from list_vehicles. Never guess it or reuse a name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses accounting semantics that materially affect interpretation: costs are counted on the payment date, 'range' is the period actually covered and may be shorter than requested, distanceKm comes from odometer readings not telematics, odometer readings are never counted as cost entries, commitments are a future projection excluded from totals, and every amount carries its currency.

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 and output inventory, and nearly every sentence carries a caveat an agent needs. It is a dense single paragraph, though, and the closing 'Every amount carries its currency' plus some enumerations 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?

With no output schema, the description carries the full burden of describing return values and does so thoroughly, including caveats about approximations, projections excluded from totals, and narrower-than-requested ranges. An agent has enough to call it correctly and interpret the response.

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 already 100%, so the schema documents from/to/vehicleId. The description still adds meaning: both ends inclusive, omitting both yields the whole history, and the returned 'range' may differ from the requested one. It reinforces but does not extend the vehicleId guidance already in the schema.

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?

Names a specific verb+resource (cost statistics of one vehicle from its Nenpi log) and enumerates the exact outputs: total, monthly average, cost per km, per-category and per-group totals, per month, fuel per energy carrier, data quality, commitments. This clearly separates it from get_driving_stats or get_distance, which measure motion rather than money.

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

Usage Guidelines3/5

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

Usage context is implied: it is the read-side counterpart to add_cost_entry and returns aggregates for a vehicle, with a note that cost per km over short ranges is only indicative. However, it never explicitly says when to prefer this over get_driving_stats or get_distance, nor when-not to call it, leaving the routing to inference.

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