Skip to main content
Glama
Legal Knowledge MCP Server

Legal Knowledge MCP Server

by Angioz

legal_search_us_code

Search the United States Code, public laws, congressional bills, and CFR by keyword to find official federal legal text; use a free GovInfo API key for regular access.

Instructions

Full-text search of the United States Code, public laws and congressional bills via GovInfo (US Government Publishing Office). Works without setup at low volume; set GOVINFO_API_KEY (free api.data.gov key) for regular use.

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": "legal_search_us_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results per source (default: 10, max: 50)
queryYesSearch terms, e.g. 'limited liability company' or '"section 6038A"'
collectionNoRestrict to one collection (default: US Code + public laws + bills)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose something genuinely useful: the tool works without setup at low volume but needs a free api.data.gov key for regular use, i.e. an implicit rate/quota tier. It does not say what results contain, whether snippets/highlights are returned, or how the three sources are merged in the 'all' collection.

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?

Two sentences, zero waste, with the resource scope front-loaded and the auth/quota note second. Nothing is repeated from the schema and no filler is present.

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 three-parameter read-only search tool with a fully documented schema and no output schema, the definition covers source, scope and the API-key prerequisite adequately. The remaining gap — what a result record looks like and how multi-source results are combined — is minor but real.

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 description coverage is 100%, so the schema already documents query, limit and the collection enum with its default. The description echoes the covered collections (US Code, public laws, bills) but adds no syntax, ranking, or result-shape detail beyond the schema, which is the baseline-3 case.

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 names a specific verb and resource — full-text search of the United States Code, public laws and congressional bills — plus the upstream source (GovInfo/GPO). It is clear about scope relative to the caselaw and non-US siblings, though it never explicitly states how it differs from the broader legal_search_us tool.

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?

Usage context is implied (searching federal statutory/legislative text) and the definition gives operational guidance about running without setup at low volume versus supplying GOVINFO_API_KEY. However, it offers no when-to-use/when-not guidance against the sibling search tools, so an agent must infer selection criteria.

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