Skip to main content
Glama

Cancel agent

agents_cancel
Destructive

Stops an agent's current turn by cancelling unfinished tool calls and open interactions, halting pending run_command processes, and discarding steering messages while keeping the agent active and queued.

Instructions

Stops the agent's current turn: cancels its unfinished tool calls and open interactions, stops processes whose run_command hasn't returned yet, and discards pending steering messages. The agent stays active and keeps its queued messages, and processes whose run_command already returned keep running. Returns affected false and changes nothing when no turn is in progress.

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": {
      "agentID": "<agentID>",
      "orgID": "<orgID>",
      "projectID": "<projectID>"
    },
    "name": "agents_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
actorNoExternal actor to attribute this cancelation to, upserted by (provider_tenant_id, provider_user_id) atomically with the cancelation; a rejected request writes no actor. Only allowed for non-user principals; requests authenticated as a user must omit it and are attributed to the user's omnara actor.
orgIDYesOrganization ID (org_...).
agentIDYesAgent ID (agt_...).
projectIDYesProject ID (proj_...).

Output Schema

NameRequiredDescriptionDefault
eventYes
actor_idNoActor the cancelation was attributed to. Absent when the request had no actor attribution.
affectedYesWhether this request changed any cancelable work.
runtime_cancel_requestedYesWhether this request created or observed a durable runtime cancel request. Immediate delivery is best effort; runtime-lock renewal observes the durable request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.10
    • changedInput schema / $defs / Metadata / description
      Previous value: -"Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 characters, values must be strings of up to 512 characters."New value: +"Arbitrary key-value labels stored with the resource."
    • removedInput schema / $defs / Metadata / x-go-type
      Removed value: -"resourcemeta.Metadata"
    • removedInput schema / $defs / Metadata / x-go-type-import
      Removed value: -{
      -  "path": "github.com/omnara-ai/omnara/internal/resourcemeta"
      -}
    • removedInput schema / $defs / Metadata / x-go-type-skip-optional-pointer
      Removed value: -true
    • addedInput schema / properties / actor / properties / display_name / description
      Added value: +"Display name for the actor."
    • addedInput schema / properties / actor / properties / metadata / description
      Added value: +"Key-value attributes for the actor. Replaces stored metadata when sent."
    • addedInput schema / properties / actor / properties / provider_tenant_id / description
      Added value: +"Your tenant or namespace for the user. With provider_user_id, identifies the actor."
    • addedInput schema / properties / actor / properties / provider_user_id / description
      Added value: +"The user's ID in your system. With provider_tenant_id, identifies the actor."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ActorID": {
      +      "pattern": "^actr_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentConfigID": {
      +      "description": "Agent config ID (acfg_...).",
      +      "pattern": "^acfg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentControlType": {
      +      "enum": [
      +        "cancel_current"
      +      ],
      +      "type": "string"
      +    },
      +    "AgentEvent": {
      +      "discriminator": {
      +        "mapping": {
      +          "agent_input": "#/$defs/AgentInputEvent",
      +          "context_checkpoint": "#/$defs/ContextCheckpointEvent",
      +          "model_output": "#/$defs/ModelOutputEvent",
      +          "tool_result": "#/$defs/ToolResultEvent"
      +        },
      +        "propertyName": "event_kind"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/AgentInputEvent"
      +        },
      +        {
      +          "$ref": "#/$defs/ModelOutputEvent"
      +        },
      +        {
      +          "$ref": "#/$defs/ToolResultEvent"
      +        },
      +        {
      +          "$ref": "#/$defs/ContextCheckpointEvent"
      +        }
      +      ]
      +    },
      +    "AgentEventID": {
      +      "pattern": "^evt_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentID": {
      +      "pattern": "^agt_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentInputContentBlock": {
      +      "discriminator": {
      +        "mapping": {
      +          "media_ref": "#/$defs/MediaRefContentBlock",
      +          "text": "#/$defs/TextContentBlock"
      +        },
      +        "propertyName": "type"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/TextContentBlock"
      +        },
      +        {
      +          "$ref": "#/$defs/MediaRefContentBlock"
      +        }
      +      ]
      +    },
      +    "AgentInputEvent": {
      +      "properties": {
      +        "actor_id": {
      +          "$ref": "#/$defs/ActorID",
      +          "description": "Actor attributed to the input. Resolve details through the project actors endpoints."
      +        },
      +        "agent_config_id": {
      +          "$ref": "#/$defs/AgentConfigID",
      +          "description": "Configuration selected by a config_change input."
      +        },
      +        "agent_id": {
      +          "$ref": "#/$defs/AgentID"
      +        },
      +        "agent_input_id": {
      +          "$ref": "#/$defs/AgentInputID",
      +          "description": "Matches the input that produced this event, allowing clients to correlate an input submission with its durable timeline admission."
      +        },
      +        "agent_profile_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/AgentProfileID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The emitting agent's own profile, or null when it has none. This is not the parent agent's or webhook subscription's profile."
      +        },
      +        "content_blocks": {
      +          "items": {
      +            "$ref": "#/$defs/AgentInputContentBlock"
      +          },
      +          "type": "array"
      +        },
      +        "control_type": {
      +          "$ref": "#/$defs/AgentControlType"
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "event_kind": {
      +          "enum": [
      +            "agent_input"
      +          ],
      +          "type": "string"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/AgentEventID"
      +        },
      +        "input_idempotency_key": {
      +          "description": "Echoes the Idempotency-Key of a content-input request so its sender can recognize the durable admission. Absent for other input kinds.",
      +          "type": "string"
      +        },
      +        "input_kind": {
      +          "$ref": "#/$defs/AgentInputKind"
      +        },
      +        "interaction_id": {
      +          "$ref": "#/$defs/AgentInteractionID",
      +          "description": "Interaction answered by an interaction_response input."
      +        },
      +        "is_opening_event": {
      +          "type": "boolean"
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID"
      +        },
      +        "parent_agent_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/AgentID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The emitting agent's immediate parent, or null for a top-level agent."
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID"
      +        },
      +        "root_agent_id": {
      +          "$ref": "#/$defs/AgentID",
      +          "description": "The top-level agent in the emitting agent's tree. Equals agent_id for a top-level agent."
      +        },
      +        "sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        },
      +        "turn_id": {
      +          "$ref": "#/$defs/AgentTurnID"
      +        },
      +        "turn_sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "agent_id",
      +        "agent_profile_id",
      +        "parent_agent_id",
      +        "root_agent_id",
      +        "turn_id",
      +        "turn_sequence",
      +        "is_opening_event",
      +        "sequence",
      +        "event_kind",
      +        "agent_input_id",
      +        "input_kind",
      +        "content_blocks",
      +        "created_at"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentInputID": {
      +      "pattern": "^ain_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentInputKind": {
      +      "enum": [
      +        "content",
      +        "control",
      +        "interaction_response",
      +        "config_change"
      +      ],
      +      "type": "string"
      +    },
      +    "AgentInteractionID": {
      +      "pattern": "^int_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentProfileID": {
      +      "pattern": "^aprf_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentSequence": {
      +      "description": "Positive per-agent event, turn, or live-frame sequence.",
      +      "maximum": 9007199254740991,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "AgentTurnID": {
      +      "pattern": "^trn_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ArtifactID": {
      +      "pattern": "^art_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ContentBlockMetadata": {
      +      "additionalProperties": {
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      "description": "Arbitrary key-value labels. Keys beginning with `omnara_` are reserved for Omnara and may affect product behavior; use them only when intentionally invoking Omnara-defined behavior.",
      +      "maxProperties": 16,
      +      "propertyNames": {
      +        "maxLength": 64,
      +        "minLength": 1
      +      },
      +      "type": "object"
      +    },
      +    "ContextCheckpointEvent": {
      +      "properties": {
      +        "agent_id": {
      +          "$ref": "#/$defs/AgentID"
      +        },
      +        "agent_profile_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/AgentProfileID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The emitting agent's own profile, or null when it has none. This is not the parent agent's or webhook subscription's profile."
      +        },
      +        "context_checkpoint_id": {
      +          "$ref": "#/$defs/ContextCheckpointID"
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "event_kind": {
      +          "enum": [
      +            "context_checkpoint"
      +          ],
      +          "type": "string"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/AgentEventID"
      +        },
      +        "is_opening_event": {
      +          "enum": [
      +            false
      +          ],
      +          "type": "boolean"
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID"
      +        },
      +        "parent_agent_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/AgentID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The emitting agent's immediate parent, or null for a top-level agent."
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID"
      +        },
      +        "root_agent_id": {
      +          "$ref": "#/$defs/AgentID",
      +          "description": "The top-level agent in the emitting agent's tree. Equals agent_id for a top-level agent."
      +        },
      +        "sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        },
      +        "summarized_through_event_sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        },
      +        "summary": {
      +          "type": "string"
      +        },
      +        "turn_id": {
      +          "$ref": "#/$defs/AgentTurnID"
      +        },
      +        "turn_sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "agent_id",
      +        "agent_profile_id",
      +        "parent_agent_id",
      +        "root_agent_id",
      +        "turn_id",
      +        "turn_sequence",
      +        "is_opening_event",
      +        "sequence",
      +        "event_kind",
      +        "context_checkpoint_id",
      +        "summarized_through_event_sequence",
      +        "summary",
      +        "created_at"
      +      ],
      +      "type": "object"
      +    },
      +    "ContextCheckpointID": {
      +      "pattern": "^ccp_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ErrorContentBlock": {
      +      "properties": {
      +        "metadata": {
      +          "$ref": "#/$defs/ContentBlockMetadata"
      +        },
      +        "text": {
      +          "type": "string"
      +        },
      +        "type": {
      +          "enum": [
      +            "error"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "JSONBlob": {
      +      "description": "Public JSON payload whose shape is determined by the event or interaction kind."
      +    },
      +    "MediaRefContentBlock": {
      +      "properties": {
      +        "artifact_id": {
      +          "$ref": "#/$defs/ArtifactID"
      +        },
      +        "exclude_from_model_context": {
      +          "description": "Whether the referenced artifact is excluded from later model context.",
      +          "type": "boolean"
      +        },
      +        "metadata": {
      +          "$ref": "#/$defs/ContentBlockMetadata"
      +        },
      +        "type": {
      +          "enum": [
      +            "media_ref"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "artifact_id"
      +      ],
      +      "type": "object"
      +    },
      +    "ModelCallContextID": {
      +      "pattern": "^mcc_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ModelOutputContentBlock": {
      +      "discriminator": {
      +        "mapping": {
      +          "error": "#/$defs/ErrorContentBlock",
      +          "media_ref": "#/$defs/MediaRefContentBlock",
      +          "reasoning": "#/$defs/ReasoningContentBlock",
      +          "text": "#/$defs/TextContentBlock",
      +          "tool_call": "#/$defs/ModelToolCallContentBlock"
      +        },
      +        "propertyName": "type"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/TextContentBlock"
      +        },
      +        {
      +          "$ref": "#/$defs/MediaRefContentBlock"
      +        },
      +        {
      +          "$ref": "#/$defs/ReasoningContentBlock"
      +        },
      +        {
      +          "$ref": "#/$defs/ModelToolCallContentBlock"
      +        },
      +        {
      +          "$ref": "#/$defs/ErrorContentBlock"
      +        }
      +      ]
      +    },
      +    "ModelOutputEvent": {
      +      "properties": {
      +        "agent_id": {
      +          "$ref": "#/$defs/AgentID"
      +        },
      +        "agent_profile_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/AgentProfileID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The emitting agent's own profile, or null when it has none. This is not the parent agent's or webhook subscription's profile."
      +        },
      +        "content_blocks": {
      +          "items": {
      +            "$ref": "#/$defs/ModelOutputContentBlock"
      +          },
      +          "type": "array"
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "event_kind": {
      +          "enum": [
      +            "model_output"
      +          ],
      +          "type": "string"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/AgentEventID"
      +        },
      +        "is_opening_event": {
      +          "enum": [
      +            false
      +          ],
      +          "type": "boolean"
      +        },
      +        "model_call_context_id": {
      +          "$ref": "#/$defs/ModelCallContextID"
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID"
      +        },
      +        "parent_agent_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/AgentID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The emitting agent's immediate parent, or null for a top-level agent."
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID"
      +        },
      +        "provider_metadata": {
      +          "description": "Facts the provider reported about this call, keyed by provider (for example `openrouter.provider` names the upstream that served an OpenRouter request). Present only when the provider reported something.",
      +          "type": "object"
      +        },
      +        "root_agent_id": {
      +          "$ref": "#/$defs/AgentID",
      +          "description": "The top-level agent in the emitting agent's tree. Equals agent_id for a top-level agent."
      +        },
      +        "sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        },
      +        "stop_reason": {
      +          "$ref": "#/$defs/ModelOutputStopReason"
      +        },
      +        "turn_id": {
      +          "$ref": "#/$defs/AgentTurnID"
      +        },
      +        "turn_sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        },
      +        "usage": {
      +          "$ref": "#/$defs/ModelUsage"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "agent_id",
      +        "agent_profile_id",
      +        "parent_agent_id",
      +        "root_agent_id",
      +        "turn_id",
      +        "turn_sequence",
      +        "is_opening_event",
      +        "sequence",
      +        "event_kind",
      +        "model_call_context_id",
      +        "stop_reason",
      +        "content_blocks",
      +        "created_at"
      +      ],
      +      "type": "object"
      +    },
      +    "ModelOutputStopReason": {
      +      "description": "Stop reasons admitted as durable model-output events.",
      +      "enum": [
      +        "end_turn",
      +        "tool_use",
      +        "max_tokens",
      +        "refusal",
      +        "content_filter",
      +        "error"
      +      ],
      +      "type": "string"
      +    },
      +    "ModelToolCallContentBlock": {
      +      "properties": {
      +        "input": {
      +          "$ref": "#/$defs/ToolInput"
      +        },
      +        "metadata": {
      +          "$ref": "#/$defs/ContentBlockMetadata"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "tool_call_id": {
      +          "$ref": "#/$defs/ToolCallID"
      +        },
      +        "tool_type": {
      +          "$ref": "#/$defs/ToolCallType"
      +        },
      +        "type": {
      +          "enum": [
      +            "tool_call"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "tool_call_id",
      +        "tool_type",
      +        "name",
      +        "input"
      +      ],
      +      "type": "object"
      +    },
      +    "ModelUsage": {
      +      "description": "Token counts the provider reported for one model call. Cache and reasoning counts are omitted when the provider reported none.",
      +      "properties": {
      +        "cache_read_input_tokens": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "cache_write_input_tokens": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "input_tokens_total": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "output_tokens_total": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "reasoning_output_tokens": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "uncached_input_tokens": {
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ReasoningContentBlock": {
      +      "properties": {
      +        "metadata": {
      +          "$ref": "#/$defs/ContentBlockMetadata"
      +        },
      +        "text": {
      +          "type": "string"
      +        },
      +        "type": {
      +          "enum": [
      +            "reasoning"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "StructuredDataContentBlock": {
      +      "properties": {
      +        "metadata": {
      +          "$ref": "#/$defs/ContentBlockMetadata"
      +        },
      +        "type": {
      +          "enum": [
      +            "structured_data"
      +          ],
      +          "type": "string"
      +        },
      +        "value": {
      +          "$ref": "#/$defs/JSONBlob"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "value"
      +      ],
      +      "type": "object"
      +    },
      +    "TextContentBlock": {
      +      "properties": {
      +        "metadata": {
      +          "$ref": "#/$defs/ContentBlockMetadata",
      +          "description": "Key-value metadata. omnara_ keys are reserved."
      +        },
      +        "text": {
      +          "description": "Block text: the message in agent inputs, or text from the model or a tool in events.",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "text: a plain-text block.",
      +          "enum": [
      +            "text"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "ToolCallID": {
      +      "pattern": "^tcl_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ToolCallOutcome": {
      +      "description": "Terminal outcome, present only when state is completed.",
      +      "enum": [
      +        "succeeded",
      +        "failed",
      +        "denied",
      +        "canceled"
      +      ],
      +      "type": "string"
      +    },
      +    "ToolCallType": {
      +      "description": "Identifies who manages execution. Built-in and MCP calls are platform-managed; custom calls wait for an external consumer to submit their result.",
      +      "enum": [
      +        "built_in",
      +        "custom",
      +        "mcp"
      +      ],
      +      "type": "string"
      +    },
      +    "ToolInput": {
      +      "additionalProperties": true,
      +      "description": "Non-null JSON object containing the arguments emitted for a tool call.",
      +      "type": "object"
      +    },
      +    "ToolResultContentBlock": {
      +      "discriminator": {
      +        "mapping": {
      +          "media_ref": "#/$defs/MediaRefContentBlock",
      +          "structured_data": "#/$defs/StructuredDataContentBlock",
      +          "text": "#/$defs/TextContentBlock"
      +        },
      +        "propertyName": "type"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/TextContentBlock"
      +        },
      +        {
      +          "$ref": "#/$defs/MediaRefContentBlock"
      +        },
      +        {
      +          "$ref": "#/$defs/StructuredDataContentBlock"
      +        }
      +      ]
      +    },
      +    "ToolResultEvent": {
      +      "properties": {
      +        "agent_id": {
      +          "$ref": "#/$defs/AgentID"
      +        },
      +        "agent_profile_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/AgentProfileID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The emitting agent's own profile, or null when it has none. This is not the parent agent's or webhook subscription's profile."
      +        },
      +        "content_blocks": {
      +          "items": {
      +            "$ref": "#/$defs/ToolResultContentBlock"
      +          },
      +          "type": "array"
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "event_kind": {
      +          "enum": [
      +            "tool_result"
      +          ],
      +          "type": "string"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/AgentEventID"
      +        },
      +        "is_opening_event": {
      +          "enum": [
      +            false
      +          ],
      +          "type": "boolean"
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID"
      +        },
      +        "outcome": {
      +          "$ref": "#/$defs/ToolCallOutcome"
      +        },
      +        "parent_agent_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/AgentID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The emitting agent's immediate parent, or null for a top-level agent."
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID"
      +        },
      +        "root_agent_id": {
      +          "$ref": "#/$defs/AgentID",
      +          "description": "The top-level agent in the emitting agent's tree. Equals agent_id for a top-level agent."
      +        },
      +        "sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        },
      +        "tool_call_id": {
      +          "$ref": "#/$defs/ToolCallID"
      +        },
      +        "turn_id": {
      +          "$ref": "#/$defs/AgentTurnID"
      +        },
      +        "turn_sequence": {
      +          "$ref": "#/$defs/AgentSequence"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "agent_id",
      +        "agent_profile_id",
      +        "parent_agent_id",
      +        "root_agent_id",
      +        "turn_id",
      +        "turn_sequence",
      +        "is_opening_event",
      +        "sequence",
      +        "event_kind",
      +        "tool_call_id",
      +        "outcome",
      +        "content_blocks",
      +        "created_at"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "properties": {
      +    "actor_id": {
      +      "$ref": "#/$defs/ActorID",
      +      "description": "Actor the cancelation was attributed to. Absent when the request had no actor attribution."
      +    },
      +    "affected": {
      +      "description": "Whether this request changed any cancelable work.",
      +      "type": "boolean"
      +    },
      +    "event": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/AgentEvent"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "runtime_cancel_requested": {
      +      "description": "Whether this request created or observed a durable runtime cancel request. Immediate delivery is best effort; runtime-lock renewal observes the durable request.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "event",
      +    "runtime_cancel_requested",
      +    "affected"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / actor / description
      Previous value: -"Identity and attributes of an external actor. Actors are upserted by (provider_tenant_id, provider_user_id) with the external provider. Omitted attributes keep their stored values; provided attributes are overwritten, including empty values. omnara actors are implicit and hosted integrations own their own actor identities."New value: +"External actor to attribute this cancelation to, upserted by (provider_tenant_id, provider_user_id) atomically with the cancelation; a rejected request writes no actor. Only allowed for non-user principals; requests authenticated as a user must omit it and are attributed to the user's omnara actor."
  3. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / agentID / description
      Added value: +"Agent ID (agt_...)."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / projectID / description
      Added value: +"Project ID (proj_...)."
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description then adds substantive context the annotations cannot convey. It states the precise blast radius (tool calls, open interactions, unreturned run_command processes, pending steering) and the deliberate non-effects (agent stays active, queued messages kept, already-returned processes keep running). It also documents the no-op return contract, which is exactly the sort of behavior an agent needs before firing a destructive call.

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 sentences, zero filler, and the core action is front-loaded before the exception clauses. The negative effects are grouped logically after the cancellations, so the reader gets scope first and edge cases second.

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

Completeness5/5

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

For a destructive, low-parameter tool this is complete: cancellation scope, non-effects, and the no-op outcome are all covered, an output schema exists so return shape needs no prose, and the four parameters are fully documented in the schema. An agent has everything needed to decide whether calling it is correct.

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%, including detailed prose on the actor object and its upsert/principal restrictions, so the schema already carries parameter meaning. The description adds nothing about agentID, orgID, projectID, or the actor attribution path. A baseline 3 is appropriate when the schema does the heavy lifting.

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 opens with a precise verb and scope: 'Stops the agent's current turn,' then enumerates exactly what is cancelled (unfinished tool calls, open interactions, in-flight run_command processes, pending steering messages). It also delineates what is not affected, which lets an agent separate this from a full agent termination. It stops short of naming a sibling such as agents_interactions_resolve, which also resolves open interactions, so an agent must still infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Usage context is clear: use this when you want to interrupt only the in-flight turn while 'The agent stays active and keeps its queued messages.' The no-op case ('Returns affected false and changes nothing when no turn is in progress') tells the agent it is safe to call without checking state first. There is no explicit exclusion naming an alternative tool for narrower or broader cancellation.

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