Skip to main content
Glama

das__ExportFullSqlDetails

Export full SQL details from DAS paid instances by querying SQL insight tasks with filters for node, username, database, operation type, time range, cost, and status.

Instructions

[DAS] 全量SQL开关打开后,创建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": {
      "end_at": "<end_at>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "start_at": "<start_at>"
    },
    "name": "das__ExportFullSqlDetails"
  }
}

Input Schema

NameRequiredDescriptionDefault
ascNo排序顺序(true:正序, false:逆序)。
pageNo页码。
fuzzyNo是否模糊匹配。
limitNo每页记录数。最大为100。
end_atYes结束时间(Unix timestamp),单位:毫秒。
db_listNo数据库(可组合,用空格分隔)。
keywordNo关键字(可组合,用逗号分隔)。
node_idNo节点ID。
cost_maxNo最大执行耗时(毫秒)。
cost_minNo最小执行耗时(毫秒)。
scan_maxNo最大扫描行数。
scan_minNo最小扫描行数。
start_atYes开始时间(Unix timestamp),单位:毫秒。
task_idsNoSQL洞察任务ID列表,时间范围大于1天的SQL洞察任务后台将拆分为多个任务解析,该场景支持多任务过滤导出。
user_listNo用户名(可组合,用空格分隔)。
affect_maxNo最大影响行数。
affect_minNo最小影响行数。
project_idYes项目ID。
return_maxNo最大返回行数。
return_minNo最小返回行数。
sort_fieldNo排序字段(execute_at:执行时间, execute_cost:执行耗时, lock_wait_time:锁等待时间, rows_examined:扫描行数, rows_returned:返回行数)。execute_at
instance_idYes实例ID。
status_listNo执行状态(0:成功,1:失败,可组合,用空格分隔)。
trx_id_listNo事务ID(可组合,用空格分隔)。
client_ip_listNo客户端IP(可组合,用空格分隔)。
operation_listNo操作类型(可组合,用空格分隔)。
thread_id_listNo线程ID(可组合,用空格分隔)。
session_id_listNo会话ID(可组合,用空格分隔)。
sql_template_idsNoSQL模板ID(可组合,用空格分隔)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

无annotations,描述补充了关键行为信息:需要先打开全量SQL开关、会创建SQL洞察任务、仅付费实例支持,提示可能存在任务创建副作用和实例类型限制。但未说明导出是否异步、权限要求、限流/失败行为或返回结果形态,对29参数工具仍不充分。

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?

单句紧凑,前置了开关前提和核心导出动作,没有重复参数列表,信息密度较高。仅“创建SQL洞察任务”嵌在句中略突兀,但整体仍简洁有效。

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?

工具复杂:29个参数、无output schema、无annotations,而描述只覆盖目的、前置条件和少量筛选维度。分页、排序、返回内容、异步任务处理等调用者需要知道的信息均缺失,相对复杂度不够完整。

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描述覆盖率100%,29个参数(含分页、排序、时间范围、各类过滤列表)均已在schema中说明。描述只概括提到节点、用户名、数据库、操作类型等筛选维度,未在schema之外增加参数含义,按覆盖率基线给3。

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?

明确写出动词“导出”和资源“全量SQL明细数据”,并说明需要全量SQL开关打开、可按节点、用户名、数据库、操作类型等筛选。与慢SQL/Top SQL导出类兄弟工具相比,资源范围有区分度;虽未点名替代工具,但核心用途清楚。

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?

给出了两个重要前提:全量SQL开关已打开、仅付费实例可用,这构成了使用上下文。但没有说明何时应改用ExportSlowSqlTemplatesDetails等替代工具,也未说明开关未打开时应如何处理,替代路径缺失。

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