Skip to main content
Glama

Actora Tenant — Hosted Chat, Tasks & Usage

Cancel Task

actora_gateway_cancel_task
Destructive

Cancel a task (queued → cancelled; running → aborted; terminal states are idempotent). Requires access_token (registered-user JWT).

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": {
      "task_id": "<task_id>"
    },
    "name": "actora_gateway_cancel_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesTask ID
access_tokenNoGateway JWT — registered-user auth (required)

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?

Beyond the destructiveHint=true annotation, the description discloses the actual state transitions (queued→cancelled, running→aborted) and the idempotency behavior on terminal states, which is exactly the kind of context annotations cannot carry. The auth prerequisite is restated from the schema, and it never says what an agent sees back on success or on a task it cannot abort.

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 compact clauses, front-loaded with the action and its state effects, with the prerequisite placed last. No filler or redundant restatement of the title beyond the necessary verb.

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 two-parameter mutation with no output schema, the description covers the effect, idempotency, and auth requirement, which is most of what an agent needs to call it correctly. It omits what is returned and any failure modes (e.g., aborting an already-terminal task when not permitted).

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%, so both parameters are already documented in the structured fields. The description only reinforces access_token's registered-user JWT requirement and adds no new detail about task_id format or which task states accept it, so the baseline 3 applies.

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?

A specific verb plus resource ('Cancel a task') that is unambiguous against siblings like create_task, get_task, and list_tasks, and the parenthetical adds the state-machine effect of the action. It stops short of explicitly contrasting itself with any sibling, but the operation is self-identifying.

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 verb: call this to stop a task that is still queued or running. There is no explicit when-to-use/when-not guidance, no mention of alternatives such as waiting for completion, and no note on which callers should or should not cancel.

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.