Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Delete environment

tzcloud_delete_environment
Destructive

Delete an application's development environment and everything running or stored in it: its container, database, realm, credentials, files, and logs. Its versions are withdrawn from tzcloud_list_versions. The call keeps the application, its production environment, its areas, and its declarations. Production is deleted only with its application. Afterwards the application has one environment, so a deploy goes to production. With one environment, the call is accepted only where development's records remain. These are a database setup, whole or stopped partway, a deletion of them that stopped, or a record an earlier version of the platform left. It then erases them, the secrets, files, and logs kept for local runs among them, and the next submit_manifest sets the database up again. Otherwise it is refused environment_not_created. Destructive: completes only after a person approves it in the browser.

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

Input Schema

NameRequiredDescriptionDefault
request_idNoAny string you choose. A repeat from the same account while the earlier pending action is live (requested, approved, or executing) returns it again; once it has ended, it starts a new one. Omitted, every call creates a new one.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentYes`development` alone; `production` is refused `invalid_request`, because production is deleted only with its application through `tzcloud_delete_application`. On an application with one environment the call is refused `environment_not_created`.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the destructive/openWorld annotations, it discloses that a browser approval by a person is required, enumerates exactly what is erased (container, database, realm, credentials, files, logs), what survives, that versions are withdrawn from tzcloud_list_versions, and that the next submit_manifest re-creates the database.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The opening and closing sentences are front-loaded and efficient, but the middle paragraph is tangled: 'These are a database setup, whole or stopped partway, a deletion of them that stopped, or a record an earlier version of the platform left' takes several passes to parse and could be tightened considerably.

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, irreversible tool with no output schema, the description covers what is destroyed, what persists, error codes, the approval gate, and downstream consequences on deploys — everything an agent needs before invoking it.

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 coverage is 100%, so the schema already documents application, environment, and request_id in detail. The description largely restates the environment constraint (development only) rather than adding new meaning beyond it, so baseline 3 applies.

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 ('Delete an application's development environment') and immediately bounds the scope of what is destroyed. It explicitly distinguishes itself from tzcloud_delete_application by noting production is deleted only with its application.

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 explicit accept/refuse conditions: production is refused invalid_request, the one-environment case is accepted only when development records remain and otherwise refused environment_not_created. It also names the sibling to use for production deletion.

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