Skip to main content
Glama

ohmyho.st

Cancel a finite job run

container_job_cancel
DestructiveIdempotent

Request cancellation of exactly one run. A queued job incurs no run cost. A running job settles measured duration up to its cap. Poll for confirmation.

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": {
      "project_id": "<project_id>",
      "environment_id": "<environment_id>",
      "run_id": "<run_id>"
    },
    "name": "container_job_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
project_idYesProject identifier.
environment_idYesEnvironment identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false, so the safety profile is covered. The description adds genuinely non-redundant behavior: queued jobs incur no run cost, running jobs settle measured duration up to a cap, and cancellation is asynchronous requiring polling. What is missing is what happens on an already-terminal run or on invalid run_id.

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?

Four short sentences, front-loaded with the action and scope, then cost implications, then the follow-up step. Every sentence carries information an agent would otherwise have to guess.

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 3-parameter mutation with no output schema, the description covers scope, billing/settlement consequences, and the async polling requirement – the key things an agent needs to call it correctly and handle the result. Only edge-case states and error behavior are absent.

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 67% and project_id/environment_id are already described in the schema; run_id has only a pattern. The description's "exactly one run" reinforces that run_id is singular but adds no format, provenance, or lookup guidance beyond the schema. Baseline 3 is 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?

"Request cancellation of exactly one run" gives a specific verb (cancel), resource (job run), and cardinality constraint (exactly one). It is clearly distinct from container_job_get and container_job_start, though it doesn't name any sibling explicitly.

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?

The scope constraint implies when this is appropriate (single run cancellations), and "Poll for confirmation" tells the agent about follow-up behavior. However, there is no explicit statement of when not to use it, no alternative named, and no preconditions such as run state requirements.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.