Skip to main content
Glama

Update site

update_site
Idempotent

Use when the user wants to push the new version or update the page while keeping the same link. ON A WEBSITE (list_websites): send changes with base "live", only the files that change (no shell needed), and the content_hash you read as base_content_hash. Save every change as preview: true unless the person asked you to publish it right away; then get_preview_link and, once the person agrees, set_live_version. Sending html, files, zipBase64 or upload_id replaces every page, so an update that would remove pages is refused: call get_site for the file list and send just that page with changes; replace_all true only when the person wants the whole website replaced. A photo added or changed, with a shell: create_bundle_upload with site_id and manifest, then upload_id here with preview: true (no base_content_hash). Before editing a header or footer, check _partials/. Ship a 404.html, keep existing paths, redirect a moved address in a root _redirects (/old /new), include shared parts with , and register a form’s collection with set_collection_access and notify true. OTHERWISE: replaces a site's content in place by id. Accepts the same inputs as publish_site (html, files as text, a bundle, or a single document such as Markdown, .ipynb, PDF, .docx, .pptx, .xlsx, CSV, an image, a video, an audio, a Mermaid diagram or a text file, which is re-rendered; pass filename for a lone non-zip file, and include_original as on publish_site); the detected content_kind may change, and the result warns when html has replaced a site that was rendered from a file. Preserves the URL, visibility, allowlist, link expiry, and view password, and records a new version. Without a shell, a binary the client cannot send as bytes is dropped by the person on the site's own page, https://app.snaphost.ai/sites/<site_id> ("Upload a new version"), never on the drive, which would make a second site. Open viewers are offered a Refresh to the new content (set_render_options viewer_update changes that). Like publish_site, the result reports the collections set up from its window.SNAPHOST use, external references the security policy will block (relay them to the owner, then add_external_origins or vendor the assets), and relative references to missing files (include them and republish).

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_id": "<site_id>"
    },
    "name": "update_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoRequired with `changes`: what the change is built on. "live" is the version the website serves now; "preview" is the waiting preview (to add to a preview you already saved). If that version changed while you were working, the update is refused so nothing is undone: read the site again and resend.
