Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Deploy application

tzcloud_deploy
Destructive

Deploy a stored ZIP or start a prepared upload.

artifact deploys a storage ZIP. upload only retries a prepared start. A tool with no shell uses tzcloud_deploy_files. With a shell and the app's whole folder, use tzcloud_deploy_command where it works. A script passes artifact to deploy a stored zip.

A gateway error, closed connection or non-platform response leaves the outcome unknown. A tzcloud_read_status row of kind deploy, started after your call, confirms a start. A retry is allowed only when status shows no start, using pending_upload.retry where supplied.

Details: read_documentation /cloud/getting-started/ways-to-deploy/.

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

Input Schema

NameRequiredDescriptionDefault
commitNoBuild commit from `git rev-parse HEAD`, on a self-made start only. Malformed or supplied during preparation gives `invalid_request`. Omitted records no commit.
uploadNoPrepared upload id from the command's `prepared:` line, only for retrying its start. No file gives `upload_not_found`. Changed SHA-256 gives `upload_hash_mismatch`, which retries cannot start.
artifactNoStored ZIP. Missing file, hash mismatch or the platform deploy area is refused by name. Excludes `upload`, else `invalid_request`.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentNoWith one environment, default production. Development needs `tzcloud_create_environment`, else `environment_not_created`. With two, default development, and production is refused `environment_unavailable`; production changes use `tzcloud_promote`.
wait_secondsNoSeconds to wait for the deploy to end. Out of range gives `invalid_request`.
rotate_database_credentialNoTrue also changes the production database-role password. Other values, or development, give `invalid_request`.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag this as a destructive, open-world write, and the description adds real behavioral context on top: gateway errors, closed connections or non-platform responses leave the outcome unknown, and a tzcloud_read_status deploy row started after the call is what confirms a start. It also surfaces the relevant failure codes (invalid_request, upload_not_found, upload_hash_mismatch) and the constraint that hash-mismatch uploads cannot be retried.

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 mode split are front-loaded, then the failure/confirmation behavior follows, with a documentation pointer last. Some phrasing is terse to the point of opacity ("A tool with no shell uses...", "A script passes `artifact` to deploy a stored zip" repeats the opening), but there is no filler.

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, open-world deploy with no output schema, the description covers what an agent needs to call it safely: the two input modes, outcome ambiguity after transport errors, how to verify via tzcloud_read_status, and when retries are legitimate. Nothing critical is left to inference.

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% and the input schema is unusually rich, already documenting `artifact`, `upload`, `commit`, `environment`, `wait_seconds` and `rotate_database_credential` with patterns, defaults and error outcomes. The description largely restates those relationships (artifact deploys a ZIP, upload only retries a prepared start) rather than adding syntax, units or interactivity the schema lacks, so the 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?

The opening sentence states a specific verb and resource and immediately splits the two modes: a stored ZIP via `artifact` versus starting a prepared upload via `upload`. It also names the substitute tools (tzcloud_deploy_files, tzcloud_deploy_command) so the agent can tell this tool apart from its siblings without opening another 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?

The definition gives explicit routing conditions: no shell means tzcloud_deploy_files, a shell plus the app's whole folder means tzcloud_deploy_command, and a scripted path passes `artifact`. It also states the retry rule (allowed only when status shows no start, via pending_upload.retry), which is a genuine when-not constraint.

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