Skip to main content
Glama

mileage-tracker

Add a mileage claim

mileage_add

Record a business trip as an expense, priced as distance x rate. Give exactly one of km or miles. Returns the saved id with the rate used, where that rate came from and the money, in the rate's own currency.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kmNoDistance in kilometres. Give exactly one of km or miles
dateNoISO date, default today
milesNoDistance in miles. Give exactly one of km or miles
regionNoWhich built-in table rate to use: PL 1.15 PLN/km, UK 0.45 GBP/mile, US 0.70 USD/mile, EU 0.30 EUR/km. Default US for miles, EU for km. Each is one flat approximate rate per region with no effective dates, no vehicle or engine class and no first-10000-mile band, so it is NOT a tax calculation
projectNoBill the trip to a client or project - use the same name you use in time-tracker and expense_add. Without it the drive is invisible to expense_summary by project and to expense_to_invoice
purposeYesWhy the trip was made, e.g. client meeting in Krakow
billableNoWhether the trip is rebilled to the client. Default true, so a mileage claim reaches expense_to_invoice unless you pass false
currencyNoCurrency for your own rate. Only accepted together with rate_per_km; a table rate keeps the table currency
rate_per_kmNoYour own rate per supplied unit, overriding the table. Pass it whenever you need your exact scheme rather than the approximate table rate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With all annotations at false/default values, the description carries the behavioral burden and delivers: it discloses the return shape ('saved id with the rate used, where that rate came from and the money'), the currency behavior ('in the rate's own currency'), and the exclusivity constraint. It does not contradict the annotations — a record-creating write aligns with readOnlyHint=false.

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, each earning its place: the purpose, the critical exclusivity constraint, and the return-value contract. The most important information is front-loaded in the first sentence, with zero filler or repetition of schema boilerplate.

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?

There is no output schema, so the description's return-value disclosure (id, rate, rate source, currency) fills a real gap. The schema covers all parameter semantics, defaults, and the tax caveat, so together the package is complete for a 9-parameter tool. Minor omission: the description doesn't note that missing 'project' hides the claim from expense_summary/expense_to_invoice, though the schema's project field does.

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 100%, so every one of the 9 parameters is individually documented in the schema, which establishes the baseline of 3. The description adds the high-level pricing context and the km/miles exclusivity, but that constraint is already repeated in both parameter descriptions, so the description contributes no additional parameter-level meaning.

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 ('Record a business trip as an expense') and adds the pricing mechanism ('priced as distance x rate'), which clearly distinguishes it from the sibling expense_add for general expenses. The mutual-exclusivity constraint ('Give exactly one of km or miles') further sharpens the scope.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the 'business trip' framing suggests this tool is for mileage claims versus expense_add for other expenses, but the description never names an alternative or gives an explicit when-to-use/when-not-to-use rule. The useful exclusion ('NOT a tax calculation') lives in the schema's region parameter, not in the description.

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.