Skip to main content
Glama

cancel_unity_test_run

Cancel an active Unity Test Framework run by its run ID. Stops ongoing tests via the public CancelTestRun API on Test Framework 1.6+; older packages return an unsupported-capability error.

Instructions

Request cancellation of an active Unity Test Framework run. Uses the public CancelTestRun API when the installed Test Framework exposes it (1.6+). Older packages return an explicit unsupported-capability error.

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": {
      "runId": "<runId>"
    },
    "name": "cancel_unity_test_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesActive run ID returned by run_unity_tests

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses that this is a *request* (not a guaranteed immediate stop), that it depends on the public CancelTestRun API available in Test Framework 1.6+, and that older packages fail with an explicit unsupported-capability error. It does not say what happens to the run's recorded results or whether Editor connectivity is required, which keeps it below 5.

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

Conciseness5/5

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

Two tight sentences, action first and compatibility caveat second; every clause carries information and nothing is padded.

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

Completeness4/5

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

For a single-parameter tool with no output schema and no annotations, the definition covers purpose, the async/request nature, and the version-gated failure mode. It stops short of describing the post-cancellation state, which an agent would need to decide what to do next.

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 coverage is 100% and the only parameter's description already states it is an active run ID returned by run_unity_tests. The prose adds nothing about runId beyond the schema, so baseline 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?

States a specific verb and resource: request cancellation of an active Unity Test Framework run. It is clearly distinguishable from run_unity_tests and get_unity_test_run by the 'cancel' action, though the description itself never names a sibling to contrast with.

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 implied by 'active run' — the agent can infer this applies only to a run that is currently executing, and the schema notes the runId comes from run_unity_tests. There is no explicit when-not-to-use guidance, e.g. what to do if the run already finished or how to check status afterward.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.