Skip to main content
Glama
Gearset MCP Server
by jaredbt

Cancel Unit Test Job

cancel_unit_test_job

Stop a running unit testing job by its job ID to halt unnecessary or stuck test runs and save CI resources.

Instructions

Cancel a running unit testing job

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": {
      "jobId": "<jobId>"
    },
    "name": "cancel_unit_test_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesThe unit testing job ID to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/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: not the resulting job state, whether cancellation is reversible, whether a reason or confirmation is required, or what permissions are needed. The word "running" hints that only active jobs are cancellable, but this is never made explicit.

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 short sentence with the action and target front-loaded and no wasted wording. It is efficient, though its brevity is partly the cause of the missing behavioral detail rather than a virtue in itself.

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?

For a one-parameter tool this is nearly sufficient, but as a destructive/mutating operation with no annotations and no output schema, the definition should at least state that the job moves to a cancelled state and what happens when the job is not running. It is adequate but leaves meaningful gaps.

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?

There is one parameter with 100% schema description coverage ("The unit testing job ID to cancel"), so the schema already does the work. The description adds no format, sourcing, or lookup guidance for the jobId beyond what the schema states, making the baseline 3 appropriate.

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 (Cancel) and a specific resource (a running unit testing job), which distinguishes it from start_unit_test_job and from the CI-job siblings by resource name. It stops short of explicitly routing the agent away from cancel_ci_job, so it is clear but not maximally differentiating.

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 beyond the word "running": nothing says what to do if the job is already finished, whether cancellation is idempotent, or when the agent should reach for cancel_ci_job instead. The agent must infer the usage context entirely.

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