Skip to main content
Glama

das__ExportSlowSqlTemplatesDetails

Exports slow SQL template details for a Huawei Cloud database instance after slow SQL collection is enabled, with time-range and pagination filters for analysis.

Instructions

[DAS] 慢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": {
      "datastore_type": "<datastore_type>",
      "end_at": "<end_at>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "start_at": "<start_at>"
    },
    "name": "das__ExportSlowSqlTemplatesDetails"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo每页记录数,默认为20,最大取值100。
end_atYes结束时间(Unix timestamp),单位:毫秒。
offsetNo偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
db_nameNo数据库名称。
start_atYes开始时间(Unix timestamp),单位:毫秒。
project_idYes项目ID。
instance_idYes实例ID。
datastore_typeYes数据库类型。支持MySQL和GaussDB(for MySQL)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry the full behavioral burden. It usefully discloses the switch precondition and data-retention and interval constraints, but it never says what the export produces (file, download link, or async task), whether permissions beyond the switch are needed, or how large exports behave.

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

Conciseness5/5

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

Three short sentences, each carrying a distinct constraint, with the purpose front-loaded before the limitations. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description is the only place the return value could be explained, and it omits that entirely. For an eight-parameter export tool, the precondition and time-window rules are helpful, but the missing return-shape information is a real gap.

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 the schema already documents every parameter, including units and defaults. The one-day interval limit adds some meaning to start_at/end_at, but the description says nothing about how db_name, limit, or offset interact with the export.

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 gives a specific verb (export) plus resource (slow SQL template list), which separates it from sibling resources such as trend details, statistics, and top SQL templates. It does not explicitly say the sibling tools that cover those other resources, but the resource noun alone is distinguishing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the prerequisite that the slow SQL switch must be on, plus two hard usage limits (free instances see only the last hour; max one-day query interval). It stops short of naming an alternative tool for cases where those limits do not apply.

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