Skip to main content
Glama

Replace project content

replace_project_html
DestructiveIdempotent

Replace saved project HTML (up to 24,000 characters). Requires review and does not deploy it. Use get_project to read the current content first. Returns awaiting_confirmation and an approval_url: the owner must approve these exact parameters in Cormak, then retry with the SAME request_id. No work starts before approval. Reuse request_id on retries.

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": {
      "request_id": "<request_id>",
      "project_id": "<project_id>",
      "html": "<html>"
    },
    "name": "replace_project_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYes
project_idYes
request_idYesStable UUID for this exact operation. Reuse on retries. Never change it to retry an unknown result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructive, non-readOnly, idempotent) the description discloses the approval gate, that no work starts before approval, the return payload (awaiting_confirmation and approval_url), and the request_id stability contract. That is exactly the context an agent needs to avoid double-writing or retrying with a new ID.

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 purpose and limit, then the approval flow, then retry semantics — a sensible order with no filler. "Reuse request_id on retries" slightly restates the earlier retry instruction, which keeps it from a perfect score.

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 three-parameter destructive mutation with no output schema, the description covers the gate, the return shape, the retry contract, and the size constraint. Nothing an agent needs in order to invoke this correctly is missing.

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

Parameters4/5

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

Schema coverage is only 33%: request_id is documented but project_id and html are not. The description compensates by explaining the request_id reuse contract and the html size bound, which is more than the schema conveys for the one documented field.

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?

"Replace saved project HTML" is a specific verb+resource, and the parenthetical adds a hard scope limit (24,000 characters). "Does not deploy it" cleanly separates this from publish_project, and the get_project reference separates it from the read path.

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?

It gives an explicit prerequisite sequence ("Use get_project to read the current content first") and an explicit retry protocol (approve, then retry with the SAME request_id). It stops short of naming publish_project as the alternative when the intent is to deploy, so the when-not case is only implied.

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.