Skip to main content
Glama

Statutes Lookup Statute

statutes_lookup_statute
Read-onlyIdempotent

Retrieve exact statutory text, temporal version, and metadata by citation, section code, or search result ID, with paged access to long tax statute fields.

Instructions

Retrieve exact statutory language, temporal version, and metadata by citation, section code, or the record id from statutes_search_tax_code (pass a result's id as citation_or_section to get its full text). Long text comes in pages of up to 8,000 characters per text field (each result stays under 32,000 characters): data.text_page gives the offset and full lengths, and while data.next_cursor is not null, call again with page_cursor set to it for the next page. lang is en, es or fr: Canada (CAN) rows hold the official English and French text and a Spanish summary; for a row with no French text, fr answers in the row's official language (language_fallback).

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": {
      "citation_or_section": "<citation_or_section>"
    },
    "name": "statutes_lookup_statute"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoen
tax_yearNo
page_cursorNoOptional next_cursor from a previous statutes_lookup_statute result, to read the next page of that same version's text. When set, it decides the version, language and position; the other arguments are ignored.
jurisdictionNo
citation_or_sectionYesCitation ('26 U.S.C. § 933'), section code ('933'), or a record id from statutes_search_tax_code results ('us-irc-933').

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish that this is a safe, idempotent, closed-world read, so the description correctly spends its budget on non-obvious behavior: pagination in fields of up to 8,000 characters, a ~32,000 character per-result ceiling, and the exact cursor loop needed to page. It also discloses the language fallback rule for CAN rows lacking French text, which no annotation or schema field conveys. It stops short of describing not-found or invalid-citation behavior and does not explain how tax_year selects a temporal version.

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?

Purpose and accepted identifiers are front-loaded in the first clause, followed by the pagination mechanics and language rules in descending order of importance. Every sentence carries operational information — page sizes, cursor field names, fallback semantics — with no filler or restated title text.

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?

With an output schema present, the description needn't enumerate return fields, and it still helpfully explains the two return fields that drive control flow (data.text_page, data.next_cursor). For a read-only lookup this is close to complete; the remaining gap is the unexplained tax_year and jurisdiction parameters, plus no mention of failure behavior for unresolvable citations.

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 coverage is only 40%, so the description must carry more weight. It handles lang well (en/es/fr, official EN/FR plus Spanish summary for CAN, and language_fallback behavior) and restates the citation_or_section formats that the schema already documents. However, tax_year and jurisdiction are left completely unexplained in both schema and description, including how tax_year interacts with the advertised 'temporal version'.

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 ('Retrieve exact statutory language, temporal version, and metadata') and enumerates the three accepted identifiers (citation, section code, or a search result id). It also names the sibling tool statutes_search_tax_code as the source of record ids, so an agent can tell the lookup apart from the search tool without inspecting 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 Guidelines4/5

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

It gives clear operative guidance: pass a search result's id as citation_or_section to get full text, and keep calling with next_cursor while data.next_cursor is non-null. It does not state when to prefer this over statutes_search_tax_code explicitly in the reverse direction, nor when tax_year should be supplied, but the primary workflow is unambiguous.

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