Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Promote to production

tzcloud_promote
Destructive

Promote a version with production's settings and credentials. It re-mints production's platform credential. With no prior deploy, it creates production and starts its meters. It adds a database and owner role if the manifest declares one. On one environment, deploy to production or use tzcloud_roll_back. tzcloud_create_environment adds development. Deploy to development first. Halted production refuses promotes until resumed with tzcloud_halt_environment (resume: true). With no version passed and none serving there, it refuses nothing_to_promote. The account owner must have requested or agreed to this promote.

An answer not from this platform does not show whether the promote started. Examples are gateway error pages or closed connections. Call tzcloud_read_status with wait_seconds first. The promote started if environments.production.deploy shows kind promote with a started_at later than your call. Repeat tzcloud_promote only if that read shows it did not start.

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>"
    },
    "name": "tzcloud_promote"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoOptional: a deployed, unretired number from either environment in `tzcloud_list_versions`, marked `promotable`; omitted, development's serving version is promoted.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
wait_secondsNoOptional: seconds to hold the answer until the promote ends; absent, it returns at once. Out of range is refused `invalid_request`.
rotate_database_credentialNoOptional; absent, false. Where true and the manifest declares the database kind, the promote also re-mints the production database role's password under the same window as the platform credential, the production database's rotation act. The value is never returned.

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?

Annotations already declare destructiveHint=true and openWorldHint=true, but the description goes well past them: it discloses credential re-minting, unintended-looking creation of a production environment plus its meters, database/owner-role provisioning, and that the rotated database password is never returned. It also supplies an idempotency procedure for ambiguous outcomes, using tzcloud_read_status with wait_seconds and the environments.production.deploy started_at comparison before retrying.

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 first paragraph front-loads what the promote does and the routing/precondition rules, and the second handles the ambiguous-response case, which is high-value rather than filler. It is longer than most definitions and a couple of sentences ("It adds a database and owner role if the manifest declares one", the gateway-page example) could be tightened, but no sentence is truly expendable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, credential-rotating, side-effect-heavy operation with no output schema, it covers preconditions, error codes, approval requirements, and post-hoc verification well. The remaining gap is the return payload itself: apart from wait_seconds holding the answer until the promote ends, the description never says what a successful promote response contains, leaving the agent to infer 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% and the schema already explains version (deployed, unretired, promotable, defaults to development's serving version), application id vs name, wait_seconds bounds and the invalid_request refusal, and rotate_database_credential's default and non-return. The description adds only the model-facing consequence of omitting version (nothing_to_promote when nothing is serving), so the schema is doing most of the work and 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 ("Promote a version with production's settings and credentials") and immediately adds the distinguishing side effects: re-minting the platform credential, creating production on first deploy, and adding a database and owner role when the manifest declares one. That contrasts cleanly with tzcloud_deploy and tzcloud_create_environment named later in the text.

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?

Explicit routing is given: on a single environment deploy to production or use tzcloud_roll_back, while tzcloud_create_environment adds development, and deployment to development must come first. It also names preconditions and failure states (halted production must be resumed via tzcloud_halt_environment with resume: true, nothing_to_promote, and the account-owner approval requirement), so an agent can decide when and when not to call it.

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