get_bills_by_deputy
Retrieve legislative bills authored by a specific deputy in the Brazilian Chamber of Deputies. Filter results by year to track legislative activity and proposals.
Instructions
Retrieves a list of bills (proposições) by a specific author.
This is a helper tool that abstracts the process of querying bills for a deputy.
Args: deputy_id (int): The ID of the deputy authoring the bill. years (list[str] | None): One or more years for when bills were presented. If set to None, the current year is used. Defaults to None.
Returns: APIResponse: An APIResponse object containing a list of bills on success, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deputy_id | Yes | ||
| years | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Indicates whether the tool call was successful. | |
| results | No | The successful result of the tool call. Only present if status is 'success'. | |
| error_details | No | A dictionary containing error details. Only present if status is 'error'. |