Skip to main content
Glama
BhaumikAbhishek

OCI Kafka MCP Server

oci_kafka_analyze_lag_root_cause

Diagnose why a consumer group is falling behind by analyzing consumer lag, partition health, and cluster status to identify root causes.

Instructions

Analyze consumer lag and identify potential root causes.

Collects consumer group state, per-partition lag, topic partition details, and cluster health to diagnose why a consumer group may be falling behind.

This tool gathers data only — the LLM agent should interpret the findings and present a root cause analysis to the user.

Args: group_id: The consumer group ID to analyze.

Returns a diagnostic report with:

  • Consumer group state and member count

  • Per-partition lag breakdown with severity classification

  • Topic health (partition count, replication status)

  • Cluster health context (broker count, controller status)

  • Potential root causes ranked by likelihood

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It clearly states the tool is read-only ('gathers data only') and details the data collected (consumer group state, lag, topic health, cluster health). Lacks mention of permissions or potential side effects, but for a diagnostic tool this is adequate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is concise with 4 sentences plus a bullet list of return components. First sentence states purpose, then explains tool's role, then parameter, then return value. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity and the presence of an output schema (not provided), the description covers purpose, parameter, and return structure. However, it lacks information on error cases or prerequisites (e.g., consumer group existence). Still sufficient for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must compensate. It adds a brief explanation for group_id: 'The consumer group ID to analyze.' While minimal, it provides necessary context for the single required parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States specific verb+resource 'Analyze consumer lag and identify potential root causes', clearly distinguishing it from siblings like get_consumer_lag which only retrieves raw lag data. The description makes its diagnostic nature explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides context that the tool gathers data only and the LLM agent interprets results, implying it should be used for root cause analysis rather than direct lag retrieval. However, it does not explicitly compare to alternatives like describe_consumer_group or get_consumer_lag.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/BhaumikAbhishek/oci-kafka-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server