Skip to main content
Glama

rds__ListSlowlogStatistics

Retrieves slow query log statistics for a specified RDS instance and time range, letting you filter by statement type and sort by execution time or frequency to analyze database performance.

Instructions

[RDS] 获取慢日志统计信息

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": {
      "cur_page": "<cur_page>",
      "end_date": "<end_date>",
      "instance_id": "<instance_id>",
      "per_page": "<per_page>",
      "project_id": "<project_id>",
      "start_date": "<start_date>",
      "type": "<type>"
    },
    "name": "rds__ListSlowlogStatistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo取值范围:"executeTime",表示按执行时间降序排序,不传或者传其他表示按执行次数降序排序
typeYes语句类型,ALL表示查询所有语句类型,也可指定日志类型
cur_pageYes当前页号
end_dateYes结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
per_pageYes每页多少条记录,取值范围0~100
project_idYes项目ID。
start_dateYes开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
instance_idYes实例ID。

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 burden, and it discloses almost nothing: not that this is a read-only aggregation, not pagination behavior (cur_page/per_page), not what the statistics aggregate over, and not permission requirements. Only the word '获取' weakly signals a read 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?

The single fragment is technically concise with zero filler, but its brevity comes from under-specification rather than disciplined editing. There is no front-loaded structure distinguishing scope, output, or usage.

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 an eight-parameter, seven-required tool with a time range, statement-type enum, sort option, and pagination, and with no annotations or output schema, the description should explain what is aggregated and in what unit. Instead it offers one short phrase, so an agent has little basis for interpreting results.

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 all eight parameters documented including the sort/type enums and the page-size range, so the baseline is 3. The description adds no meaning beyond the schema — notably it never explains that results can be ordered by execution time versus execution count.

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 and resource ('获取慢日志统计信息' / get slow-log statistics), so the general domain is clear. But it does not say which statistics are returned or how this differs from near-identical siblings such as rds__ListSlowLogStatisticsForLts, rds__ListSlowlogForLts, and rds__DownloadSlowlog, leaving the agent to guess.

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 at all — no indication of when to prefer this aggregate-statistics call over the plain slow-log listing or the LTS variants, and no prerequisites noted. The only usage hint an agent can infer is from the schema's required time range and instance_id.

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