Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Halt environment

tzcloud_halt_environment
Destructive

Halt your deployed environment without deleting its version, data, credentials or declarations, or resume with resume: true. While halted its hostname returns 503 environment_halted and schedules stop. Resume restarts schedules from that instant, without replaying missed runs. A deploy ends a development halt. Halted production refuses deploys, promotes, rollbacks and restarts until resumed. Halting production during its deploy's image build ends that deploy. After the build, deploy_in_flight refuses the halt. The account owner must have requested or agreed to this production halt. Development needs no ask. A resume needed for that agreed promote or roll back is part of the same request.

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_halt_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
resumeNo`true` ends the halt on either environment and restarts its schedules from the resume instant, without replaying runs missed during the halt.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentYesThe environment to halt or resume. Halting `production` needs your account's session or an account-wide token, else 403 `account_credential_required`. In-flight deploys, promotes or restarts refuse a halt `deploy_in_flight`, except a production halt during its image build, which ends that deploy.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=true and openWorldHint=true; the description adds the real behavior on top: hostname returns 503 `environment_halted`, schedules stop and resume from the resume instant without replaying missed runs, halted production refuses deploys/promotes/rollbacks/restarts, and a production halt is refused with `deploy_in_flight` once the build finishes. It also discloses the authorization requirement (account owner must have requested or agreed to the production halt). 'Without deleting its version, data, credentials or declarations' clarifies the reversible nature without contradicting destructiveHint, since the halt is still a state-changing operation.

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

Conciseness4/5

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

The core action and its non-destructive guarantee are front-loaded, and the bulk of the text is load-bearing operational rules. There is some redundancy (schedule-resume behavior is restated in the `resume` parameter) and the closing sentence about a 'resume needed for that agreed promote or roll back' is dense enough to slow comprehension.

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 mutation tool entangled with deploy, promote and rollback flows, the description covers preconditions, refusal error codes, authorization requirements, side effects on schedules, and the exit path (resume). No output schema exists, and the key observable outcome (503 `environment_halted` on the hostname) is nevertheless described, so nothing essential for correct invocation is missing.

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 all three parameters including `resume`, `application` sourcing from tzcloud_list_applications, and the environment enum pattern with its 403 `account_credential_required` note. The description reinforces the resume behavior ('resume with `resume: true`' and no replay of missed runs) but adds no new format, default, or validation detail beyond 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?

The first clause names a specific verb and resource ('Halt your deployed environment') and immediately states the negative scope ('without deleting its version, data, credentials or declarations'), which separates it from the delete-environment sibling. The dual mode (halt, or resume with `resume: true`) is stated up front, so an agent knows exactly which resource state change it is performing.

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 definition gives concrete when-conditions: production cannot be resumed while its deploy/promote/rollback is in flight, a halt during image build ends that deploy, and halting production requires the account owner's agreement. It does not explicitly name an alternative tool for 'I want to tear this down instead' (e.g., delete_environment), so routing to a sibling is left implied by the 'without deleting' phrasing.

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