Skip to main content
Glama

cancel_process_instance

Destructive

Cancel a running process instance and return a command ID; use get_process_command to read the cancellation outcome.

Instructions

Cancel a running process instance. Returns a command_id with status received — read the outcome with get_process_command

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": {
      "instance_id": "<instance_id>"
    },
    "name": "cancel_process_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
instance_idYesProcess instance UUID
reason_noteNoCancellation reason, recorded with the operator in the server audit log, not in the instance trail

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.4
    • addedInput schema / properties / instance_id / description
      Added value: +"Process instance UUID"
    • changedInput schema / properties / reason_note / description
      Previous value: -"Motivo (vai para o log da operação)"New value: +"Cancellation reason, recorded with the operator in the server audit log, not in the instance trail"
  2. Addedv2.2.3

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructive, non-idempotent, non-read-only behavior. The description adds genuinely new context: the call is asynchronous, returning a command_id with status 'received', and the outcome must be polled via get_process_command. That follow-up contract is exactly what annotations cannot convey.

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?

Two tight sentences: the action first, then the async result contract. No padding, and the most decision-relevant information (what it does, how to read the result) is front-loaded.

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?

No output schema exists, and the description compensates by naming the returned command_id, the status value, and the tool to read the outcome. Missing only secondary details such as permission requirements or error behavior for already-finished instances.

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 instance_id and reason_note are already documented — including the audit-log vs instance-trail distinction. The description adds no further parameter meaning, so the baseline of 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?

States a specific verb and resource: 'Cancel a running process instance.' The scope word 'running' separates it from definition-level siblings like disable_process or retire_process_definition, though no sibling is named directly.

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 'running process instance' — an agent can infer it applies to live instances, not definitions. But there is no explicit when-to-use versus cancel_agent_turn or disable_process, and no statement about what happens on an already-terminated instance (notably relevant given idempotentHint=false).

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