Skip to main content
Glama

build_replace_project

DestructiveIdempotent

Destructive: completely replaces a dev-mode project's app and wipes its data (credentials, API keys, namespace and tenant are kept). Domain-admin credentials only; refused when mode='live'; confirm_project_name has to equal the project's name. When files are passed they are validated first (a bad bundle wipes nothing) and published afterwards; without files it only wipes, and build_publish follows.

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_uuid": "<project_uuid>",
      "confirm_project_name": "<confirm_project_name>"
    },
    "name": "build_replace_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOptional new bundle {path: content} to publish after the wipe.
forceNoWipe and publish despite SOFT validation errors (default false). Never overrides a wrong/absent schema namespace, a JavaScript syntax error or schemas the platform refuses: those are refused before anything is wiped.
app_typeNoDefault 'web'.
files_refNoFor a LARGE bundle that exceeds the model output-token cap: a file_id from build_stage_bundle (upload the gzip(json {path:content}) blob out-of-band, then pass its file_id here). Preferred over files/files_b64gz when the bundle will not fit inline.
files_b64gzNoAlt to files: base64(gzip(JSON {path:content})). Use if a CDN/WAF blocks raw code in the body.
project_uuidYesProject UUID (from build_list_projects or build_create_project).
confirm_project_nameYesMust equal the project's name — a safety confirmation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / force
      Added value: +{
      +  "description": "Wipe and publish despite SOFT validation errors (default false). Never overrides a wrong/absent schema namespace, a JavaScript syntax error or schemas the platform refuses: those are refused before anything is wiped.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / app_type / description
      Added value: +"Default 'web'."
    • addedInput schema / properties / project_uuid / description
      Added value: +"Project UUID (from build_list_projects or build_create_project)."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the bar is lower, yet the description still adds substantial context: what is destroyed versus retained (credentials, API keys, namespace, tenant), the auth requirement, the mode gate, and the ordering guarantee that a bad bundle wipes nothing. That is real behavioral disclosure beyond structured fields.

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 'Destructive:' warning, then constraints, then the files/no-files branching. No filler; every clause carries a distinct operational fact.

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 7-parameter destructive mutation with no output schema, the definition covers auth, mode refusal, confirmation, validation ordering, and follow-up tooling. It stops short of describing what the call returns or how the force flag interacts with the flow beyond the schema's own wording, but nothing critical to calling it 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 files, files_ref, files_b64gz, force, and confirm_project_name. The description's parameter-level content largely restates the confirmation constraint and adds ordering context rather than new parameter semantics, so 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 specific verb and resource ('completely replaces a dev-mode project's app and wipes its data') and immediately scopes what is preserved. It also names the sibling it hands off to ('build_publish follows'), so an agent can distinguish a full replace from a plain publish without opening either 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 preconditions and exclusions: domain-admin credentials only, refused when mode='live', and confirm_project_name must match the project name. It also distinguishes the two usage modes (with files = validate then publish; without files = wipe only, then build_publish), which is exactly the when/when-not routing an agent needs.

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.