Skip to main content
Glama

Congressional Documents

Get Congressional Document Text

get_congressional_document_text
Read-onlyIdempotent

Read the actual text of a congressional document, the full transcript, report or Congressional Record entry, so an answer can quote the source instead of paraphrasing from memory. Pass the package_id (and granule_id where the search returned one) from search_congressional_documents. Returns the document text, its official citation, the page range where the source prints one, and the govinfo.gov URL. Hearing transcripts run to hundreds of pages, so text is truncated by default, raise max_chars or use the offset to page through it.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "package_id": "CHRG-116shrg42133"
    },
    "name": "get_congressional_document_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoCharacter offset to start from, for paging long transcripts
_apiKeyNodata.gov API key (free at api.data.gov/signup)
max_charsNoCharacters of text to return (default 20000, max 200000)
granule_idNoOptional granule id for one item within a package, e.g. "CREC-2025-09-10-pt1-PgS6557-4"
package_idYesGovInfo package id, e.g. "CHRG-116shrg42133" or "CREC-2025-09-10"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), but the description adds real behavioral facts not in them: text is truncated by default, hearing transcripts run hundreds of pages, and paging is achieved via offset. It also enumerates what comes back (document text, official citation, page range, govinfo.gov URL), which matters because there is no output schema.

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-loaded with the action and the source-of-truth purpose, then the parameter handoff, then the return payload, then the truncation caveat — a sensible information order. Four sentences with little waste; the 'quote the source instead of paraphrasing from memory' framing is motivational rather than operational, a minor cost.

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?

For a read-only retrieval tool with no output schema and five fully documented params, an agent has everything needed: where the ids come from, what is returned, and how to handle oversized documents. Nothing material is missing given the annotation profile.

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 the baseline is 3, but the description adds provenance the schema cannot: package_id and granule_id should be carried over from a prior search rather than constructed. It also reinforces max_chars/offset as a paired paging mechanism with a stated reason (long transcripts), adding intent beyond the schema's per-field text.

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 and resource ('Read the actual text of a congressional document') and immediately delimits scope with 'the full transcript, report or Congressional Record entry', which covers the three document families the sibling search tool returns. The purpose is distinguishable from retrieving metadata/search results, and the 'quote the source instead of paraphrasing from memory' clause makes the intent unmistakable.

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 routes the agent: use this after search_congressional_documents and pass the package_id (plus granule_id where the search returned one) — a clear handoff condition rather than an implied one. It also gives the in-tool escalation path (raise max_chars or use offset for long transcripts). No explicit 'when not to use' or boundary against adjacent retrieval paths, so a 4 rather than a 5.

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.