Skip to main content
Glama

dis__ShowConsumerState

Queries the consumption state of a specified app on a DIS stream, returning partition checkpoint data to help monitor reading progress.

Instructions

[DIS] 本接口用于查询APP消费状态。

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": {
      "app_name": "<app_name>",
      "checkpoint_type": "<checkpoint_type>",
      "project_id": "<project_id>",
      "stream_name": "<stream_name>"
    },
    "name": "dis__ShowConsumerState"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo单次请求返回的最大分区数。最小值是1,最大值是1000;默认值是100。
app_nameYes需要查询的App名称。
project_idYes项目ID。
stream_nameYes需要查询的通道名称。
checkpoint_typeYesCheckpoint类型。
start_partition_idNo从该分区值开始返回分区列表,返回的分区列表不包括此分区。

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?

No annotations are provided, so the description carries the full burden. It implies a read operation via '查询', but discloses nothing about permissions, whether the result is paginated (even though limit and start_partition_id suggest pagination), or what the returned 'consumption state' actually contains.

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?

The single sentence is front-loaded and contains no filler, but for a six-parameter read tool it is under-specified rather than efficiently concise. Minimal length here reflects missing information, not disciplined writing.

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 six parameters, no annotations, and no output schema, the description should clarify what is returned and how checkpoint_type and partition paging interact. It provides none of that, leaving an agent unable to predict results or fully understand the operation.

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%, with each parameter documented in the schema itself, so the baseline is 3. The description adds no extra meaning about required parameters, the LAST_READ checkpoint enum, or the pagination semantics of start_partition_id and limit.

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 gives a verb ('查询' / query) and a resource ('APP消费状态' / app consumption status), so the general intent is identifiable. However, '消费状态' is vague and does not distinguish this tool from closely named siblings such as dis__ShowCheckpoint, dis__ShowCursor, or dis__ShowPartitionMetrics, which plausibly expose related state.

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 guidance on when this tool should be used instead of alternatives like ShowCheckpoint or ShowCursor, nor any stated prerequisites or exclusions. 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