Skip to main content
Glama

Resolve a legal citation

resolve_citation
Read-only

Check each statute, regulation or constitutional citation your answer makes against the current law. Quote the text it returns, not text you recall.

It turns a printed citation ("26 U.S.C. 401(a)(9)(H)", "40 C.F.R. § 52.21", "First Amendment", an official alias) into its law unit with title and opening text. A pinpoint below the section resolves to the section. An Act name with no unit of its own ("Affordable Care Act") returns enacted_laws: the public law it names and the first units it enacts. A name that fits several laws lists each and picks none. Read the unit with get_item(domain, id=<citation_key>). A public law in enacted_laws has no get_item row; use neighbors(links.resource, ENACTS). Empty matches do not prove the law does not exist: see get_coverage.

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": "<citation>"
    },
    "name": "resolve_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
citationYesA printed citation, such as 26 U.S.C. 401(a)(9)(H), 40 C.F.R. § 52.21 or U.S. Const. amend. XIV.
doc_typeNostatute, regulation, constitution or ordinance; omitted, every type.
jurisdiction_iso_codeNoTwo-letter code (US, CA) to scope an alias that several jurisdictions share.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare a safe, closed-world read (readOnlyHint=true, openWorldHint=false, destructiveHint=false), so the baseline bar is met by them. The description goes further in disclosing result semantics — pinpoint collapse to the section, Act names yielding enacted_laws, ambiguous names listing all candidates without picking one, and empty matches not proving absence. It stops short of describing pagination or the exact payload of a resolved unit, which a 5 would require.

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?

The opening instruction and the quote-what-is-returned rule are front-loaded, and no sentence is filler. The middle paragraph is a dense run-on stacking four distinct resolution outcomes, which costs a little readability but not accuracy; every clause carries unique information.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does: title plus opening text, the enacted_laws shape, and the multi-match list. It also hands the agent the correct next step in each case, so a three-parameter resolution tool is fully specified for correct use.

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 a 3 is the floor, and the description adds interpretation the schema cannot: pinpoints below a section resolve up to the section, official aliases are accepted, Act names with no unit of their own return public-law references, and names shared across laws return a list rather than a guess. It is silent on how doc_type and jurisdiction_iso_code change behavior, leaving those entirely to the schema.

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 concrete transformation — a printed citation becomes its law unit with title and opening text — and illustrates it with real citation forms. It also distinguishes its output shapes (section, enacted_laws, ambiguous list) and names the sibling that operates on the result (get_item).

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?

Front-loads the triggering condition (check every citation your answer makes, quote what it returns rather than recalled text) and gives explicit routing: read units with get_item(domain, id=citation_key), use neighbors(links.resource, ENACTS) for public laws lacking a get_item row, and get_coverage when matches are empty. These are concrete when-to-use and when-not-to-use branches, not hints.

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