Skip to main content
Glama

Cancel queued application action

cancel_application_action
DestructiveIdempotent

Cancel the exact latest pending action for an owned managed application before dispatch when marked cancellable; running worker jobs are not interrupted.

Instructions

Request pre-dispatch cancellation of the exact latest action for one owned managed application. This is available only while get_application_installation advertises latest_action.cancellable=true for the same action UUID. The backend verifies eligibility for new requests and replays the exact same-key retry even after the advertised state changes. Cancellation never stops or interrupts a running worker job. Requires applications:manage, the exact latest_action.id UUID, and a fresh client-global idempotencyKey that was not used for the original action or another request. Reuse that key only to replay this exact cancellation request. This is not a paid API-key operation.

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": {
      "orderNo": "<orderNo>",
      "installation_id": "<installation_id>",
      "action_id": "<action_id>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "cancel_application_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
action_idYesExact action UUID from the current installation latest_action.id
idempotencyKeyYesFresh client-global unique key for this cancellation request. Do not reuse the original action's key or a key from another request; reuse it only to replay this exact cancellation request.
installation_idYesManaged application installation UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.3.21
    • addedInput schema / properties / action_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / installation_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observedv2.3.16

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructive/idempotent but the description carries far more: pre-dispatch-only scope, backend eligibility verification, same-key retry replay that survives state changes, the required applications:manage scope, and the fact that it is not a paid API-key operation. This is exactly the mutation-specific context annotations cannot express.

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?

Dense but front-loaded: scope first, then eligibility, then behavior, then prerequisites. Every sentence carries information, though the permissions/idempotency/paid-API-key points are packed into one long final cluster that could be split for scanability.

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, it covers eligibility, permissions, idempotency semantics, and side-effect limits. The remaining gap is the response shape — whether the request is queued vs. immediately applied and how to observe the outcome — though the pointer to get_application_installation partially compensates.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description links parameter meaning to runtime behavior: 'the exact latest_action.id UUID' (not any action id) and a 'fresh client-global idempotencyKey' whose reuse is valid only for replaying this same cancellation. That coupling of key semantics to backend replay logic goes slightly beyond the schema field text.

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: 'Request pre-dispatch cancellation of the exact latest action for one owned managed application.' The 'pre-dispatch' and 'action' qualifiers separate it from the other cancel_* siblings (certificates, SSL subscriptions), which operate on entirely different resources.

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 an explicit precondition tied to a named sibling ('only while get_application_installation advertises latest_action.cancellable=true for the same action UUID') and states the negative case ('never stops or interrupts a running worker job'). An agent knows both when to call it and when the call is pointless.

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