Skip to main content
Glama

mileage-log

Export the log as CSV for an accountant

mileage_export

The mileage log as CSV, one row per trip, oldest first: date, from, to, distance, unit, category, the rate applied (the one in force on the trip's day), the currency and the amount, plus purpose, jurisdiction, effective_from and id. The amount column is a bare number a spreadsheet reads. Refuses while any non-personal trip in the window is unpriced, so an accountant never receives a log with silent gaps. Pro.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_dateNoEnd of the range, YYYY-MM-DD. Default December 31 of the current year
from_dateNoStart of the range, YYYY-MM-DD. Default January 1 of the current year

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It discloses a critical behavior: it refuses to export if any non-personal trip in the window is unpriced, and it specifies ordering and the bare-number format of the amount column. This is valuable context beyond what the schema provides, though it does not mention other potential failure modes.

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?

The description is concise and front-loaded with the core purpose. It efficiently lists the output columns and key behaviors in a few sentences. The trailing 'Pro.' is slightly ambiguous but does not detract significantly from the overall clarity.

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

Completeness4/5

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

For a simple export tool with no output schema, the description adequately covers the output format, ordering, and a critical failure condition. It does not cover authentication or other edge cases, but these are not typically expected in tool descriptions. The description provides enough information for an agent to call it 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?

Both parameters have descriptions in the schema (100% coverage), so the description adds no additional parameter semantics. It does not need to compensate since the schema already explains the date range, so the baseline of 3 applies.

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 clearly states the tool exports the mileage log as CSV, specifies the exact row structure (one row per trip, oldest first) and lists all columns. This distinctly differentiates it from sibling tools like mileage_summary or trip_list, making its purpose unambiguous.

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

Usage Guidelines4/5

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

The title and description imply this is for exporting a CSV log for an accountant, which indicates when to use it. However, it does not explicitly mention alternatives or conditions when not to use it, so the guidance is implicit rather than explicit.

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.