Skip to main content
Glama

cancel

Stops a queued or running background job by terminating its process group with SIGTERM, escalating to SIGKILL.

Instructions

Cancela un job (en cola o en curso). Mata el grupo de procesos (SIGTERM y luego SIGKILL).

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
wait_sNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/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 disclose the destructive mechanics: it kills the whole process group using SIGTERM followed by SIGKILL. That is exactly the kind of consequence an agent needs before invoking a mutation. It stops short of stating idempotency or what happens if the job has already completed.

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 short sentences with zero filler; the purpose and scope are front-loaded and the kill mechanism follows as supporting detail. Nothing is repeated from the schema or padding.

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?

An output schema exists, so return values need not be explained, but for a destructive two-parameter tool with no annotations the description leaves gaps: wait_s semantics and behavior on already-finished or nonexistent jobs are unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for both parameters and it does not: job_id is only implied, and wait_s — the non-obvious parameter with a default of 10 and a max of 30 — is never explained, even though it plausibly controls the grace period between SIGTERM and SIGKILL.

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 ("Cancela un job") and adds the scope "en cola o en curso," so the agent knows both queued and active jobs are eligible. It does not name or contrast with any sibling such as wait or status, so differentiation relies on the agent's own inference.

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 the scope clause (cancel a job that is queued or running), but there is no explicit when-not guidance, no mention of already-finished jobs, and no reference to alternatives like wait or status that might be preferable for a pending job.

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

Deploy Server

Other Tools