get_deputy_expenses
Retrieve expense data for Brazilian deputies by name or ID, with optional filtering by year and month to track public spending.
Instructions
Gets the expenses for a single deputy, specified by name or ID.
This tool finds a deputy by their name or ID.
You must provide either name or id. If name is used and multiple
deputies are found, it will return an error asking for a more specific name or an ID.
Optional year and month parameters can be used to filter expenses.
Args: name (str | None): The full or partial name of the deputy. id (int | None): The unique ID of the deputy. year (int | None): The year to filter expenses by. month (int | None): The month to filter expenses by.
Returns: APIResponse: An APIResponse object containing the deputy's expense data on success, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| id | No | ||
| year | No | ||
| month | No |