Openstates Get Bill
openstates_get_billFetch a single bill with full detail: versions, sponsorships, related/companion bills, actions, and votes. Pass the OpenStates ID (e.g., "ocd-bill/abc...") or a state/session/identifier triple.
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": {
"openstates_id": "ocd-bill/ca20232024-ab-123"
},
"name": "openstates_get_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Session ID, per state (Ohio "136", California "20252026"); a year or year range is resolved to the state's session. Use with jurisdiction + identifier. | |
| identifier | No | Bill identifier within the session (e.g., "AB-123") | |
| jurisdiction | No | State code (use with session + identifier) | |
| openstates_id | No | OpenStates bill ID (preferred, e.g., "ocd-bill/...") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Bill title | |
| votes | No | ||
| actions | No | ||
| chamber | No | Chamber (upper/lower) or organization | |
| session | No | Legislative session | |
| sources | No | Source URLs | |
| subject | No | Subject tags | |
| sponsors | No | ||
| versions | No | ||
| identifier | No | Bill identifier | |
| jurisdiction | No | State or jurisdiction name | |
| latest_action | No | Description of latest action | |
| openstates_id | No | OpenStates bill ID | |
| classification | No | Bill type classifications | |
| openstates_url | No | Link to OpenStates page | |
| latest_action_date | No | Date of latest action |