Skip to main content
Glama

kafka__ShowKafkaTopicPartitionDiskusage

Query Kafka topic and partition disk usage on brokers to identify high-consumption partitions by top N, minimum size, or percentage thresholds.

Instructions

[KAFKA] 查询topic在Broker上磁盘占用情况。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "kafka__ShowKafkaTopicPartitionDiskusage"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo占用磁盘大小,查询top N。
minSizeNo占用磁盘大小,默认值1G (1K,1M,1G)。
percentageNo占用磁盘大小,查询大于占比的分区。
project_idYes项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。
instance_idYes实例ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. The word 查询 implies a read operation, but the description says nothing about scope (per-broker vs aggregated), permissions, result ordering, or what happens when no filters are supplied — all relevant for a tool with three mutually-influencing filter parameters.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler and no repetition. It is efficient, though arguably undersized for a five-parameter tool.

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

Completeness2/5

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

With five parameters, no output schema, and no annotations, the description should explain filtering behavior and what the result contains. It offers only the one-line purpose, leaving the agent without enough context to interpret the returned disk-usage data or choose sensible filter combinations.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter already has a description. The tool description adds no meaning beyond the schema — it never mentions top-N, minimum-size thresholds, or percentage filtering. Baseline 3 applies when the schema does all the work.

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

Purpose4/5

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

States a specific verb and resource: query a topic's disk usage on brokers. Clear enough that an agent can distinguish it from quota or message-read siblings, though it never names an alternative explicitly.

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

Usage Guidelines2/5

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

No when-to-use guidance and no mention of alternatives such as ShowKafkaTopicQuota or ShowInstanceTopicDetail. It also gives no hint about which of the three filtering parameters (top, minSize, percentage) to choose, leaving selection entirely to the schema.

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

Deploy Server

Other Tools