Skip to main content
Glama

cancel_automation_execution

Destructive

Cancel one execution of an automation: a run queued, running or waiting (parked on a wait step) ends as cancelled and nothing after its current step runs. A run that already completed, failed or was cancelled answers EXECUTION_ALREADY_FINISHED.

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": {
      "automationId": "<automationId>",
      "executionId": "<executionId>"
    },
    "name": "cancel_automation_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
executionIdYes
automationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuine value beyond that: it specifies the exact termination semantics (nothing after the current step runs) and the concrete error token returned for already-finished runs, which an agent cannot infer from annotations.

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, no filler, with the actionable scope and outcome front-loaded and the error case relegated to a trailing clause. Every sentence carries information an agent would otherwise have to guess.

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 destructive mutation with no output schema, the description covers the essential behavioral contract — what is terminated, how far execution proceeds, and the failure mode. The only real gap is the complete absence of parameter guidance for the two required IDs.

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% and both parameters are bare strings, yet the description never explains the relationship between automationId and executionId, ID formats, or whether automationId must be the owning automation. The phrase 'one execution of an automation' only weakly implies that both IDs are needed together.

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 (cancel) and a precisely scoped resource (one execution of an automation), then enumerates the states it applies to — queued, running, waiting on a wait step. That scoping distinguishes it cleanly from siblings like get_automation_execution and wake_automation_execution without needing to name them.

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?

Gives an implicit but strong selection rule: use this for runs that are queued, running or parked, and the EXECUTION_ALREADY_FINISHED response tells the agent what happens if the precondition is violated. It stops short of explicitly naming an alternative tool for finished runs, but the state conditions leave little ambiguity.

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.