Skip to main content
Glama

kafka__ResetMessageOffsetWithEngine

Reset a Kafka consumer group's message offset by partition, timestamp, or specific offset; stop the group's clients first because online resets are not supported.

Instructions

[KAFKA] 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": {
      "group": "<group>",
      "instance_id": "<instance_id>",
      "partition": "<partition>",
      "project_id": "<project_id>"
    },
    "name": "kafka__ResetMessageOffsetWithEngine"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupYes消费组名称。
topicNotopic名称。
partitionYes分区编号,默认值为-1,若传入值为-1,则重置所有分区。
timestampNo重置消费进度到指定时间,格式为unix时间戳,单位为毫秒。
project_idYes项目ID。
instance_idYes实例ID。
message_offsetNo重置消费进度到指定偏移量。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a genuinely important behavioral constraint: Kafka instances cannot reset offsets while consumers are online, so clients must be stopped. It does not state that this is a mutating operation on group state, whether the reset is reversible, or what happens to in-flight consumers, leaving significant disclosure gaps for a write operation.

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?

Two short sentences with no filler, but they are ordered constraint-first and the actual purpose statement is missing entirely, so the text is not front-loaded around what the tool does. A leading sentence naming the reset action would make the same length far more useful.

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

Completeness3/5

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

For a 7-parameter, unannotated, no-output-schema mutation tool, the definition covers the one critical operational caveat but omits the operation's own semantics and consequences. Given 100% schema coverage the parameters are fine, yet the description should say more about the reset's effect on the group.

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% over 7 parameters, including the documented -1 sentinel for partition and the two mutually competing reset targets (timestamp vs message_offset). The description adds nothing beyond the schema, so the baseline of 3 applies.

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 only alludes to the action via the phrase '在执行重置消费进度之前' (before resetting consumption progress); it never states outright that this tool resets a consumer group's offset for a topic/partition to a timestamp or message_offset. The resource is named only obliquely and no sibling (e.g. kafka__ListInstanceConsumerGroupMessageOffset, rocketmq__ResetConsumeOffset) is contrasted, so an agent must infer the operation from the tool name.

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

Usage Guidelines3/5

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

It gives one strong precondition — the affected consumer group's clients must be stopped first — which directly shapes when the call is valid. However, it offers no alternatives, no 'when not to use', and no guidance on choosing between the offset-based and timestamp-based reset paths implied by 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