get_bill
Pack: legiscan · Endpoint: https://gateway.pipeworx.io/legiscan/mcp
Get the full detail for a single US legislative bill — status, sponsors (name/party/role), subjects, and links to the bill text. Use the bill_id returned by search_bills. Example: get_bill({ bill_id: 1234567 })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bill_id | number | yes | LegiScan bill_id (obtained from search_bills results). |
_apiKey | string | no | Optional — your own LegiScan API key for higher limits; omit to use the shared Pipeworx key. |
Example call
Arguments
{
"bill_id": 1234567
}
curl
curl -X POST https://gateway.pipeworx.io/legiscan/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_bill","arguments":{"bill_id":1234567}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_bill', {
"bill_id": 1234567
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"legiscan": {
"url": "https://gateway.pipeworx.io/legiscan/mcp"
}
}
}
See Getting Started for client-specific install steps.