Skip to main content
Glama

update_dataset_topic_description

Modify topic descriptions in Kafka metadata to improve data catalog clarity and maintain accurate documentation across environments.

Instructions

Update topic description (in metadata).

Args: environment: The environment name. topic_name: Name of the topic. description: The description of the topic. Returns: Success message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes
topic_nameYes
descriptionNo

Implementation Reference

  • Handler function for the 'update_dataset_topic_description' tool, decorated with @mcp.tool() for registration. It updates the description of a Kafka topic's dataset metadata via an API PUT request.
    @mcp.tool() async def update_dataset_topic_description( environment: str, topic_name: str, description: Optional[str] = None ) -> Dict[str, Any]: """ Update topic description (in metadata). Args: environment: The environment name. topic_name: Name of the topic. description: The description of the topic. Returns: Success message. """ # The description cannot be an empty string so if it is, replace with a null value description_payload = { "description": description if description else None } endpoint = f"/api/v1/environments/{environment}/proxy/api/v1/datasets/kafka/{topic_name}/description" return await api_client._make_request("PUT", endpoint, description_payload)
  • The @mcp.tool() decorator registers the update_dataset_topic_description tool with the MCP server.
    @mcp.tool()
  • Docstring providing input parameters and return type description, serving as schema documentation.
    """ Update topic description (in metadata). Args: environment: The environment name. topic_name: Name of the topic. description: The description of the topic. Returns: Success message. """

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