get_bills_by_year
Retrieve all bills from a specific year, with optional filters for agency (House or Senate) and active status.
Instructions
Retrieve all bills from a specific year with optional filtering.
This function retrieves all legislation for a year and allows filtering by agency (House or Senate) and active status.
Args: year: Year in format "YYYY" (e.g., "2025") (optional, defaults to current) agency: Filter by originating agency ("House" or "Senate") (optional) active_only: If True, only return active bills
Returns: Dict containing list of bills matching the criteria
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_bills_by_year"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| agency | No | ||
| active_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |