Skip to main content
Glama

list_consumer_groups

Retrieve all Kafka consumer groups from a specified environment to monitor and manage data consumption across clusters.

Instructions

Retrieve a list of all Kafka consumer groups.

Args: environment: The environment name.

Returns: A list of consumer group objects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes

Implementation Reference

  • Handler function that executes the list_consumer_groups tool logic by querying the API for consumer groups in the given environment.
    @mcp.tool() async def list_consumer_groups(environment: str) -> List[Dict[str, Any]]: """ Retrieve a list of all Kafka consumer groups. Args: environment: The environment name. Returns: A list of consumer group objects. """ endpoint = f"/api/v1/environments/{environment}/proxy/api/consumers" return await api_client._make_request("GET", endpoint)
  • Registers the kafka_consumer_groups tools (including list_consumer_groups) with the FastMCP server instance.
    register_kafka_consumer_groups(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