Skip to main content
Glama

das__ExportSlowQueryLogs

Exports collected slow SQL logs for a specified time range, enabling paginated retrieval of slow query data from DAS instances.

Instructions

[DAS] 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>",
      "limit": "<limit>",
      "project_id": "<project_id>",
      "start_at": "<start_at>"
    },
    "name": "das__ExportSlowQueryLogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes每页记录数。最大为2000。
end_atYes结束时间(Unix timestamp),单位:毫秒。
markerNo指定一个标识符。获取第一页时不用赋值,获取下一页时取上页查询结果的返回值。
start_atYes开始时间(Unix timestamp),单位:毫秒。
project_idYes项目ID。
instance_idYes实例ID。
datastore_typeYes数据库类型。支持MySQL、GaussDB(for MySQL)、PostgreSQL。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description still discloses the important operational traits: it is a one-shot export, retrieval is paginated/scrollable, and free-tier instances are limited to a one-hour window. It does not say what happens when the collection switch is off, nor what the export returns (file link vs. records), leaving some behavior undisclosed.

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?

Two compact sentences, front-loaded with the precondition and scope, with the free-tier caveat last where it belongs. The '[DAS]' tag and 'DAS收集慢SQL开关打开后' phrasing are slightly redundant, but nothing is wasteful.

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 a seven-parameter export tool with no output schema, the description covers the trigger condition and time/pagination scoping but says nothing about the shape of the result (download link, file, or inline rows) or error behavior when the switch is disabled. Adequate to start the call, incomplete for using the result.

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 seven parameters (including marker, start_at/end_at in milliseconds, and datastore_type) are already documented in the schema. The description only restates the time-range scoping and the pagination idea, adding no format or semantics beyond the schema, so the baseline 3 applies.

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 DAS-collected slow SQL data for a given time range, with paginated scrolling. This is clearly distinguishable in kind from statistics/trend siblings, but the description never names or contrasts any of them, so an agent must infer the boundary itself.

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 a concrete precondition (the DAS slow-SQL collection switch must already be on) and a hard usage constraint (free instances can only retrieve the last hour). It stops short of naming alternatives such as the statistics or trend export tools or saying when to prefer them.

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