Skip to main content
Glama

cancel_deployment

Destructive

Cancel a deployment still building, discard its work, and keep the previously live version active. First call returns a preview; call again with confirm=true to proceed.

Instructions

Cancel a deployment that is still building. Its work is discarded; what was live before stays live. The first call only returns a preview; call again with confirm=true once the user agrees.

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": {
      "project_id": "<project_id>",
      "deployment_id": "<deployment_id>"
    },
    "name": "cancel_deployment"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
project_idYes
deployment_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description goes well beyond them: it states that in-flight work is discarded while the previously live version stays live, and it discloses the non-obvious two-call preview-then-confirm protocol. That is precisely the behavioral context an agent needs before invoking a destructive mutation.

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?

Three short sentences, front-loaded with the action and its consequence, then the workflow. Every sentence adds distinct information with no filler.

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?

Covers action, data consequences, and the confirmation flow, and the return values are handled by the existing output schema. Minor gap: it does not say what happens if the deployment is no longer building, but for a three-parameter mutation this is close to complete.

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 0%, so the description carries the burden; it explains the meaning and sequencing of confirm=true (first call previews, second call with confirm executes). The project_id and deployment_id parameters are left to their self-evident names, which is acceptable but not fully compensating.

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?

Specific verb plus resource ('Cancel a deployment') with a qualifying state ('that is still building'), which distinguishes it from siblings like get_deployment or redeploy. An agent knows exactly which operation this performs.

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?

Implies when to use it via the precondition that the deployment is still building, and prescribes the two-step workflow: preview first, then confirm once the user agrees. It does not explicitly name an alternative tool for deployments already live or finished, but the state qualifier covers the main exclusion.

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