Skip to main content
Glama

mrs__ShowSqlResultWithJob

Retrieve the SQL query results returned after a SparkSQL or SparkScript job finishes running in an MRS cluster by specifying the cluster, project, and job execution IDs.

Instructions

[MRS] 在MRS集群中查询SparkSql和SparkScript两种类型作业的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>",
      "job_execution_id": "<job_execution_id>",
      "project_id": "<project_id>"
    },
    "name": "mrs__ShowSqlResultWithJob"
  }
}

Input Schema

NameRequiredDescriptionDefault
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)。
job_execution_idYes作业ID。获取方法,请参见[获取作业ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/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, and it discloses almost nothing beyond the one-line purpose. It says nothing about read-only/side-effect profile, result size limits, pagination, truncation, or error behavior when the job execution ID is invalid or the job has not completed — all critical for a results-retrieval tool.

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?

A single well-formed sentence with the scope ('MRS集群', the two job types) front-loaded and no redundant wording. It is efficient, though the bracketed '[MRS]' tag adds little beyond the service name already implied by the cluster parameters.

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 no output schema and no annotations, the description should compensate more than it does — it never describes the shape of the returned results (rows/columns, format, size) or the job-state prerequisite in explicit terms. For a three-required-parameter retrieval tool it is minimally adequate but leaves real gaps an agent would want covered.

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 three path parameters (cluster_id, project_id, job_execution_id) are already documented with examples and doc links. The description adds only marginal meaning, implying job_execution_id must reference a SparkSql or SparkScript execution; baseline 3 applies since the schema does the heavy lifting.

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 gives a specific verb and resource ('查询...SQL语句运行完成后返回的查询结果') and scopes it to two job types, SparkSql and SparkScript, in an MRS cluster. It does not explain how it differs from the closely named sibling mrs__ShowSqlResult, so the agent gets a clear purpose but no explicit sibling differentiation.

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?

Usage is only implied: the phrase '运行完成后' signals that the job must have finished before results are retrievable, which is a useful precondition. However, there is no explicit when-to-use guidance, no statement of when to prefer mrs__ShowSqlResult or mrs__ShowSingleJobExe, and no note on what happens if the job is still running.

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