Congress Get Bill
congress_get_billLook up one congressional bill from congress.gov (the Library of Congress's official API) by its real-world identifier, congress number, bill type and bill number, e.g. the 118th Congress H.R. 1. Returns title, sponsor, current status (congress.gov's free-text latestAction) with its date, introduced date, whether/which law it became, and the congress.gov link. Does NOT return bill text, cosponsors, committee assignments or vote history. Requires an API key: a free api.data.gov key works, supplied automatically when called through the Pipeworx gateway.
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": {
"number": 1,
"congress": 118,
"bill_type": "house_bill"
},
"name": "congress_get_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Bill number within that congress, e.g. 1 for H.R. 1 | |
| congress | Yes | Congress number, e.g. 118 | |
| bill_type | Yes | Bill type: hr, s, hres, sres, hjres, sjres, hconres or sconres (congress.gov's own short codes). The long GovTrack-era forms (house_bill, senate_bill, ...) and 'h.r.' are also accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Bill ID | |
| link | No | GovTrack bill URL | |
| title | No | Full bill title | |
| number | No | Bill number | |
| status | No | Current status code | |
| congress | No | Congress number | |
| bill_type | No | Bill type code | |
| status_date | No | Date of current status | |
| sponsor_name | No | Primary sponsor name | |
| status_label | No | Current status label | |
| bill_type_label | No | Bill type label | |
| introduced_date | No | Bill introduction date | |
| title_without_number | No | Bill title without number prefix |