Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
methodYes
paramsYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vrtornisiello/mcp-camara'

If you have feedback or need assistance with the MCP directory API, please join our Discord server