Skip to main content
Glama

update_site

Replace the HTML of an existing page on the same URL, so visitors see the updated version without getting a new link. Use when revising an already published site to avoid orphaned pages.

Instructions

Replace the HTML of an existing site in place. The URL stays the same, so everyone you already sent it to sees the new version without being sent anything. Use this — not another publish_html — every time you revise a page you have already published: iterating with publish_html strands the link people are holding on the old version and burns a page slot. The PII pre-flight scan runs on the new content too (MCP default: block; pass pii_check: "warn" to override). A 409 managed_portal means this page is a generated client portal: it rebuilds itself from its space, so direct edits would be overwritten — the owner can "customize" it from the space settings in the dashboard, which stops regeneration for good. A 409 site_deleted means the page has stopped serving and is being kept for 30 days: call restore_site on the same id first, then update it. Do not publish it again, which mints a second page at a different URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesNew HTML content.
filenameNo
pii_checkNo
id_or_slugYesSite id, slug, or unlisted token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly. It discloses in-place replacement, PII pre-flight scan behavior with a default and override, the two 409 error variants with distinct meanings, and that direct edits to a managed_portal would be overwritten. This goes beyond basic mutation expectations.

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?

The description is dense but every clause serves a purpose: core behavior, sibling distinction, PII behavior, and error recovery. The primary action is front-loaded, and the exception handling is organized clearly. No filler or tautology.

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 mutable update operation with no output schema and no annotations, this description covers the key decision points an agent needs: when to call it, which alternative to avoid, how parameter overrides work, and how to recover from both documented 409 states. Nothing crucial 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 50%, and the description significantly enriches the pii_check parameter by explaining its MCP default (block) and how to override with 'warn'. It also reinforces the content parameter's role. However, neither the schema nor description elaborates on filename, so compensation is good but not complete.

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?

The description opens with a specific verb and resource: 'Replace the HTML of an existing site in place.' It clearly differentiates from the sibling publish_html by contrasting the URL behavior and slot consumption, so an agent can distinguish it without examining 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 Guidelines5/5

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

It explicitly states when to use this tool over publish_html ('every time you revise a page you have already published') and why not to use the alternative. It also covers the restore_site prerequisite for the site_deleted 409 and warns against re-publishing, which would create a new URL.

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