Skip to main content
Glama

log_mileage

Record business mileage and compute trip expenses using addresses and a configured per-mile rate. Enter trip details to track miles, purpose, and business travel costs.

Instructions

Log business miles. If miles is empty they're worked out from the addresses. Amount = miles × the mileage rate (CALLSHEET_MILEAGE_RATE). Business trips only.

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": {
      "from_address": "<from_address>",
      "to_address": "<to_address>",
      "purpose": "<purpose>"
    },
    "name": "log_mileage"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
milesNo
companyNo
purposeYes
round_tripNo
to_addressYes
from_addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 and does disclose non-obvious behavior: miles are derived from the addresses when omitted, and the amount is computed as miles times CALLSHEET_MILEAGE_RATE. It does not say whether a record is created, whether the derived mileage is returned or only stored, or any permission/rounding behavior.

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-loaded with the action, and every sentence adds new information: purpose, derivation rule, amount formula and rate source, and eligibility scope. No filler.

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

Completeness3/5

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

For a 7-parameter mutation-ish logging tool with no annotations and no output schema, the definition covers the two most surprising elements (optional miles derivation and rate-based amount). It still leaves most parameters and the result of the call unexplained, so it is only adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must compensate. It explains only the `miles` parameter (nullable, derived from addresses) and leaves round_trip, company, date, purpose, and address formats undocumented in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Log business miles") and scopes it to business trips, which distinguishes it from a generic expense logger. It stops short of naming a sibling such as log_expense that an agent might otherwise confuse it with.

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?

The "Business trips only" constraint and the implied guidance about supplying addresses vs. explicit miles give some usage context. There is no explicit when-to-use/when-not guidance relative to log_expense, expense_report, or plan_route, so selection still requires inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.