Skip to main content
Glama

mileage-log

Log a trip

trip_add

Log one drive in the mileage log: the date, where from and to, the distance in miles or km, the purpose, and the category (business, medical, moving, charitable, personal). Returns its TR-YYYY-NNNN id. Free tier: 20 trips per calendar month, counted on the month of the trip date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesWhere it ended, e.g. Client site, 2 Mill Lane
dateYesThe day the trip was driven, YYYY-MM-DD. A future date is refused: the trip cannot have been driven yet
fromYesWhere the trip started, e.g. Home office, 14 Nowa Street
noteNo
unitYesmiles or km; spellings like mi and kilometre are accepted
purposeYesWhy the trip was made, e.g. Site visit for the Kowalski refit
categoryYesOne of: business, medical, moving, charitable, personal. Personal trips are kept for the record and priced only if a rate exists
distanceYesHow far, to the thousandth of the unit, e.g. 12.5
jurisdictionNoWhich rate set prices this trip, when more than one jurisdiction has a rate for its category. Omit when only one does

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses the return of a trip ID and the free-tier limit, but it does not explicitly state that this is a mutating operation, any required authentication, or potential side effects. The description is not misleading, but it under-discloses for a write operation without annotation support.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the core action and key fields, then the return ID, then the free-tier constraint. Every sentence earns its place with no filler, making it concise and well-structured.

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?

Given the tool's complexity (9 params, 7 required) and no output schema, the description covers the core purpose, return value, and a key constraint (free tier). The schema covers parameter details, and the description does not need to explain those. It is complete enough for an agent to call the tool correctly, though it could mention the rejection of future dates (already in schema) or error behavior, but those are minor gaps.

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 description coverage is 89%, so the schema already documents most parameters well. The description reiterates the field names but does not add new meaning beyond what the schema provides (e.g., it doesn't explain the note or jurisdiction fields, but those are covered in the schema). With high coverage, the baseline of 3 is appropriate.

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 action ('Log one drive in the mileage log') and enumerates the key fields (date, from, to, distance, purpose, category). It distinguishes this tool from siblings by its verb and resource focus—logging versus listing, removing, or exporting trips. The return of a TR-YYYY-NNNN id is also mentioned, adding specificity.

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 description gives clear context: it's for adding a trip to the mileage log, and it mentions the free-tier monthly limit, which is a usage constraint. However, it does not explicitly state when not to use it or mention alternatives like trip_remove or trip_list, so it lacks the exclusionary guidance needed for a 5.

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.