Skip to main content
Glama

das__ExportSlowSqlStatistics

Exports slow SQL statistics for a DDS Community instance after the slow SQL switch is enabled, with time-range, node, and statistics-field filters.

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

Input Schema

NameRequiredDescriptionDefault
limitNo每页记录数,默认为20,最大取值100。
end_atYes结束时间(Unix timestamp),单位:毫秒。
offsetNo偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
node_idsNo节点ID列表。
start_atYes开始时间(Unix timestamp),单位:毫秒。
project_idYes项目ID。
instance_idYes实例ID。
datastore_typeYes数据库类型。慢SQL统计支持的类型:DDS-Community。
statistics_fieldNo统计字段。支持统计的字段:node_id、sql_type、db_name、collection、user、client。默认使用node_id统计。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/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 behavioral burden. It discloses the switch prerequisite but says nothing about whether the call returns data inline or creates a downloadable/file export task, nor about result size limits — notable for a tool whose name says 'Export' but whose schema carries limit/offset paging.

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?

A single short sentence with the precondition front-loaded ahead of the action; it wastes no words. The '[DAS]' tag is minor noise but consistent with a naming convention.

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 a 9-parameter tool with no annotations and no output schema, the description is thin: it never says what an export returns, how paging interacts with 'export', or how results differ from the sibling trend/templates exports. The switch prerequisite is the only gap it fills.

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 all nine parameters (time range, instance/project, node_ids, statistics_field, paging) are already documented in the schema. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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 plus resource ('导出慢SQL统计数据'), so an agent knows this returns aggregated slow-SQL statistics rather than raw logs. It does not distinguish itself from sibling exports such as ExportSlowSqlTemplatesDetails or ExportSlowSqlTrendDetails, which also export slow-SQL data, so the boundary is left to the name alone.

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 states one real precondition ('慢SQL开关打开后'), which tells the agent the feature switch must be enabled first. It gives no guidance on when to pick this over the trend/templates/log export siblings, so the choice is only implied by the name.

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