Skip to main content
Glama

redeploy

Destructive

Rebuild a project from its branch or roll back to a previous deployment, replacing what is live. The first call returns a preview; call again with confirm=true to apply.

Instructions

Redeploy a project. rebuild_from_branch=true (default) rebuilds from the latest commit of its branch; false re-deploys the given deployment as it was (rollback). Without deployment_id, the latest deployment is used. It replaces what is live: the first call only returns a preview; call again with confirm=true once the user agrees.

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": {
      "project_id": "<project_id>"
    },
    "name": "redeploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
project_idYes
deployment_idNo
rebuild_from_branchNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description earns its keep by adding what the annotations cannot: that the operation replaces what is live, that a preview-then-confirm two-phase gate exists, and that rebuild_from_branch=false acts as a rollback. These are exactly the behavioral traits an agent needs before invoking a destructive mutation.

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?

Three tight sentences, front-loaded with the action, then the mode semantics, then the confirm gate. No restatement of the name or title and no filler; every clause conveys operational information.

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, four-parameter mutation the description covers the decision-relevant facts, and an output schema exists so return values need not be described. Minor residual gaps remain around what the preview actually surfaces and whether related resources (env vars, domains) are preserved, though the confirm gate mitigates the risk.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does: rebuild_from_branch is explained for both true and false (branch tip rebuild vs. as-was rollback), deployment_id is explained including the default when absent, and confirm is tied to the preview flow. project_id is the only unexplained parameter and is self-evident from its name.

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 ("Redeploy a project") and immediately disambiguates the two modes it can operate in: rebuild from branch tip versus re-deploy an existing deployment as a rollback. An agent can distinguish this from deploy_from_git or deploy_template without opening the schema.

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?

Gives explicit procedural guidance: the first call returns only a preview, and you must call again with confirm=true once the user agrees. It also explains the default path when deployment_id is omitted. It stops short of naming sibling alternatives (e.g., when to choose a fresh git deploy instead of a redeploy), so routing between tools is left partly to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.