Skip to main content
Glama

dis__ShowCursor

Obtains a data cursor for a DIS stream partition, letting you read records from a chosen position using sequence numbers, timestamps, TRIM_HORIZON, or LATEST.

Instructions

[DIS] 本接口用于获取数据游标。

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": {
      "partition-id": "<partition-id>",
      "project_id": "<project_id>",
      "stream-name": "<stream-name>"
    },
    "name": "dis__ShowCursor"
  }
}

Input Schema

NameRequiredDescriptionDefault
timestampNo开始读取数据记录的时间戳,与游标类型AT_TIMESTAMP强相关,二者共同确定读取数据的位置。
project_idYes项目ID。
cursor-typeNo游标类型。
stream-nameYes已创建的通道名称。
partition-idYes通道的分区标识符。
starting-sequence-numberNo序列号。序列号是每个记录的唯一标识符。序列号由DIS在数据生产者调用PutRecords操作以添加数据到DIS数据通道时DIS服务自动分配的。同一分区键的序列号通常会随时间变化增加。PutRecords请求之间的时间段越长,序列号越大。

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 supplied, so the description carries the full disclosure burden and mostly fails it. It does not say whether the operation is read-only, whether the cursor is short-lived or reusable, whether it must be committed, or what a successful response 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 efficient and front-loaded, with no wasted wording. However it is undersized for a six-parameter tool with a nontrivial cursor-type enum, so brevity comes at the cost of specification.

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?

Given six parameters, three of them required, an enum-driven cursor type, no annotations, and no output schema, the definition is too thin. It does not explain how the required partition, stream, and project identifiers combine with cursor-type, nor what the tool returns.

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 six parameters including the cursor-type enum and the timestamp/sequence-number semantics are already documented in the schema. The description adds no additional meaning beyond that 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 says the tool retrieves a data cursor, which is a clear verb plus resource, but it stops there with no indication of scope (stream/partition/consumer) or how it differs from cursor-related siblings such as lts__ShowCursorByTime or lts__ShowCursorTime. An agent can tell it is a cursor getter but not which cursor getter to pick.

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, no prerequisites, and no exclusions. Nothing explains when a cursor should be obtained with this call versus by time, or what the caller is expected to do with the returned cursor.

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