Skip to main content
Glama

cancel_training_job

Cancel a queued or running training job by job_id; running work stops cooperatively, so poll training status to confirm the terminal state. Finished work is not undone.

Instructions

Request cancellation of a queued or running job by job_id. Running work stops cooperatively, so poll get_training_status to confirm the terminal state. A request does not undo finished work.

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": {
      "job_id": "<job_id>"
    },
    "name": "cancel_training_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesTraining job id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/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 well: it discloses that cancellation is cooperative (running work stops gradually), that the call is asynchronous and requires polling, and that completed work is not reverted. It omits permission requirements and whether repeated calls on the same job are safe, which keeps it short of a 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?

Three short sentences with zero filler; the action and its target come first, followed by the operational follow-up and the key limitation. Every sentence adds distinct information.

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 mutation tool with no output schema or annotations, the description covers the essential behavior: async semantics, the confirmation path, and the irreversibility boundary. Only auth/rate-limit context is missing, which is minor at this complexity.

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?

Only one parameter exists and schema coverage is 100%, so the schema already fully documents job_id. The description restates 'by job_id' without adding format, provenance, or lookup guidance beyond the schema baseline.

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 ('Request cancellation') and resource ('a queued or running job') scoped by job_id. The action is unmistakably distinct from get_training_status and start_training_job without needing to name them, though no sibling is explicitly contrasted.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is clear: apply to queued or running jobs, and it names the follow-up tool (get_training_status) for confirming the terminal state. The exclusion of finished work is implied by 'does not undo finished work' rather than stated as an explicit when-not-to-use rule.

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