Skip to main content
Glama

mrs__ShowSqlResult

Retrieves the execution result of a submitted SQL query in an MRS cluster using the cluster ID, project ID, and SQL ID.

Instructions

[MRS] 在MRS集群中查询一条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>",
      "sql_id": "<sql_id>"
    },
    "name": "mrs__ShowSqlResult"
  }
}

Input Schema

NameRequiredDescriptionDefault
sql_idYesSQL的执行ID,即提交SQL语句返回结果中的sql_id。
cluster_idYes集群ID。获取方法,请参见[获取集群ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。
project_idYes项目编号。获取方法,请参见[获取项目ID](https://support.huaweicloud.com/api-mrs/mrs_02_0011.html)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and does not meet it. It does not say whether the call is read-only, whether it blocks until the SQL finishes, what happens if the SQL is still running or failed, whether results are paginated or truncated, or what permissions are required.

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?

One short sentence, front-loaded with the bracketed service tag and the core action, with no filler. Its brevity is efficient, though it borders on under-specification rather than tightness.

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?

For a tool with no annotations and no output schema, the description should at least sketch what an 'execution result' contains and any preconditions on the SQL's state. As written, an agent knows what the call is for but not enough about its behavior or return to invoke it confidently.

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%: all three required parameters (sql_id, cluster_id, project_id) are documented in the schema, including how to obtain the cluster and project IDs. The description adds no meaning beyond that, so the baseline of 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 states a specific verb and resource: query the execution result of one SQL statement in an MRS cluster. That is unambiguous on its own, but it never contrasts with the sibling mrs__ShowSqlResultWithJob, which by name alone appears to answer a very similar question, so an agent gets no help telling the two apart.

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 when-to-use guidance, no prerequisite such as 'the SQL must have been submitted and completed', and no pointer to the alternative tool for job-based result retrieval. The only hint at usage context comes from the input schema's note that sql_id is returned by the SQL-submission call, not from the description.

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