Skip to main content
Glama

das__ExportTopSqlTrendDetails

Exports TopSQL execution-duration interval details for a Huawei Cloud DAS instance when TopSQL is enabled, supporting paid instances and query ranges up to six hours.

Instructions

[DAS] TopSQL开关打开后,导出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__ExportTopSqlTrendDetails"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_atYes结束时间(Unix timestamp),单位:毫秒。
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?

No annotations are provided, so the description carries the full burden. It usefully discloses licensing and interval constraints, but says nothing about failure behavior when the limits are violated, whether the export is synchronous, or what the caller receives (file link, task ID, inline data).

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?

Three short clauses, each carrying information, with the action stated first and the constraints following. The '[DAS]' tag is minor noise but the entry is otherwise tight and front-loaded.

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?

Adequate for a six-parameter export tool whose schema is fully described, and the hard constraints are surfaced. However, with no output schema and no annotations, the missing return-shape and async-behavior information leaves a real gap for a caller.

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 coverage is 100%, so the schema already documents all six parameters including units on start_at/end_at and the supported datastore types. The description's only added semantic is the six-hour interval cap, which the schema does not express, so it stays at 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?

States a specific verb and resource: 导出 (export) SQL执行耗时区间数据 (SQL execution-duration interval data), plus the enabling precondition (TopSQL switch on). It is distinguishable from siblings like ExportSlowSqlTrendDetails and ExportTopSqlTemplatesDetails by the data domain, but never names or contrasts them explicitly.

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?

Gives concrete usage context: only paid instances supported, TopSQL switch must be on, and the query window may not exceed six hours. These are real preconditions rather than implied usage, though it offers no guidance on when to prefer this over the sibling export tools.

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