htmlNoA single self-contained HTML document, as text. The first choice for one page: it needs no encoding, no shell and no network of your own. At most 3.5 MB once JSON-escaped (a control character other than backspace, tab, newline, form feed and carriage return, `<`, `>`, `&` or any non-ASCII character counts 6 bytes, an emoji 12, and `"`, `\` and `/` 2, so non-ASCII text may count three times its size and markup-heavy text up to six): in practice about 3 MB of plain HTML, about 2 MB when tag-dense; the rest of the 4 MB request body is for the call itself. A bigger page: Trim it, split it across more than one site, give the person the text to save as a file and hand it over, or send it through create_bundle_upload, which needs a shell that makes the SnapHost tool calls itself.
filesNoPlain-text files, each `{path, content}`, zipped for you: a page with its own CSS, JS, JSON or SVG files (name the entry `index.html`), or one Markdown, CSV, Mermaid, notebook, code or .tsx/.jsx React component file on its own, rendered as its kind under its path (a component needs a default export and may import only react, react-dom, recharts, lucide-react, d3, framer-motion and @radix-ui/react-*). Paths are relative to the bundle root with forward slashes (`index.html`, `assets/app.js`). Text only: an image, a font, a PDF or any binary is referenced at a URL (add_external_origins) or sent through create_bundle_upload. At most 100 entries and 2 MB of text in total (UTF-8), and 3.5 MB once JSON-escaped (a control character other than backspace, tab, newline, form feed and carriage return, `<`, `>`, `&` or any non-ASCII character counts 6 bytes, an emoji 12, and `"`, `\` and `/` 2, so non-ASCII text may count three times its size and markup-heavy text up to six): in practice about 2 MB of plain English or 1 MB of non-Latin or tag-dense text. The rest of the 4 MB request body is for the call itself. Like `html`, this works from any client, a chat window with no shell included.
changesNoHTML sites only. The way to edit one page of a site without resending the rest, and the only way from a chat window with no shell: send just the files that change. `files` are text files written at their path (a path that does not exist is created, so a wrong path makes a stray file; a path that exists is replaced, whole file content); `delete` are paths to remove. Everything not named stays exactly as stored. Read every file you will change with get_site_content (`path`; the file list is in get_site) and send its edited text; never guess a path. Needs `base` and `base_content_hash`, and replaces `html`, `files`, `zipBase64` and `upload_id`: send one or the other. Text only: a changed or added photo or other binary goes by create_bundle_upload with `site_id` and a `manifest` of every file, built from the site as it stands, then `upload_id` here (on a website with `preview` true), which needs a shell.
previewNoWebsite sites only (a site with a website domain). true stores this update as a waiting preview and leaves the live website as it is; the response gives the version_id. Then call get_preview_link for a one-hour link to review it, and, after the person has said yes, set_live_version to put it live. On a website, save every change as a preview unless the person asked you to publish it right away. Refused on a site that is not a website. A preview that a colleague saved is not replaced unless `replace_preview` is true: ask the person first. Works with `changes` too.
site_idYesThe id of the site to update
filenameNoThe uploaded file's own name with its extension (`report.pdf`, `photo.png`, `data.csv`). Give it once, at create_bundle_upload; a name given here as well must match it. Pass it here only for a single non-zip file whose upload was opened without one, so it is rendered as its kind; an upload that no name describes and that is neither a zip nor an HTML page is refused. For a .docx, .pptx or .xlsx sent as `zipBase64`, give its name here: it heads the bar and names the download. Ignored for a .zip bundle. A name SnapHost does not take is refused with the export that would work.
printableNoThe page is built to print (a PDF that keeps the look): the design check asks for print styles, and a plain page gets the viewer's Print action (a report or a deck carries its own Download PDF button instead). Kept on later updates unless given again.
upload_idNoReference a bundle already uploaded via create_bundle_upload (sent with upload_bundle_part, or PUT to its `upload_url`; for one opened with `site_id` and `manifest`, with upload_blob or a PUT to its `blob_upload_url`); use this for a large or binary-carrying app (e.g. a built React site with images and fonts) that `html` or `files` cannot hold, or for a single file that is not text (a PDF, an image, a video, an audio, a .docx, .pptx or .xlsx), sent as it is together with `filename`. Sending the bytes needs a shell that makes the SnapHost tool calls itself; without a shell the person drops the file on the dashboard: the drive (https://app.snaphost.ai/) for a new site, or the site's own page (https://app.snaphost.ai/sites/<site_id>, "Upload a new version") to keep an existing link. Mutually exclusive with `html`, `files` and `zipBase64`.
zipBase64NoBase64-encoded .zip bundle (entry HTML + assets), for a multi-file bundle that holds binaries and fits the 4 MB request body once encoded; a .docx, .pptx or .xlsx (zips themselves) or a one-entry zip holding a single PDF, image, video or audio file under its real name also goes here. Text belongs in `html` or `files` instead: base64 has to be reproduced byte for byte and a long string often is not, so this input is rejected outright if the encoding or the archive checksums do not verify. Producing it needs a shell that makes the SnapHost tool calls itself; a client without one sends text as `files` and hands a binary to the person for the dashboard: the drive (https://app.snaphost.ai/) for a new site, or the site's own page (https://app.snaphost.ai/sites/<site_id>, "Upload a new version") to keep an existing link.
replace_allNoWebsite sites only, with `html`, `files`, `zipBase64` or `upload_id` (not with `changes`). A whole-site update that would remove pages the website has is refused and names them. Pass true only when the person has said the whole website should be replaced; to change some pages, send only those with `changes`.
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).
document_kindNoWhat the site is: a report, a presentation, a dashboard, or a plain page (the default). A publish or content update of such a site runs the design check (`design_warnings`); a presentation may go full screen. Kept on later updates unless given again.
replace_previewNoWith `preview: true`. A preview that a colleague saved is still waiting, and saving yours would delete it, so the call is refused and says who saved it and when. Ask the person first; pass true only when they say to replace it. Replacing your own needs nothing.
include_originalNoWhether readers may download the uploaded file itself from the page. Applies to a Word, PowerPoint or Excel file only, and is off by default for them, because the file holds what the page does not show: speaker notes, hidden slides, sheets, rows and columns, formulas, comments and tracked changes. Pass true to offer it anyway; on update_site, leave it out to keep the live version's choice. A macro-enabled .docm, .pptm or .xlsm is never offered. A CSV, image, video, audio, PDF, diagram or text file is its page and always downloads; a Markdown file or notebook becomes its page and has no download. The result reports `original_included`, and `render_notices` says what the page could not show (cells shown as formulas when a workbook carries no computed values; a file left out for size). Relay a notice to the user.
base_content_hashNoRequired with `changes`. Pass the content_hash you read. If the site changed since, the update is refused so nothing is undone. It is the `content_hash` that get_site or get_site_content returned for the live version, or the one list_websites returned for the waiting preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / changes / description
      Previous value: -"HTML sites only. The way to edit one page of a site without resending the rest, and the only way from a chat window with no shell: send just the files that change. `files` are text files written at their path (a path that does not exist is created, so a wrong path makes a stray file; a path that exists is replaced, whole file content); `delete` are paths to remove. Everything not named stays exactly as stored. Read every file you will change with get_site_content (`path`; the file list is in get_site) and send its edited text; never guess a path. Needs `base` and `base_content_hash`, and replaces `html`, `files`, `zipBase64` and `upload_id`: send one or the other."New value: +"HTML sites only. The way to edit one page of a site without resending the rest, and the only way from a chat window with no shell: send just the files that change. `files` are text files written at their path (a path that does not exist is created, so a wrong path makes a stray file; a path that exists is replaced, whole file content); `delete` are paths to remove. Everything not named stays exactly as stored. Read every file you will change with get_site_content (`path`; the file list is in get_site) and send its edited text; never guess a path. Needs `base` and `base_content_hash`, and replaces `html`, `files`, `zipBase64` and `upload_id`: send one or the other. Text only: a changed or added photo or other binary goes by create_bundle_upload with `site_id` and a `manifest` of every file, built from the site as it stands, then `upload_id` here (on a website with `preview` true), which needs a shell."
    • changedInput schema / properties / upload_id / description
      Previous value: -"Reference a bundle already uploaded via create_bundle_upload (sent with upload_bundle_part, or PUT to its `upload_url`); use this for a large or binary-carrying app (e.g. a built React site with images and fonts) that `html` or `files` cannot hold, or for a single file that is not text (a PDF, an image, a video, an audio, a .docx, .pptx or .xlsx), sent as it is together with `filename`. Sending the bytes needs a shell that makes the SnapHost tool calls itself; without a shell the person drops the file on the dashboard: the drive (https://app.snaphost.ai/) for a new site, or the site's own page (https://app.snaphost.ai/sites/<site_id>, \"Upload a new version\") to keep an existing link. Mutually exclusive with `html`, `files` and `zipBase64`."New value: +"Reference a bundle already uploaded via create_bundle_upload (sent with upload_bundle_part, or PUT to its `upload_url`; for one opened with `site_id` and `manifest`, with upload_blob or a PUT to its `blob_upload_url`); use this for a large or binary-carrying app (e.g. a built React site with images and fonts) that `html` or `files` cannot hold, or for a single file that is not text (a PDF, an image, a video, an audio, a .docx, .pptx or .xlsx), sent as it is together with `filename`. Sending the bytes needs a shell that makes the SnapHost tool calls itself; without a shell the person drops the file on the dashboard: the drive (https://app.snaphost.ai/) for a new site, or the site's own page (https://app.snaphost.ai/sites/<site_id>, \"Upload a new version\") to keep an existing link. Mutually exclusive with `html`, `files` and `zipBase64`."
  2. Changed6 schema fields changed
    • addedInput schema / properties / base
      Added value: +{
      +  "description": "Required with `changes`: what the change is built on. \"live\" is the version the website serves now; \"preview\" is the waiting preview (to add to a preview you already saved). If that version changed while you were working, the update is refused so nothing is undone: read the site again and resend.",
      +  "enum": [
      +    "live",
      +    "preview"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / base_content_hash
      Added value: +{
      +  "description": "Required with `changes`. Pass the content_hash you read. If the site changed since, the update is refused so nothing is undone. It is the `content_hash` that get_site or get_site_content returned for the live version, or the one list_websites returned for the waiting preview.",
      +  "type": "string"
      +}
    • addedInput schema / properties / changes
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "HTML sites only. The way to edit one page of a site without resending the rest, and the only way from a chat window with no shell: send just the files that change. `files` are text files written at their path (a path that does not exist is created, so a wrong path makes a stray file; a path that exists is replaced, whole file content); `delete` are paths to remove. Everything not named stays exactly as stored. Read every file you will change with get_site_content (`path`; the file list is in get_site) and send its edited text; never guess a path. Needs `base` and `base_content_hash`, and replaces `html`, `files`, `zipBase64` and `upload_id`: send one or the other.",
      +  "properties": {
      +    "delete": {
      +      "description": "Paths to remove; each must exist in the base",
      +      "items": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "files": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "content": {
      +            "description": "The whole file as UTF-8 text",
      +            "type": "string"
      +          },
      +          "path": {
      +            "description": "Relative path, e.g. about.html",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "path",
      +          "content"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / preview
      Added value: +{
      +  "description": "Website sites only (a site with a website domain). true stores this update as a waiting preview and leaves the live website as it is; the response gives the version_id. Then call get_preview_link for a one-hour link to review it, and, after the person has said yes, set_live_version to put it live. On a website, save every change as a preview unless the person asked you to publish it right away. Refused on a site that is not a website. A preview that a colleague saved is not replaced unless `replace_preview` is true: ask the person first. Works with `changes` too.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / replace_all
      Added value: +{
      +  "description": "Website sites only, with `html`, `files`, `zipBase64` or `upload_id` (not with `changes`). A whole-site update that would remove pages the website has is refused and names them. Pass true only when the person has said the whole website should be replaced; to change some pages, send only those with `changes`.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / replace_preview
      Added value: +{
      +  "description": "With `preview: true`. A preview that a colleague saved is still waiting, and saving yours would delete it, so the call is refused and says who saved it and when. Ask the person first; pass true only when they say to replace it. Replacing your own needs nothing.",
      +  "type": "boolean"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / properties / files
      Added value: +{
      +  "description": "Plain-text files, each `{path, content}`, zipped for you: a page with its own CSS, JS, JSON or SVG files (name the entry `index.html`), or one Markdown, CSV, Mermaid, notebook, code or .tsx/.jsx React component file on its own, rendered as its kind under its path (a component needs a default export and may import only react, react-dom, recharts, lucide-react, d3, framer-motion and @radix-ui/react-*). Paths are relative to the bundle root with forward slashes (`index.html`, `assets/app.js`). Text only: an image, a font, a PDF or any binary is referenced at a URL (add_external_origins) or sent through create_bundle_upload. At most 100 entries and 2 MB of text in total (UTF-8), and 3.5 MB once JSON-escaped (a control character other than backspace, tab, newline, form feed and carriage return, `<`, `>`, `&` or any non-ASCII character counts 6 bytes, an emoji 12, and `\"`, `\\` and `/` 2, so non-ASCII text may count three times its size and markup-heavy text up to six): in practice about 2 MB of plain English or 1 MB of non-Latin or tag-dense text. The rest of the 4 MB request body is for the call itself. Like `html`, this works from any client, a chat window with no shell included.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "content": {
      +        "description": "The file as UTF-8 text",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Relative path inside the bundle, spelled exactly as the page's own references spell it (two Unicode spellings of one accented name count as one entry)",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "content"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / html / description
      Previous value: -"A single self-contained HTML document"New value: +"A single self-contained HTML document, as text. The first choice for one page: it needs no encoding, no shell and no network of your own. At most 3.5 MB once JSON-escaped (a control character other than backspace, tab, newline, form feed and carriage return, `<`, `>`, `&` or any non-ASCII character counts 6 bytes, an emoji 12, and `\"`, `\\` and `/` 2, so non-ASCII text may count three times its size and markup-heavy text up to six): in practice about 3 MB of plain HTML, about 2 MB when tag-dense; the rest of the 4 MB request body is for the call itself. A bigger page: Trim it, split it across more than one site, give the person the text to save as a file and hand it over, or send it through create_bundle_upload, which needs a shell that makes the SnapHost tool calls itself."
    • changedInput schema / properties / upload_id / description
      Previous value: -"Reference a bundle already uploaded via create_bundle_upload (sent with upload_bundle_part, or PUT to its `upload_url`); use this for a large or multi-file app (e.g. a built React site) that exceeds the inline `html`/`zipBase64` limit, or for a single file that is not a zip (Markdown, a notebook, a PDF, an image, a video, an audio, a CSV, a Mermaid diagram or a text file), sent as it is together with `filename`. Mutually exclusive with `html` and `zipBase64`."New value: +"Reference a bundle already uploaded via create_bundle_upload (sent with upload_bundle_part, or PUT to its `upload_url`); use this for a large or binary-carrying app (e.g. a built React site with images and fonts) that `html` or `files` cannot hold, or for a single file that is not text (a PDF, an image, a video, an audio, a .docx, .pptx or .xlsx), sent as it is together with `filename`. Sending the bytes needs a shell that makes the SnapHost tool calls itself; without a shell the person drops the file on the dashboard: the drive (https://app.snaphost.ai/) for a new site, or the site's own page (https://app.snaphost.ai/sites/<site_id>, \"Upload a new version\") to keep an existing link. Mutually exclusive with `html`, `files` and `zipBase64`."
    • changedInput schema / properties / zipBase64 / description
      Previous value: -"Base64-encoded .zip bundle (entry HTML + assets), for a multi-file bundle small enough to inline; a .docx, .pptx or .xlsx (zips themselves) or a one-entry zip holding a single Markdown, notebook, PDF, CSV, image, video, audio, Mermaid or text file under its real name also goes here. A single HTML document belongs in `html` instead: base64 has to be reproduced byte for byte and a long string often is not, so this input is rejected outright if the encoding or the archive checksums do not verify."New value: +"Base64-encoded .zip bundle (entry HTML + assets), for a multi-file bundle that holds binaries and fits the 4 MB request body once encoded; a .docx, .pptx or .xlsx (zips themselves) or a one-entry zip holding a single PDF, image, video or audio file under its real name also goes here. Text belongs in `html` or `files` instead: base64 has to be reproduced byte for byte and a long string often is not, so this input is rejected outright if the encoding or the archive checksums do not verify. Producing it needs a shell that makes the SnapHost tool calls itself; a client without one sends text as `files` and hands a binary to the person for the dashboard: the drive (https://app.snaphost.ai/) for a new site, or the site's own page (https://app.snaphost.ai/sites/<site_id>, \"Upload a new version\") to keep an existing link."
  4. Changed1 schema field changed
    • changedInput schema / properties / printable / description
      Previous value: -"The page is built to print (a PDF that keeps the look): the viewer then offers Print, and the design check asks for print styles. Kept on later updates unless given again."New value: +"The page is built to print (a PDF that keeps the look): the design check asks for print styles, and a plain page gets the viewer's Print action (a report or a deck carries its own Download PDF button instead). Kept on later updates unless given again."
  5. Changed2 schema fields changed
    • addedInput schema / properties / document_kind
      Added value: +{
      +  "description": "What the site is: a report, a presentation, a dashboard, or a plain page (the default). A publish or content update of such a site runs the design check (`design_warnings`); a presentation may go full screen. Kept on later updates unless given again.",
      +  "enum": [
      +    "page",
      +    "report",
      +    "presentation",
      +    "dashboard"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / printable
      Added value: +{
      +  "description": "The page is built to print (a PDF that keeps the look): the viewer then offers Print, and the design check asks for print styles. Kept on later updates unless given again.",
      +  "type": "boolean"
      +}
  6. Changed4 schema fields changed
    • addedInput schema / properties / filename
      Added value: +{
      +  "description": "The uploaded file's own name with its extension (`report.pdf`, `photo.png`, `data.csv`). Give it once, at create_bundle_upload; a name given here as well must match it. Pass it here only for a single non-zip file whose upload was opened without one, so it is rendered as its kind; an upload that no name describes and that is neither a zip nor an HTML page is refused. For a .docx, .pptx or .xlsx sent as `zipBase64`, give its name here: it heads the bar and names the download. Ignored for a .zip bundle. A name SnapHost does not take is refused with the export that would work.",
      +  "type": "string"
      +}
    • addedInput schema / properties / include_original
      Added value: +{
      +  "description": "Whether readers may download the uploaded file itself from the page. Applies to a Word, PowerPoint or Excel file only, and is off by default for them, because the file holds what the page does not show: speaker notes, hidden slides, sheets, rows and columns, formulas, comments and tracked changes. Pass true to offer it anyway; on update_site, leave it out to keep the live version's choice. A macro-enabled .docm, .pptm or .xlsm is never offered. A CSV, image, video, audio, PDF, diagram or text file is its page and always downloads; a Markdown file or notebook becomes its page and has no download. The result reports `original_included`, and `render_notices` says what the page could not show (cells shown as formulas when a workbook carries no computed values; a file left out for size). Relay a notice to the user.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / upload_id / description
      Previous value: -"Reference a bundle already uploaded via create_bundle_upload (sent with upload_bundle_part, or PUT to its `upload_url`); use this for a large or multi-file app (e.g. a built React site) that exceeds the inline `html`/`zipBase64` limit. Mutually exclusive with `html` and `zipBase64`."New value: +"Reference a bundle already uploaded via create_bundle_upload (sent with upload_bundle_part, or PUT to its `upload_url`); use this for a large or multi-file app (e.g. a built React site) that exceeds the inline `html`/`zipBase64` limit, or for a single file that is not a zip (Markdown, a notebook, a PDF, an image, a video, an audio, a CSV, a Mermaid diagram or a text file), sent as it is together with `filename`. Mutually exclusive with `html` and `zipBase64`."
    • changedInput schema / properties / zipBase64 / description
      Previous value: -"Base64-encoded .zip bundle (entry HTML + assets), for a multi-file bundle small enough to inline. A single HTML document belongs in `html` instead: base64 has to be reproduced byte for byte and a long string often is not, so this input is rejected outright if the encoding or the archive checksums do not verify."New value: +"Base64-encoded .zip bundle (entry HTML + assets), for a multi-file bundle small enough to inline; a .docx, .pptx or .xlsx (zips themselves) or a one-entry zip holding a single Markdown, notebook, PDF, CSV, image, video, audio, Mermaid or text file under its real name also goes here. A single HTML document belongs in `html` instead: base64 has to be reproduced byte for byte and a long string often is not, so this input is rejected outright if the encoding or the archive checksums do not verify."
  7. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  8. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, idempotent, non-destructive write; the description adds far more — that URL, visibility, allowlist, link expiry and view password are preserved, that a new version is recorded, that updates which would remove pages are refused, that open viewers are offered a Refresh, and what the result reports (collections, blocked external references, missing relative files). None of that is available from annotations or the schema, and it does not contradict destructiveHint=false since the operation is versioned and refuses destructive whole-site overwrites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the 'Use when' trigger and the ON A WEBSITE / OTHERWISE / 'Like publish_site' structure is navigable, but the body is one very dense block of clause-chained sentences that packs workflow, file conventions, partials, redirects, includes, forms and result-reporting into a single paragraph. Nearly all of it is useful, yet it would read far better as bullets or shorter sentences, so it is effective but not concise.

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 16-parameter, nested-schema mutation tool with no output schema, the description supplies the missing pieces: the two operating modes, the preview-then-publish sequence, the refusal conditions, the file/binary handling paths, and what the response reports. An agent has enough to call it correctly and interpret the result without guessing.

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 description coverage is 100%, so the baseline would be 3, but the description adds operational relationships the schema does not tie together: `base` must be 'live' when sending `changes`, `base_content_hash` is mandatory with `changes`, `preview: true` is the default posture on a website, and `html`/`files`/`zipBase64`/`upload_id` are mutually exclusive replacements for `changes`. It also explains the binary escape hatch (create_bundle_upload → `upload_id` with `preview: true`, no `base_content_hash`), which is genuine meaning beyond the field-text.

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+resource+invariant: it pushes a new version of a site 'while keeping the same link', and later states precisely that it 'replaces a site's content in place by id'. It clearly distinguishes itself from publish_site (which is the alternative it names for creating rather than updating), so an agent can separate the two 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?

It states the when (update an existing site), gives a mandatory workflow branch (ON A WEBSITE via list_websites: use `changes` + `base: live` + `base_content_hash`, save as `preview: true`, then get_preview_link and set_live_version), and names alternatives for other cases (create_bundle_upload for binaries, publish_site semantics otherwise, replace_all only with explicit consent). The 'OTHERWISE' branch and the preview/when-not-to-publish guidance cover both direction and exclusions.

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.