Skip to main content
Glama

das__ExportSqlStatements

Exports full SQL data for a chosen time range using paginated retrieval; supports MySQL and GaussDB(for MySQL) on paid instances after full SQL collection is enabled.

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>",
      "limit": "<limit>",
      "project_id": "<project_id>",
      "start_at": "<start_at>"
    },
    "name": "das__ExportSqlStatements"
  }
}

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)。

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 supplied, the description carries the full load. It usefully discloses the paid-instance restriction and that results are paginated via scroll/marker, but says nothing about what happens if the switch is off, whether exports are expensive or rate-limited, or what the response contains.

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?

Two short sentences, front-loaded with the switch prerequisite and the paid-instance caveat. No filler or redundancy.

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 7-parameter export with no annotations and no output schema, the description covers the key prerequisite and pagination model but omits what the response looks like, how to detect an incomplete export, and error behavior when the switch is disabled.

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%, with descriptions for every parameter including marker pagination semantics and the 2000-row page cap. The description only restates that a time range and paginated retrieval exist, adding no format or constraint detail beyond the schema, so 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?

The description gives a specific verb (export) and resource (full SQL statements within a time range), plus the scoping condition that the full-SQL switch must be enabled. It does not explicitly separate itself from the similarly named sibling das__ExportFullSqlDetails, leaving ambiguity about which export to pick.

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 two real preconditions: the full-SQL switch must already be on, and the feature is only available on paid instances — enough for an agent to rule out free-tier instances. It stops short of naming an alternative tool for when those conditions fail, so it is clear context without exclusions.

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