Skip to main content
Glama

mileage-logbook

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

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

Annotations already indicate this is not read-only, but the description adds concrete behavior beyond them: it returns a TR-YYYY-NNNN identifier and counts against a 20-trip monthly quota based on trip date. No annotation contradiction is present.

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?

Three short sentences front-load the core action and fields, followed by return value and quota constraint. No filler or repetition of schema details.

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 9-parameter create tool with a detailed schema, the description covers the essential return value and quota behavior. Optional parameters like note and jurisdiction are left to the schema, which is acceptable; it could only add marginal clarity about what happens when the free tier is exceeded.

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 coverage is high (89%), so the schema carries parameter documentation. The description names the main captured fields and the allowed categories, but adds little beyond the schema's own descriptions.

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 and resource — "Log one drive in the mileage log" — and enumerates exactly which fields are captured (date, from/to, distance, purpose, category). This clearly separates it from sibling list/remove/export/rate tools.

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 intended use is explicit: record a new trip when the user supplies trip details. It doesn't explicitly name sibling alternatives or exclusions, but as the only create-style trip tool among read/delete/export siblings, the context is clear; the free-tier note adds a practical condition.

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.