Skip to main content
Glama

Redeploy site

redeploy_site
Destructive

Update an existing site, either with NEW code (source_type + repo_url/archive_url, public or private) or by redeploying an earlier version_id from its history. This REPLACES the live content, so confirm with the user first. The site's organization and hosting account do not change.

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": {
      "site_name": "<site_name>"
    },
    "name": "redeploy_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNo
branchNomain
reasonNoWhy (recorded with a version redeploy)
ref_typeNoheads
repo_urlNo
frameworkNo
site_nameYesName of the EXISTING site to update
version_idNoInstead of new code, redeploy this earlier version (see list_site_deployments)
archive_urlNo
import_typeNobuild
source_typeNoNew code: 'git' or 'archive_url' (same meaning as deploy_site). Omit when using version_id.
node_versionNo
build_commandNo
install_commandNo
pat_secret_nameNoNAME of a stored Git token secret, for PRIVATE repos
output_directoryNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description reinforces that by stating the operation REPLACES live content. It also adds genuinely new scope information — the organization and hosting account are left unchanged — which the annotations do not convey. Beyond that it discloses no permission requirements, build/queue behavior, or whether a failed redeploy leaves the site broken, so with annotations already covering the safety profile this lands at a solid 3 rather than a 4.

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?

Four compact sentences, front-loaded with the two mutually exclusive modes and followed by the destructive warning and the blast-radius note. Nothing is filler, though the parenthetical field lists inside the first sentence make it slightly denser than necessary.

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

Completeness3/5

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

An output schema exists and the annotations carry the safety profile, so the description doesn't owe return-value or safety detail. But for a 16-parameter mutation with 69% of parameters undocumented, the description should say more about how the build-related options interact with the two modes — currently an agent can invoke it but cannot reason well about the optional surface.

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 low at 31%, and the description compensates only partially: it explains the source_type/repo_url/archive_url grouping, the mutual exclusivity of version_id versus new code, and the private-repo path via pat_secret_name. The other optional parameters — branch, ref_type, env, import_type, framework, node_version, build_command, install_command, output_directory — get no treatment in either place, leaving an agent to infer defaults and interactions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb+resource ('Update an existing site') and spells out its two distinct modes: new code via source_type plus repo_url/archive_url, or redeploy of an earlier version_id. A sibling exists called revert_site_version whose purpose is close to the version_id path, yet the description never distinguishes the two, so an agent must guess between them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a real precondition ('confirm with the user first' because live content is replaced) and points to list_site_deployments as the way to obtain a version_id. What is missing is routing: nothing says when to use this instead of deploy_site for fresh code or revert_site_version for rollbacks, which is the main ambiguity for an agent.

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