Skip to main content
Glama

Statutes Search Tax Code

statutes_search_tax_code
Read-onlyIdempotent

Search federal, state, Puerto Rico, and Canada tax statutes by keyword or concept; get ranked snippets with citations, IDs, jurisdiction, year, and validity to locate full statute text.

Instructions

Keyword and concept search across Federal, State and Canada (CAN) statutory corpora. Multi-word queries match individual terms: rows with the whole phrase rank first, then by how many terms match, then newer effective year first (empty or non-numeric years last), then id. Each result is a short snippet (up to 300 characters around the first matched term) with its id, citation, title, jurisdiction, year, validity and content labels, not the full text: call statutes_lookup_statute with citation_or_section set to the result's id to read the full text. limit is clamped to 1..25 results per call (see limit_applied); while next_offset is not null, call again with offset set to it for the next page. lang picks the snippet language (en, es or fr); matching reads every language a row has.

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": {
      "query": "<query>"
    },
    "name": "statutes_search_tax_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoSnippet language: 'en' (default), 'es' or 'fr'. 'fr' takes the French text of a Canada row and otherwise the row's official language.en
limitNoResults per call (default 5), clamped to 1..25: a value under 1 is raised to 1 and one over 25 is lowered.
queryYes
corpusNoOptional corpus code, e.g. 'IRC', 'RCW', 'LEY60'. A jurisdiction code or name ('washington') is also accepted and filters by jurisdiction.
offsetNoOptional number of ranked results to skip (paging).
tax_yearNo
jurisdictionNoOptional jurisdiction code or full name, e.g. 'WA' or 'Washington', 'PR' or 'Puerto Rico', 'US' or 'federal', 'CAN' or 'Canada'.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, closed-world read, and the description adds substantial behavior beyond them: the exact ranking order (phrase match, term count, newer effective year with non-numeric years last, then id), a 300-character snippet cap, the fact that full text is not returned, and the 1..25 clamping with limit_applied. This is the kind of context that prevents misuse.

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?

It is a single dense paragraph, but every sentence carries operational information and the ranking rules and paging instructions are ordered logically after the purpose statement. It is longer than typical, though close to the minimum for the behavior it must convey; splitting ranking, return shape, and paging into distinct sentences would improve scanability.

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 search with an output schema, the definition covers result shape, ranking, paging, and limits thoroughly. The only material omission is tax_year, whose filter behavior an agent cannot infer from either the schema or the description.

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 71%, and the description still adds real meaning beyond it, notably that multi-word queries match individual terms and that matching reads every language a row has regardless of lang. The one gap is tax_year, which is neither described in the schema nor mentioned in the description, leaving its filtering semantics opaque.

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 first sentence states a specific verb and resource ('Keyword and concept search across Federal, State and Canada (CAN) statutory corpora'), and the follow-up names the sibling it is not by contrasting snippet results with full text via statutes_lookup_statute. An agent can distinguish it from the lookup sibling without opening either schema.

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

Usage Guidelines5/5

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

It gives an explicit escalation path ('call statutes_lookup_statute with citation_or_section set to the result's id to read the full text') and a concrete paging loop ('while next_offset is not null, call again with offset set to it'). Both the when-to-use and the follow-up action are stated rather than inferred.

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