Skip to main content
Glama

flypod

Publish a new version of a site

update_site
DestructiveIdempotent

Replaces the content of an existing site with the given files, at the same URL. The files are the complete new version, not a patch: anything left out is no longer served. The previous version is kept and rollback_site restores it.

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

Input Schema

NameRequiredDescriptionDefault
filesYesText files to publish, as a map from path to file content, e.g. {"index.html": "<!doctype html>…", "css/site.css": "…"}. Paths are relative, use forward slashes, and must not start with a slash. The site needs an index.html at its root (a single .html file is served as the home page; a set of .md files with no index.html is rendered as a site). A single self-contained HTML file with inline CSS and JavaScript is the most reliable thing to publish.
site_idYesThe site_id returned by deploy_site, or listed by list_sites.
binary_filesNoOptional non-text files (images, fonts) as a map from path to base64-encoded bytes. Intended for a few small assets; text belongs in `files`.
manage_tokenNoThe manage_token returned by deploy_site for this site. Needed while the site is temporary; not needed for a site that belongs to the signed-in account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds the substance behind that flag: omitted files stop being served, so a partial payload silently deletes pages. It also discloses that the prior version is retained and recoverable via rollback_site, which is exactly the risk-and-recovery information an agent needs before an overwrite.

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 short sentences with zero filler, ordered by importance: what it does, that the payload is a full replacement, then that the old version survives. The destructive consequence is front-loaded where a skimming agent will see it.

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 destructive, open-world mutation with no output schema, the description covers the essentials: replacement semantics, data loss from omitted files, and recoverability. Minor gaps remain—no word on what the call returns, file size limits, or behavior when manage_token is missing on a temporary site—but nothing that would cause a wrong invocation.

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%, and the schema already explains the path-to-content map, the index.html requirement, base64 handling for binary_files, and where site_id and manage_token come from. The description only reinforces that `files` is the whole site rather than a diff; it adds no format or constraint detail beyond the schema, so the 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 ('replaces the content of an existing site ... at the same URL') and pins the scope to a new version of an already-existing site, which separates it from deploy_site. It also names rollback_site as the counterpart, so an agent can place it in the lifecycle without opening a schema.

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?

Provides clear usage context: this is the publish-new-version path, the payload is a complete replacement rather than a patch, and rollback_site is given as the recovery route. It stops short of explicitly excluding sibling alternatives such as deploy_site for first-time publishing or keep_site for temporary sites, so the boundaries are implied rather than spelled out.

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.