Skip to main content
Glama

rds__ListSlowlogForLts

Query slow log entries for a specified RDS instance within a time range, with filters for database and SQL statement type to diagnose performance issues.

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": {
      "end_time": "<end_time>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "start_time": "<start_time>"
    },
    "name": "rds__ListSlowlogForLts"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo语句类型,取空值,表示查询所有语句类型。
limitNo每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。
databaseNo数据库名称。
end_timeYes结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
line_numNo日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。line_num应在start_time和end_time之间。
project_idYes租户在某一region下的project ID。获取方法请参见获取项目ID。
start_timeYes开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。
instance_idYes实例ID。
search_typeNo搜索方式。默认forwards。配合line_num使用,以line_num为起点,向前搜索或向后搜索。

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 must carry the full behavioral burden, and it discloses essentially nothing: not that results are paginated, not that the time window is mandatory, not that reads require the instance's LTS logging to be configured, and not what the response contains. Only the schema's line_num/search_type fields hint at pagination behavior.

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?

A single short sentence with no padding, so nothing is wasted. But the brevity is under-specification rather than efficiency, and there is no front-loaded scope, prerequisites, or pagination note.

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?

A 9-parameter, 4-required query tool with no annotations and no output schema needs the description to explain pagination flow and call prerequisites. The one-line description covers none of that, leaving the agent to reconstruct the workflow from parameter descriptions alone.

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 9 documented parameters, so the schema already explains type, database, limit, time format, and the line_num-based cursoring. The description adds no meaning beyond the schema, which is the baseline case for full coverage.

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 states a verb and a resource ("查询实例的慢日志数据"), so the general intent is clear. However, it does not distinguish this tool from closely named siblings such as rds__ListErrorlogForLts, rds__ListSlowLogStatisticsForLts, gaussdb__ListLtsSlowlogDetails, or rds__DownloadSlowlog, so an agent cannot tell which slow-log tool to pick from the text alone.

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 mention of prerequisites such as enabling LTS log collection, and no routing to alternatives. The only guidance an agent gets is implicit in the parameter names.

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