Skip to main content
Glama

kafka__ShowInstanceMessages

Query and inspect Kafka message offsets and content by topic, partition, time range, or keyword, with paging and download controls.

Instructions

[KAFKA] 查询消息的偏移量和消息内容。

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__ShowInstanceMessages"
  }
}

Input Schema

NameRequiredDescriptionDefault
ascNo是否按照时间排序。
limitNo每一页显示的message数量。
topicYesTopic名称。
offsetNo页数。
keywordNo关键词。
downloadNo是否下载。
end_timeNo结束时间。
partitionNo分区。
project_idYes项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。
start_timeNo开始时间。
instance_idYes实例ID。
message_offsetNo消息偏移量。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and discloses almost nothing. It implies a read operation via 查询, but never explains pagination semantics (offset/limit interaction), what the download flag actually does (file emission? side effect?), time-range filtering behavior of start_time/end_time, or any result-size or rate limits.

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 sentence with no filler, but it is under-specified rather than concise for a 12-parameter tool: there is no structure, no front-loaded distinction, and no secondary sentence to cover paging or filtering.

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?

A 12-parameter message-query tool with no annotations and no output schema needs the description to explain paging, time filtering, and what the download switch produces. The one-line description covers none of this, leaving the agent to guess at behavior that the structured fields cannot convey.

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 all 12 parameters including asc, limit, offset, download, message_offset and partition are already documented in the schema, which sets the baseline at 3. The description adds no extra meaning such as how offset/limit combine for paging or how message_offset relates to a starting point, so it does not exceed the baseline.

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

Purpose3/5

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

The description states a generic verb (查询/query) plus the resource (消息/messages) and adds that offsets and message content are returned, which is more than a pure restatement of the name. However, it gives no scope qualifier (instance-level? topic-level? partition-level?) and does nothing to separate it from the sibling kafka__ShowMessages, so an agent cannot pick between them from the text alone.

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, when-not-to-use, or prerequisite guidance at all — no mention of required permissions, whether the instance must be running, or how this differs from ShowMessages or ListInstanceConsumerGroupMessageOffset. The agent must infer usage entirely from the name and 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