Skip to main content
Glama

get_topic_metadata

Retrieve metadata including schema details and tags for a specific Kafka topic in a given environment.

Instructions

Get metadata for a specific topic.

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

Returns: Topic metadata including schema information and tags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes
topic_nameYes

Implementation Reference

  • The core handler function implementing the 'get_topic_metadata' MCP tool. It fetches topic metadata via an API GET request to the specified endpoint.
    @mcp.tool() async def get_topic_metadata(environment: str, topic_name: str) -> Dict[str, Any]: """ Get metadata for a specific topic. Args: environment: The environment name. topic_name: Name of the topic. Returns: Topic metadata including schema information and tags. """ endpoint = f"/api/v1/environments/{environment}/proxy/api/metadata/topics/{topic_name}" return await api_client._make_request("GET", endpoint)
  • The call to register_topics(mcp) which executes the definition and registration (via @mcp.tool() decorator) of the 'get_topic_metadata' tool.
    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