Skip to main content
Glama

dws__ShowQueryDetail

Retrieves SQL execution details for a specific query ID in a GaussDB(DWS) cluster using the cluster, project, and query identifiers, helping you inspect and diagnose query execution.

Instructions

[DWS] 查询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": {
      "cluster_id": "<cluster_id>",
      "project_id": "<project_id>",
      "query_id": "<query_id>"
    },
    "name": "dws__ShowQueryDetail"
  }
}

Input Schema

NameRequiredDescriptionDefault
ctimeNo采集时间。
query_idYes查询ID。
cluster_idYes**参数解释**:
project_idYes**参数解释**:

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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 disclosure burden and fails to meet it. It implies a read-only lookup, but says nothing about permissions, behavior when the query_id is unknown or expired, returned fields, or any retention/time-window constraints despite a ctime parameter.

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?

A single short sentence is front-loaded and waste-free, but its brevity here reflects under-specification rather than disciplined conciseness. There is nothing extraneous, yet nothing beyond the bare topic statement.

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?

With four parameters, three required, no annotations, and no output schema, the definition leaves the agent guessing about scope and results. Given the tool's simplicity (a detail lookup), the minimal description is barely workable, but it should at least state what is returned and whether read access is required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no meaning for any of the four parameters. Although coverage is nominally 100%, the schema entries for the two key scoping parameters (cluster_id, project_id) are literal placeholders ("**参数解释**:"), so the schema contributes no real semantics for the description to build on.

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?

"查询SQL执行信息" gives a verb (query) and a resource (SQL execution information), so the agent can tell it returns execution details for a query. But this is essentially a restatement of the name ShowQueryDetail and offers nothing to separate it from the other ShowQueryDetail/Show*Detail siblings in the catalog, so the function is only minimally differentiated.

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?

No statement of when to call this versus alternatives, no prerequisites (e.g., that a valid query_id must already exist), and no exclusions. The agent must infer usage entirely from the name.

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