Skip to main content
Glama

Delete Stack

delete_stack
Destructive

PERMANENTLY delete a stack on Cycle together with ALL of its builds. IRREVERSIBLE.

Two-step: call without confirm to get a preview, show it to the user, and only after they approve this exact deletion call again with confirm set to the preview's confirm_token.

Cycle refuses to delete a stack while any container deployed from it exists, so the preview reports those containers as a blocker. Teardown order: delete the containers first (delete_environment for a whole environment, delete_container for one), then the stack. Linked DNS records block nothing and can be deleted at any point.

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": {
      "stack": "<stack>"
    },
    "name": "delete_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
stackYesStack to delete: name, identifier, resource path ('stack:...'), or 24-char hex ID. With confirm, the hex ID from the preview.
confirmNoThe confirm_token from the preview; performs the deletion it described. Omit to preview.
contextNoWhy are you calling this tool? Briefly describe the user's goal.
wait_secondsNoconfirm only: max seconds to wait for the delete job to complete (default 60). 0 returns immediately after the job is accepted.
conversation_idNoConversation tracking id. Omit on your first tool call; every result then includes a conversation_id line — pass that exact value on all later calls in this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Set true ONLY after the user has explicitly approved deleting this exact stack (shown its name, ID, builds, and the containers deployed from it). Requires stack to be the exact hex ID from the preview call."New value: +"The confirm_token from the preview; performs the deletion it described. Omit to preview."
    • changedInput schema / properties / confirm / type
      Previous value: -"boolean"New value: +"string"
    • changedInput schema / properties / stack / description
      Previous value: -"Stack to delete. Without confirm: name, identifier, resource path ('stack:...'), or 24-char hex ID. With confirm:true: MUST be the exact 24-char hex ID returned by the preview call."New value: +"Stack to delete: name, identifier, resource path ('stack:...'), or 24-char hex ID. With confirm, the hex ID from the preview."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so safety is covered; the description goes well beyond by disclosing the irreversibility, the build cascade, the human-approval gate, the server-side refusal on deployed containers, and that linked DNS records are not blockers. Ordering guidance (containers first, DNS anytime) is behavioral detail unavailable in any structured field.

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?

Four short paragraphs ordered by importance: consequence, procedure, precondition, teardown order. Every sentence carries a non-obvious fact; there is no restatement of the title or schema.

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, cascading, two-phase operation with no output schema, the description supplies everything needed to call it safely: the approval workflow, the blocking condition, the remediation path, and the existence of a confirm token in the preview response. No output-schema gap remains since the preview's relevant content is described.

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 field syntax is already documented; the description adds procedural semantics the schema cannot — that confirm must carry the token from the preview and that the preview must be shown to the user before it is passed. It does not discuss wait_seconds or conversation_id, but those are self-documented in the schema.

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 ('PERMANENTLY delete a stack') plus the cascade scope ('together with ALL of its builds'), which immediately distinguishes it from delete_container and delete_environment. The uppercase warning front-loads the consequence so an agent can tell what class of operation this is before reading further.

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 two-step procedure (preview → user approval → confirm with token) and names the sibling alternatives for teardown ('delete_environment for a whole environment, delete_container for one'). It also states the precondition under which this tool will refuse to act (containers still deployed), which is the exact condition an agent must check first.

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.

Resources