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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| agency | No | ||
| active_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |