Skip to main content
Glama

IRS Mileage Rates

What miles are worth

calculate_deduction
Read-onlyIdempotent

The standard mileage amount for miles driven, each entry priced by the IRS rate on its own date. For a whole year, give one entry per month or per drive: in a year like 2026 the rate changed on 1 July.

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": {
      "entries": "<entries>"
    },
    "name": "calculate_deduction"
  }
}

Input Schema

NameRequiredDescriptionDefault
entriesYesOne entry per drive, day or month. For a month, use any day in it.
purposeNoWhat the miles were for. "moving" applies only to armed forces moves on military orders. Default business.business

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavior: each entry is priced by the rate in effect on its own date, with a concrete mid-year rate-change example. It does not disclose the return shape (totals vs. per-entry breakdown) or that the purpose value drives which rate table applies.

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?

Two sentences, front-loaded with what the tool produces, then the input-shaping detail. No filler, though the opening noun phrase ('The standard mileage amount for miles driven') reads as a label rather than a verb-led statement of action.

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 two-parameter, fully documented read-only tool this covers input intent well. With no output schema, however, the description leaves the return value undescribed — an agent cannot tell whether it receives a single deduction total, per-entry amounts, or a breakdown by purpose.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description goes slightly beyond the schema by explaining the rationale for date granularity (rates change mid-year, so a whole year needs multiple dated entries), which makes the entries/date fields meaningful rather than merely documented.

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?

The description states the resource and outcome concretely: 'The standard mileage amount for miles driven, each entry priced by the IRS rate on its own date.' That distinguishes it implicitly from the rate-lookup siblings (get_mileage_rate, list_mileage_rates), which return rates rather than computed amounts, but it never names them or contrasts explicitly.

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?

It gives input-shaping guidance ('For a whole year, give one entry per month or per drive') and explains when multiple entries are needed due to a mid-year rate change. It offers no when-to-use-vs-alternatives framing, e.g., no pointer to get_mileage_rate if the caller only wants the rate rather than a computed deduction.

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.

Resources