Skip to main content
Glama

das__ExportSlowSqlTrendDetails

Exports slow SQL quantity trend details for a Huawei Cloud database instance and time range after the slow SQL switch is enabled; supports MySQL and GaussDB(for MySQL) with pagination.

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__ExportSlowSqlTrendDetails"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo每页记录数,默认为20,最大取值100。
end_atYes结束时间(Unix timestamp),单位:毫秒。
offsetNo偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
node_idNo节点ID。
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.6/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 behavioral burden, and it does disclose meaningful constraints: free instances only expose the last hour of data, and the query interval is capped at one day. It says nothing about what 'export' produces (file, download link, or async task ID), whether results are paginated, or what happens when limits are exceeded, which are the traits an agent most needs here.

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, front-loaded with the purpose followed by the two operational limits. There is no redundant restatement of the name or the schema, and every sentence carries actionable information.

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?

For an 8-parameter export tool with no output schema and no annotations, the definition covers purpose, precondition, retention window, and time-range cap well. It is still incomplete on the output contract — an agent cannot tell whether this returns data inline, a file, or a task handle to poll — which matters given the sibling AddFullSqlTask/ListFullSqlTasks pattern.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds a genuine constraint not present in the schema: start_at and end_at may span at most one day. That materially shapes how the agent must construct the two required timestamp parameters, lifting it above baseline.

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 ('导出慢SQL数量趋势' – export the slow SQL count trend), which separates it from template- or statement-oriented siblings such as ExportSlowSqlTemplatesDetails. It does not explicitly name any sibling or contrast its scope with ExportSlowSqlStatistics or ExportTopSqlTrendDetails, so the differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

It gives a real precondition ('慢SQL开关打开后', i.e. the slow SQL switch must be on) plus data-window limits, which helps an agent decide whether the call is applicable. However, it never states when to prefer a different export tool or what to do when the switch is off, so guidance remains implicit.

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