Congressional Documents

v0.2.1
io.github.pipeworx-io/congressional-documents Checked 4 days ago Published 1 month ago

Congressional Documents — full-text search and retrieval over the official record of Congress…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_congressional_documents

Search the full text of official U.S. congressional documents — hearing transcripts, committee reports, committee prints, House/Senate documents, and the Congressional Record. Use for "what was said in the congressional hearing about X", "the committee report on Y", "congressional testimony on Z", "what did Congress publish about ...". Returns matching documents with their official citation, date, congress number and a govinfo.gov link; pass the returned ids to get_congressional_document_text to read the actual wording. Searches PUBLISHED documents only — a hearing transcript appears month…

ParameterTypeDescription
query *stringFree-text search over document full text, e.g. "opioid settlement" or "FTX collapse"
_apiKeystringdata.gov API key (free at api.data.gov/signup)
congressnumberCongress number, e.g. 118 for 2023-2024
date_fromstringEarliest publication date, YYYY-MM-DD
date_tostringLatest publication date, YYYY-MM-DD
doc_typestringWhich record to search: "hearings" (transcripts), "reports" (committee reports), "prints", "documents" (House/Senate documents), "record" (Congressional Record), or "all" (default).
limitnumberResults to return (default 10, max 50)

get_congressional_document_text

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.

ParameterTypeDescription
package_id *stringGovInfo package id, e.g. "CHRG-116shrg42133" or "CREC-2025-09-10"
_apiKeystringdata.gov API key (free at api.data.gov/signup)
granule_idstringOptional granule id for one item within a package, e.g. "CREC-2025-09-10-pt1-PgS6557-4"
max_charsnumberCharacters of text to return (default 20000, max 200000)
offsetnumberCharacter offset to start from, for paging long transcripts

list_congressional_document_types

List the kinds of congressional documents that can be searched (hearings, committee reports, committee prints, House/Senate documents, Congressional Record), what each contains, and what this source does and does not cover. Call this when unsure which doc_type answers a question.