Skip to main content
Glama

das__CreateTuning

Runs SQL diagnostics on a Huawei Cloud DAS database connection to analyze a SQL script and return tuning recommendations for the specified database and schema.

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": {
      "connection_id": "<connection_id>",
      "database_name": "<database_name>",
      "project_id": "<project_id>",
      "sql_script": "<sql_script>"
    },
    "name": "das__CreateTuning"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idNo节点Id
node_typeNo节点类型
project_idYes项目ID
sql_scriptYessql脚本
schema_nameNoschema名称
connection_idYes连接ID
database_nameYes数据库名称

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden and delivers nothing: no indication of whether this is a long-running asynchronous task, whether it mutates state, what permissions the connection requires, or what happens to prior tuning results. The single phrase "execute SQL diagnosis" leaves every behavioral trait undisclosed.

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

Conciseness2/5

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

It is certainly short, but this is under-specification rather than conciseness: a bare phrase with a trailing comma and a product tag that carries no information for the agent. Nothing is front-loaded because there is nothing to front-load.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A seven-parameter tool with no annotations and no output schema needs the description to explain what a successful call yields and whether results must be polled. None of that is present, so the definition 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 description coverage is 100%, so all seven parameters including sql_script, connection_id, database_name, schema_name, node_id and node_type are already documented in the schema. The description adds no meaning beyond that, which lands at the baseline for high-coverage schemas.

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

Purpose2/5

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

The description is a single fragment, "[DAS] 执行SQL诊断," which says the tool executes SQL diagnosis but never specifies what is produced or how it differs from sibling das__ShowTuning. The name suggests creating a tuning task while the text suggests running a diagnosis, so the two do not converge on one clear purpose.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no prerequisites (the four required parameters imply an existing connection, project and database), and no mention of alternatives such as das__ShowTuning or drs__UpdateTuningParams. An agent must guess from the name alone whether this starts a new diagnostic task.

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