Skip to main content
Glama

delete_consumer_group

Remove a specific consumer group from a Kafka environment to manage cluster resources and maintain system organization.

Instructions

Delete a consumer group.

Args: environment: The environment name. group_id: The ID of the consumer group to delete.

Returns: The result of the delete operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes
group_idYes

Implementation Reference

  • The handler function implementing the 'delete_consumer_group' MCP tool. It deletes a Kafka consumer group by making a DELETE API request.
    @mcp.tool() async def delete_consumer_group(environment: str, group_id: str) -> Dict[str, Any]: """ Delete a consumer group. Args: environment: The environment name. group_id: The ID of the consumer group to delete. Returns: The result of the delete operation. """ endpoint = f"/api/v1/environments/{environment}/proxy/api/consumers/{group_id}" return await api_client._make_request("DELETE", endpoint)
  • Calls the registration function to register the Kafka consumer groups tools, including 'delete_consumer_group', with the MCP server.
    register_kafka_consumer_groups(mcp)
  • Imports the registration function for Kafka consumer groups tools.
    from tools.kafka_consumer_groups import register_kafka_consumer_groups

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