Skip to main content
Glama

Nenpi - car costs, fuel log and reminders

Get distance driven

get_distance
Read-onlyIdempotent

How many km one vehicle was driven in a date range: one number with its unit, source and notes about missing data. Use this for every question about distance driven ("how many km did I drive last month / in 2025"); use get_driving_stats only when the user asks for more (consumption, trips, patterns). Pass both dates; both ends are inclusive. Answer with distanceKm and name its source: TELEMATICS_TRIPS is the sum of Suzuki Connect trip distances, ODOMETER is how far the odometer advanced (vehicles without telematics). 'covered' is the part of the requested 'period' the number is about; if it is shorter, say which days it covers. comparison puts both measurements side by side for the same trips (the odometer from the start of the first to the end of the last trip in 'covered', with the dates in odometerStart and odometerEnd): differenceKm = odometerDistanceKm - tripDistanceKm. A positive difference means the trips do not account for every km on the odometer; the data does not show why (trips the car did not report, rows missing from imported files, rounding), so do not call it missed trips unless a note says ODOMETER_JUMPS_BETWEEN_TRIPS. A null number comes with a reason: say the data is missing, never report it as zero. Mention notes that change the answer.

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_distance"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, inclusive. 'Last month' asked in November 2026 is 2026-10-31.
fromNoFirst day, inclusive. 'Last month' asked in November 2026 is 2026-10-01.
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.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial behavior beyond them: source semantics (TELEMATICS_TRIPS is the sum of trip distances vs ODOMETER advancement), 'covered' possibly being shorter than 'period', how comparison/differenceKm is computed, and that a positive difference must not be called missed trips absent an ODOMETER_JUMPS_BETWEEN_TRIPS note. It also states that nulls come with a reason and must never be reported as zero — exactly the kind of trap an agent would otherwise fall into.

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: what it returns, then when to use it, then result interpretation and caveats, so an agent gets the answer in the first sentence. It is dense and long for one paragraph, and a few clauses (the comparison explanation) could be tightened, but nearly every sentence carries information needed to report the number correctly.

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?

There is no output schema, and the description compensates fully by describing the returned fields (distanceKm, source, covered, period, comparison, odometerStart/odometerEnd, notes) and how to phrase the answer. For a single-number read tool with one required parameter, nothing an agent needs to call it or report the result 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% and already documents inclusive from/to with worked date examples, so much of the date guidance is restated. The description nevertheless adds meaning the schema does not: it mandates "Pass both dates" even though only vehicleId is required, and ties the dates to the output period/covered semantics.

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?

The description opens with a specific verb+resource+unit ("How many km one vehicle was driven in a date range") and immediately names the sibling get_driving_stats as the different tool. An agent can distinguish it from the other stats siblings 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?

Explicit routing: "Use this for every question about distance driven" and "use get_driving_stats only when the user asks for more (consumption, trips, patterns)." It gives both the default case and the exact condition that selects the alternative, plus domain examples ("last month / in 2025").

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