Skip to main content
Glama

environment_delete

Destructive

Stops every service in a preview or development environment and removes its databases, buckets, domains and variables. Production cannot be deleted this way; delete the Product instead. Requires confirm: true.

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

Input Schema

NameRequiredDescriptionDefault
confirmNoRequired for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would.
dry_runNoReturn the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before.
productIdYesProduct identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d.
environmentYespreview, development or a pull request preview (pr-<number>). Production is refused.
idempotency_keyNoReplaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The annotations already declare this as destructive and non-read-only, and the description adds important scope: it stops every service and removes databases, buckets, domains, and variables. It also discloses that production is refused and that confirm is required, which is meaningful behavioral context beyond the 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?

The description is short and front-loaded with the destructive action and affected resources. The production exclusion and confirm requirement are placed immediately after, with no unnecessary wording.

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 environment deletion tool with full schema coverage, destructive annotations, and no output schema, the description covers the needed scope, exclusion, and confirmation requirement. There is no significant missing context for correct invocation.

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 100%, so the schema already documents confirm, dry_run, productId, environment, and idempotency_key. The description only reinforces the confirm requirement and production restriction for environment, adding little parameter meaning beyond the schema. The baseline score of 3 is appropriate.

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?

The description states a specific destructive operation and resource: stopping all services in a preview/development environment and removing its databases, buckets, domains, and variables. It also distinguishes the production case and points to deleting the Product instead, so the agent can distinguish it from product_delete and environment_create.

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?

The description gives a clear usage boundary: production cannot be deleted this way and should use the Product deletion path instead. It also states the confirm requirement. It does not explicitly compare against service_delete or other narrower delete tools, but the environment-level teardown scope is clear.

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