Skip to main content
Glama

list_topics

Retrieve detailed information about all Kafka topics in a specified environment to manage and explore data across clusters.

Instructions

Retrieve information about all topics.

Args: environment: The environment name.

Returns: List of all topics with detailed information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes

Implementation Reference

  • The handler function for the 'list_topics' tool. It makes a GET request to the API endpoint to retrieve all topics for the specified environment.
    @mcp.tool() async def list_topics(environment: str) -> List[Dict[str, Any]]: """ Retrieve information about all topics. Args: environment: The environment name. Returns: List of all topics with detailed information. """ endpoint = f"/api/v1/environments/{environment}/proxy/api/topics" return await api_client._make_request("GET", endpoint)
  • Top-level registration of the topics tools module, which includes the 'list_topics' tool, by invoking register_topics(mcp).
    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