Skip to main content
Glama

Nenpi - car costs, fuel log and reminders

Get driving statistics

get_driving_stats
Read-onlyIdempotent

Driving statistics of one vehicle from Suzuki Connect trip telematics, for a date range (both ends inclusive; omit both for the whole history): distance, trips, driving time, fuel consumption, per year, per month, per weekday, trip length buckets, consumption by speed and by calendar month, the longest days, short trips (under 3 km) and data quality. For a plain 'how many km did I drive' question use get_distance instead: one number with its source and the odometer comparison. The total distance of the range is summary.distanceKm. Lists are breakdowns, not parts to add up: longestDays is only the top days by distance, never sum it. 'range' is the period actually covered by trips (first to last trip in the request), which may be shorter than requested: say so instead of presenting it as the whole request. range.calendarDays counts both ends (31 for a full October); range.days is range.to minus range.from (30 for October), the divisor of kmPerDay. Trips with zero distance are excluded from every metric. Telematics misses some trips, so distanceKm can be lower than the odometer difference (see dataQuality and get_distance). Vehicles without telematics have no trips: use get_distance or get_cost_stats (odometer-based distance) instead. Example: 'how many km did I drive in 2025' is from=2025-01-01, to=2025-12-31, summary.distanceKm.

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_driving_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.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavioral context: zero-distance trips are excluded everywhere, telematics can undercount versus the odometer, `range` may be shorter than requested and must be reported as such, and longestDays must never be summed. It does not discuss cost/latency or pagination, but for a small read-only aggregate that is a minor gap.

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 the metric inventory, then rules, then an example — a sensible order. It is dense but nearly every sentence is an operational rule; the range.calendarDays-vs-range.days distinction is arguably over-detailed for a tool description, which keeps it from a 5.

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, so the description carries the return-value burden and does so: it names summary.distanceKm as the headline number, warns that breakdown lists are not additive, and explains range semantics and dataQuality caveats. Nothing an agent needs in order to call this and interpret the result 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; the description nevertheless adds meaning beyond it by stating that both ends are inclusive, that omitting both yields the whole history, and by showing a concrete from/to example. The clarification that omitting one bound is allowed but the 'omit both' case is the whole-history path sharpens the interpretation of the two date params.

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 concrete verb+resource ('driving statistics of one vehicle from Suzuki Connect trip telematics') and then enumerates the actual metric families returned (distance, trips, driving time, fuel, per year/month/weekday, buckets, longest days, data quality). It explicitly distinguishes itself from get_distance ('one number with its source and the odometer comparison') and get_cost_stats, so an agent can route 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 when-to-use ('how many km did I drive' -> use get_distance instead), when-not-to-use (vehicles without telematics -> get_distance or get_cost_stats), and a worked example mapping a natural question to from/to plus the field to read. Alternatives are named with the condition that selects them.

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