Skip to main content
Glama

Cancelar tarea

cancelar_tarea

Cancel a queued or running task by ID to prevent execution or halt in-progress work.

Instructions

Cancela una tarea en cola o en ejecución.

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

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It implies a destructive state mutation but does not say whether cancellation is reversible, whether confirmation or elevated permissions are required, what error/return to expect, or what happens to partial results of a running task.

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?

One short sentence with the scope qualifier front-loaded and no wasted words. It is efficient, though the brevity comes at the cost of missing information rather than trimming redundancy.

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

Completeness2/5

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

For a mutation tool with zero annotations, no output schema, and an undocumented parameter, the description is too thin: it omits the identifier's semantics, failure modes, and the result of cancellation. Only the operation's target states are covered.

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% for the single required parameter 'id', and the description never identifies it as a task identifier or states its format (numeric, UUID, slug). The agent must guess the meaning of the only input the tool needs.

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?

The description gives a specific verb+resource ('Cancela una tarea') and even narrows the applicable states to queued or running, which lets an agent distinguish it from estado_tarea or iniciar_tarea. It stops short of explicitly naming a sibling or clarifying how it differs from state-changing operations on already-finished tasks.

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 guidance on when to prefer this tool over alternatives, no prerequisites, and no mention of what happens if the task is already completed, failed, or already cancelled. The only implicit usage signal is the 'en cola o en ejecución' scope.

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