Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Restart application

tzcloud_restart_application
Destructive

Restart one environment's running copy. It re-applies the bindings its serving version recorded, not the current manifest's. Each binding reads its secret's current value. The database keeps its data and password. Stored files stay as they are. No build or new version is made, and no daily deploy is spent. A new manifest binding needs a deploy or promote. Resume a halted environment first. Wait for any deploy, promote or restart in flight to end.

An answer not from this platform does not show whether the restart started. Examples are gateway error pages or closed connections. Call tzcloud_read_status with wait_seconds first. The restart started if the environment's deploy member under environments shows kind restart with a started_at later than your call. Repeat tzcloud_restart_application 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>",
      "environment": "<environment>"
    },
    "name": "tzcloud_restart_application"
  }
}

Input Schema

NameRequiredDescriptionDefault
placementNoSuper-admin only, for any account's application. `standing` (default) re-creates compute in place. `rule` runs the placement rule once for its size and sleep setting, moving a standing `shared-0.5gb` production environment to shared compute. Other callers passing it are refused `invalid_request`.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentYesThe environment whose running copy is restarted, `development` or `production`. It must hold a serving version with compute; an environment never deployed is refused `environment_never_deployed`.
wait_secondsNoThe seconds the answer is held until this call's version-history row ends. A value out of range is refused `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 only say destructiveHint=true and openWorldHint=true; the description supplies the substance an agent actually needs: which binding set is re-applied (serving version, not current manifest), that secrets are re-read at current values, and precisely what is preserved (database data and password, stored files). It also discloses that the response may not confirm the restart started, and gives a verification procedure.

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?

Front-loaded with what the restart does and what it preserves, then a second paragraph dedicated to the ambiguous-outcome recovery path. Sentences are terse and information-dense; a few fragments could be merged for flow, but nothing is 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 mutation with no output schema, the description covers outcome semantics, state preservation, preconditions, cost ('no daily deploy is spent'), and how to verify an ambiguous result. Nothing an agent needs in order to call or retry this safely 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 placement, application, environment and wait_seconds in detail. The description adds little parameter-level detail of its own beyond describing how wait_seconds interacts with tzcloud_read_status, so the baseline of 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 with scope: 'Restart one environment's running copy.' It immediately disqualifies misreadings by adding 'No build or new version is made, and no daily deploy is spent,' which separates it from deploy/promote siblings without naming them.

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 preconditions ('Resume a halted environment first', 'Wait for any deploy, promote or restart in flight to end') and an explicit alternative for a related need ('A new manifest binding needs a deploy or promote'). It also gates retry behavior on reading status first, which is a concrete when-to-call-again rule.

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