get_deputy_by_name
Search for Brazilian deputies by name using the Chamber of Deputies API to retrieve their information and legislative data.
Instructions
Retrieves a list of deputies by name.
This is a helper tool that abstracts the process of querying for a deputy by name.
Args: name (str): The name of the deputy to search for.
Returns: APIResponse: An APIResponse object containing a list of deputies on success, or an error message.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
TableJSON 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'. |