Skip to main content
Glama

get_topic_broker_configs

Retrieve Kafka broker configuration details for a specific topic to manage and optimize data streaming across clusters.

Instructions

Get broker configurations for a topic.

Args: environment: The environment name. topic_name: Name of the topic.

Returns: List of broker configuration details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes
topic_nameYes

Implementation Reference

  • The main handler function for the 'get_topic_broker_configs' tool. It is decorated with @mcp.tool() which handles registration. Makes a GET request to retrieve broker configurations for the specified topic.
    @mcp.tool() async def get_topic_broker_configs(environment: str, topic_name: str) -> List[Dict[str, Any]]: """ Get broker configurations for a topic. Args: environment: The environment name. topic_name: Name of the topic. Returns: List of broker configuration details. """ endpoint = f"/api/v1/environments/{environment}/proxy/api/topics/{topic_name}/brokerConfigs" return await api_client._make_request("GET", endpoint)
  • Calls register_topics(mcp) which defines and registers the get_topic_broker_configs tool among others.
    register_topics(mcp)

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/stereosky/lenses-mcp'

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