Skip to main content
Glama

mrs__StopJob

Terminates a specified job in a MRS cluster using its cluster ID, job execution ID, and project ID. Use it to stop running or queued jobs that must be halted.

Instructions

[MRS] 在MRS集群中终止指定作业。

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__StopJob"
  }
}

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

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a destructive operation. It says the job is terminated but does not disclose whether termination is graceful or forced, what happens to job state or output, whether it is idempotent, what permissions are required, or what the response contains. For a mutation tool with zero annotation coverage, this is a significant gap.

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?

The description is a single front-loaded sentence with no wasted wording. It is efficient but extremely terse, leaving no room for prerequisites or behavioral notes.

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 destructive job-termination tool with no annotations and no output schema, the description is too thin. It omits the operational context an agent needs, such as job-state effects, permissions, and what termination actually returns.

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%, and all three path parameters have documented descriptions with links to retrieval instructions. The tool description adds no meaning beyond the schema, 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: 'terminate' a 'specified job' in an 'MRS cluster.' The [MRS] scope prefix helps distinguish it from similarly named stop-job tools in other services. It does not explicitly contrast with MRS siblings such as RunJobFlow or CreateExecuteJob, so it falls short of a 5.

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?

The description gives no when-to-use guidance, no prerequisites, and no alternatives. It does not state whether the job must be running, whether this is for cleanup versus cancellation, or when a different MRS job tool would be more appropriate. Usage must be inferred entirely from the name and schema.

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