call_endpoint
Retrieve data from the Brazilian Chamber of Deputies API by executing validated endpoint calls with required parameters.
Instructions
Calls a specific endpoint of the Brazilian Chamber of Deputies API.
This is the final tool in the workflow, used to retrieve the actual data.
The path and method must be a valid combination obtained
from the list_api_endpoints tool.
The params dictionary must contain all required parameters for the chosen endpoint,
as defined by the get_endpoint_schema tool. Both path parameters and query parameters
are passed together in this single dictionary.
Args: path (str): The endpoint path (e.g., '/deputados/{id}'). method (str): The HTTP method (e.g., 'GET'). params (dict[str, Any]): A dictionary of parameters for the endpoint.
Returns: APIResponse: An APIResponse object containing the requested data on success, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| method | Yes | ||
| params | Yes |