Skip to main content
Glama

stop_job

Destructive

Stops a running job and all processes it launched, moving files written so far to the session's .jobs folder. Use it to cancel job activity; Higgsfield and Replicate clips cannot be stopped.

Instructions

Stop a running job and every process it started. Files it wrote so far leave the session (they go to its .jobs folder). Higgsfield and Replicate clips cannot be stopped.

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": {
      "id": "<id>"
    },
    "name": "stop_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesJob id from run_job.
sessionNoSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description goes well beyond that by disclosing cascade behavior (child processes are killed) and that already-written files are not lost but moved to the session's .jobs folder. That side-effect detail is exactly the context an agent needs before invoking a destructive tool, and the platform-level exemptions prevent wasted or failed calls.

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 blast radius first, the file consequence second, the hard limitation last. Each sentence delivers a distinct, decision-relevant fact.

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

Completeness5/5

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

For a two-parameter destructive tool with no output schema, the description covers action, scope, side effects, and unsupported job types, while annotations and the schema handle safety and parameter details. Nothing an agent needs in order to call it correctly is missing.

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%, with 'id' documented as coming from run_job and 'session' documented with its accepted formats, so the schema already carries parameter meaning. The description adds nothing further about the parameters, which is the expected baseline here.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Stop a running job') plus the scope of the operation ('every process it started'), which tells the agent exactly how broad the kill is. It also carves out job types that cannot be stopped, so the agent knows the boundary of the action without opening the schema.

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?

The exclusion of Higgsfield and Replicate clips is an explicit when-not-to-use signal tied to real sibling tools, which is strong guidance. It stops short of naming a positive alternative (e.g. get_job for checking status) or stating prerequisites, so it is clear context rather than full when/when-not routing.

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