Skip to main content
Glama

Restart an app

redeploy_app
DestructiveIdempotent

Restart an existing app (rolling restart with zero downtime). Call this after changing configuration, or to recover an app that is stuck or misbehaving. It restarts the version already running. It does not build or pull new code: call rebuild_app for that. If this app has storage, it is stopped and started again instead, so it is unreachable for a few seconds.

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": {
      "app_id": "<app_id>"
    },
    "name": "redeploy_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe app id returned by list_apps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: zero-downtime rolling restart, only restarts the already-running version, and a special-case path where apps with storage are stopped and started, making them unreachable for a few seconds. This complements destructiveHint=true by explaining the nature of the disruption; only the return/response behavior is left unstated.

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

Conciseness5/5

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

Four short sentences, each carrying distinct information: what it does, when to call it, what it does not do, and the storage special case. Front-loaded with the primary action and free of filler.

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 single-parameter, non-idempotent-looking-but-annotated-as-idempotent mutation with no output schema, the description covers purpose, timing, alternative, and the storage caveat. Only the expected result of the call is unspecified, a minor gap given there is no output schema.

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 there is only one parameter, whose meaning ('app id returned by list_apps') is fully documented in the schema. The description adds no further semantics about app_id, 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?

States a concrete verb and resource ('Restart an existing app') plus a key qualifier ('rolling restart with zero downtime'), and explicitly contrasts itself with the rebuild_app sibling. An agent can distinguish this from rebuild_app/deploy_app without opening any 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?

Gives explicit triggering conditions ('after changing configuration, or to recover an app that is stuck or misbehaving') and an explicit exclusion with the named alternative ('It does not build or pull new code: call rebuild_app for that'). Nothing is left to inference.

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.