Skip to main content
Glama

Stop a Wiro task

kill_task
DestructiveIdempotent

Cancel an unfinished model task by task ID or token; queued tasks are stopped before charge, while running tasks may still incur charges.

Instructions

Stop a model task that has not finished. A queued task is cancelled and never charged. A task that was already running can still be charged for its run, and get_task_price shows any charge once the run ends. If the task finished first, the call is refused with "Process ended": read it with get_task and show the result. Not for the steps of a workflow run.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "kill_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskidNoThe task ID (alternative to tasktoken).
tasktokenNoThe task token returned from run_model.

Output Schema

NameRequiredDescriptionDefault
taskYes
actionYes
messageYes
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.3
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed4 schema fields changedv1.2.1
    • addedInput schema / properties / taskid
      Added value: +{
      +  "description": "The task ID (alternative to tasktoken).",
      +  "type": "string"
      +}
    • changedInput schema / properties / tasktoken / description
      Previous value: -"The task token to kill"New value: +"The task token returned from run_model."
    • removedInput schema / required
      Removed value: -[
      -  "tasktoken"
      -]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "action": {
      +      "enum": [
      +        "cancel",
      +        "kill"
      +      ],
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    },
      +    "task": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "token": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "action",
      +    "success",
      +    "task",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.1.4

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 idempotentHint=true, but the description goes well beyond them: it discloses billing consequences per state (queued = never charged, running = may still be charged) and the exact refusal message 'Process ended' with the recommended follow-up. That is precisely the kind of destructive-operation context annotations cannot carry.

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?

Four tight sentences, each carrying distinct information (state behavior, billing, refusal path, exclusion), with the core purpose front-loaded. The closing exclusion reads slightly as an afterthought rather than being integrated into the state logic.

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?

An output schema exists, so return values need no explanation, and the description fully covers the interesting behavior: state-dependent billing, refusal handling, and scope limits. The only gap is that with zero required parameters it never clarifies that one of taskid or tasktoken must be provided to target a task.

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% and both parameters (taskid, tasktoken) are already documented in the schema, so the baseline is 3. The description adds no parameter-level detail such as whether one identifier is preferred over the other or what happens when neither is supplied.

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 model task') plus the qualifying condition ('that has not finished'), and closes with an explicit exclusion ('Not for the steps of a workflow run'). An agent can distinguish this from get_task and get_task_price 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 Guidelines5/5

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

Gives explicit when-to-use guidance and routes to alternatives by outcome: use get_task_price to see a charge after a running task ends, and use get_task to read the result if the task already finished. The final sentence names when not to use it, so nothing is left to inference.

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