Skip to main content
Glama

Delete Environment

delete_environment
Destructive

PERMANENTLY delete an environment on Cycle and EVERYTHING in it: all containers and their instances (including data on stateful instances), all virtual machines and their disks, all scoped variables, and the environment's service containers (discovery, VPN, load balancer). 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.

To delete a single container instead, use delete_container.

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": {
      "environment": "<environment>"
    },
    "name": "delete_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
environmentYesEnvironment to delete. With confirm, the 24-char hex ID from the preview.
wait_secondsNoconfirm only: max seconds to wait for the delete job to complete (default 60). Environments with many workloads take longer. 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 environment (shown its name, ID, creation date, and the full inventory of containers, instances, VMs, and scoped variables). Requires environment 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 / environment / description
      Previous value: -"Environment to delete. With confirm:true: MUST be the exact 24-char hex ID returned by the preview call."New value: +"Environment to delete. With confirm, the 24-char 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, but the description goes well beyond them: it names the specific collateral destruction (stateful instance data, VM disks, VPN/load balancer service containers) and flags irreversibility in caps. It also discloses the async job behavior via the wait_seconds semantics, which 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight blocks — scope/irreversibility, the two-step workflow, and the sibling alternative — with the most consequential fact (permanent, irreversible) front-loaded. No filler sentences or restated title text.

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 high-risk mutation with no output schema, the description supplies the missing return contract by explaining that the first call yields a preview and confirm_token. Nothing an agent needs to safely invoke this — scope, safety, sequencing, escalation to the user — is absent.

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 baseline is 3, but the description adds real meaning about the confirm/preview relationship that the schema states only tersely: confirm must carry 'this exact deletion's' token from the preview, tying the two parameters into one workflow. wait_seconds and context are left entirely to the schema, so not a 5.

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 an environment') and immediately enumerates scope: containers and instances with stateful data, VMs and disks, scoped variables, and service containers. It also explicitly distinguishes itself from delete_container, so an agent can route correctly without opening either schema.

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 protocol (call without confirm for a preview, show the user, re-call with the preview's confirm_token) and names the alternative tool with the condition that selects it ('single container'). Both when-to-use and when-not-to-use are covered.

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