Skip to main content
Glama

kafka__ListTopicPartitions

Retrieves the partition list for a Kafka topic using the instance ID, project ID, and topic, with optional limit and offset for paginated results.

Instructions

[KAFKA] 查询Topic的分区列表

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>",
      "topic": "<topic>"
    },
    "name": "kafka__ListTopicPartitions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo查询返回记录的数量限制
topicYes主题
offsetNo偏移量,表示查询该偏移量后面的记录
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.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a read-only listing but says nothing about permission or instance-state requirements, whether results are paginated, how ordering works, or what happens when the topic has no partitions. For a 5-parameter tool with zero annotation coverage, this is a significant gap.

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

Conciseness3/5

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

It is a single short phrase with no wasted words, and the core verb+resource is front-loaded. However, brevity here stems from under-specification rather than disciplined editing, so it only reaches the minimum-viable tier.

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, a required path triple, and no output schema or annotations, the description should say at least what a partition entry contains or how offset/limit interplay. It provides none of that, leaving the agent to infer return shape and paging behaviour entirely.

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 description coverage is 100%, so topic, instance_id, project_id, limit and offset are already documented in the schema, including bounds and the project_id lookup reference. The description adds no extra meaning about how these combine, so the baseline of 3 applies.

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?

The description states a specific verb and resource: querying the partition list of a Kafka topic (查询Topic的分区列表). An agent can tell this is a list operation over topic partitions. It does not distinguish itself from neighbours like kafka__ShowInstanceTopicDetail or kafka__ShowKafkaTopicPartitionDiskusage, which also surface partition-related data.

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?

There is no when-to-use guidance at all: no prerequisites such as the topic or instance needing to exist, no indication of when to pick this over ShowInstanceTopicDetail or ShowKafkaTopicPartitionDiskusage, and no mention of how pagination parameters affect repeated calls.

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