Skip to main content
Glama

Behind the Tax Data

Get a tax figure with its source

get_rule
Read-onlyIdempotent

Look up a U.S. federal or state tax rate, threshold or limit (standard deduction, bracket thresholds, retirement plan and HSA limits, EITC and child tax credit amounts, mileage rates, IRS interest rates, estate and gift exclusions and more) by rule key and qualifiers, as of a tax year or a date. Returns the value, period, effective dates, verification status, the forms and filer types it affects where recorded, the verbatim quote from the official document, the document reference with its official URL and archived copy, and source: the fact page to cite. Without key, searches by text (query) and returns candidate keys; with neither, lists every available key. Example: key "fed.standard_deduction", dims {"filing_status": "mfj"}, tax_year 2027.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoRule key, e.g. "fed.standard_deduction", "fed.401k.deferral", "fed.bracket_start", "fed.mileage", "fed.interest".
dateNoAs of this date (YYYY-MM-DD). Default: today; values already announced for later periods are listed under `also_announced`.
dimsNoQualifiers, e.g. {"filing_status": "mfj"} (single, mfj, mfs, hoh), {"rate": "24"}, {"children": "3+"}, {"coverage": "family"}, {"use": "business"}, {"category": "underpayment"}. Omit to get every qualifier of the key.
limitNoMaximum facts or candidates returned.
queryNoFree text search when the key is not known, e.g. "HSA family limit" or "catch-up 60-63".
stateNoFilter to one state, e.g. TX. Omit to include all jurisdictions.
tax_yearNoTax year. Takes precedence over `date`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint true, destructiveHint and openWorldHint false, so the safety profile is covered. The description's real contribution is the return payload (value, period, effective dates, verification status, verbatim quote, document reference with official URL and archived copy, and the `source` fact page), which is valuable given there is no output schema. It says nothing about auth needs, rate limits, or what a cache/verification status of 'unverified' implies.

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?

Front-loads the resource and the mode rules, with no filler sentences, and the example is compact. The first sentence is overloaded by a long parenthetical list and the return-value sentence is a run-on, which slightly slows scanning, but every claim adds information.

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 7-parameter, zero-required, nested-object tool with no output schema, the definition covers the modes, the returned fields, the date/tax_year default behavior, and a concrete example — enough to call it correctly. Remaining gaps are minor: the meaning of verification status values and how `state` interacts with federal keys are left to the schema.

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 description coverage is 100%, so the baseline is 3; the description earns above that by explaining cross-parameter behavior the schema cannot express — omitting `key` switches to `query` search and omitting both lists every key, and omitting `dims` returns every qualifier. The example call clarifies how key, dims and tax_year combine in practice.

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?

States a specific verb+resource: looks up U.S. federal or state tax rates, thresholds and limits by rule key and qualifiers, as of a tax year or date. The parenthetical enumerates the concrete fact families (standard deduction, HSA limits, EITC, mileage, IRS interest) so an agent knows exactly what data lives here versus the sibling deadline/package 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?

Explicitly spells out the three modes: key given = direct lookup, no key but query = text search returning candidate keys, neither = list all keys. That is unusually clear routing guidance, plus a worked example with key/dims/tax_year. It stops short of naming when a sibling such as get_deadlines is the better pick.

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