Skip to main content
Glama

das__ShowSqlExecutionPlan

Retrieves the execution plan for a specified SQL statement on a Huawei Cloud database instance, helping you inspect query behavior and diagnose performance issues before optimization.

Instructions

[DAS] 查询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": {
      "database": "<database>",
      "db_user_id": "<db_user_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>",
      "sql": "<sql>"
    },
    "name": "das__ShowSqlExecutionPlan"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSQL语句
databaseYes数据库名称
db_user_idYes数据库用户ID。用户使用数据库账号与数据库建立的连接ID(数据库用户ID由注册数据库用户接口创建)。
project_idYes项目ID
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 does not state that this is a read-only operation, whether it costs resources or is rate-limited, whether it touches the target database, or who is authorized to call it — only the bare purpose is given.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single short phrase contains no waste and is front-loaded, but it is under-specified rather than concise. There is no structure beyond a bracketed source tag and a noun phrase.

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?

This is a tool requiring five mandatory identifiers plus a SQL statement, with no annotations and no output schema. The description does not explain what plan information is returned, what permissions or connection state are needed, or how to handle a rejected or expensive SQL statement, so it is inadequate for the tool's complexity.

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 each of the five parameters described in the schema itself (sql, database, db_user_id, project_id, instance_id). The description adds no additional meaning beyond what the schema already provides, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb and resource — querying a SQL execution plan — so the intent is identifiable. However, it offers nothing to distinguish it from the very similar sibling das__ShowSqlExplain, leaving ambiguous which one an agent should pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives, no prerequisites (such as needing an existing DB user connection), and no exclusions. The agent must infer all usage context from the name alone.

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