Skip to main content
Glama

drs__ShowReplayResults

Retrieve DRS replay results to inspect time-based statistics, slow SQL, and error SQL, helping troubleshoot database replay jobs.

Instructions

[DRS] 获取录制回放结果数据,包括:回放基于时间维度统计信息,异常SQL及统计结果、慢SQL及统计结果

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": {
      "job_id": "<job_id>",
      "project_id": "<project_id>",
      "type": "<type>"
    },
    "name": "drs__ShowReplayResults"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes结果类型。取值:
limitNo分页查询数据表当前页数据总量,在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
job_idYes任务ID。
offsetNo分页查询数据表当前超始偏移量, 在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
end_timeNo查询数据的结束时间,在type为shard_statistics、slow_sql、error_sql时必填
sort_dirNo排序规则,取值如下:desc
sort_keyNo返回结果按该关键字排序(slow_sql_template支持count,maxLatency、avgLatency关键字,error_sql_template支持count关键字)
is_sampleNo是否查询样例true/false,type=slow_sql/error_sql时生效,值为true时只查询一条样例数据。
error_typeNo错误分类,type=error_sql/error_sql_template时生效,根据错误分类过滤数据。
project_idYes租户在某一Region下的Project ID。 获取方法请参见[获取项目ID。](https://support.huaweicloud.com/api-drs/drs_api_0106.html)
start_timeNo查询数据的起始时间,在type为shard_statistics、slow_sql、error_sql时必填
target_nameNo回放数据库名称,用于在一致性回放策略场景,过滤目标库与源库镜像库回放结果。参数非必须,不提供则默认查询所有数据,其取值如下:
sql_template_md5Nosql模板md5,type=slow_sql/error_sql时生效,根据模板过滤对应的异常SQL和慢SQL,该值为本接口type=slow_sql_template/error_sql_template时的返回字段。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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, yet it discloses only that this is a retrieval operation. It says nothing about required permissions, pagination behavior, whether `limit`/`offset` are truly mandatory for certain types, or how much data a typical call returns.

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

Conciseness4/5

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

One compact sentence with the resource named first and the payload categories listed after, so it is front-loaded and free of filler. The `[DRS]` prefix is a minor waste, but overall the sentence earns its place.

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?

For a tool with 13 parameters, 7 enum result types, and no output schema or annotations, one sentence is thin. It does not explain the conditional requirements across `type` values, how results are paginated, or what the returned structures look like, leaving the agent to reconstruct the call pattern entirely from the schema.

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 13 parameters are already documented with per-value mandatory conditions, enums, and defaults. The description adds only a loose mapping between result content categories and `type` values, which is baseline-level added meaning.

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 (get replay results) and enumerates the payload contents: time-dimension statistics, abnormal SQL with statistics, and slow SQL with statistics. An agent can tell what data comes back, though it never contrasts itself with sibling result tools like drs__BatchCheckResults or drs__ShowDirtyData.

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?

The description states no conditions for when to call this tool, no prerequisites (e.g. that a replay job must have completed), and no alternatives or exclusions. The choice among result types is only visible through the schema's `type` enum, not through the description text.

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