Skip to main content
Glama

Robinsite website previews

Replace a preview site's files

update_site
DestructiveIdempotent

Replaces all files of an existing preview site with the files given (send the complete site, not only changed files). The address and expiry date stay the same. Requires the site_token from publish_site.

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

Input Schema

NameRequiredDescriptionDefault
filesYesEvery file of the site, including a top-level index.html. Up to 300 files, 2 MB each, 10 MB in total. Allowed types: html, htm, css, js, mjs, json, map, webmanifest, txt, md, xml, csv, svg, png, jpg, jpeg, gif, webp, avif, ico, woff, woff2, ttf, otf, mp3, mp4, webm, pdf. For a built app (React, Vite...), send the build output folder (e.g. dist/), not the source.
site_nameYesThe site name returned by publish_site, e.g. "rosies-bakery".
site_tokenYesThe site_token returned by publish_site.

Output Schema

NameRequiredDescriptionDefault
urlYes
site_nameYes
expires_atYes
total_bytesYes
files_publishedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true; the description adds genuinely new context by disclosing that the address and expiry date are preserved across the replacement and that a token from publish_site is mandatory. It does not contradict any annotation — full replacement is consistent with destructive=true. It does not restate the size/count limits, but those live in the schema.

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, front-loaded with the operation and the critical "complete site" warning before the prerequisites. Every sentence carries distinct information — behavior, preservation guarantee, prerequisite — with no filler.

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 3-parameter mutation with rich schema and an existing output schema, the description covers the essentials an agent needs: what gets overwritten, what survives (address, expiry), and where the token comes from. Return-value explanation is correctly omitted since an output schema exists.

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%, including nested file path/content/encoding docs and the site_token provenance, so the schema already does the heavy lifting. The description only reinforces that site_token comes from publish_site and that files must be the complete set; it adds no format or constraint detail beyond the schema. 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 precise verb+resource ("Replaces all files of an existing preview site") and immediately scopes it with the parenthetical that the complete site must be sent, not a diff. This lets an agent separate it from publish_site (creation) and delete_site (removal) without reading 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 Guidelines4/5

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

Gives a strong usage rule — send the complete site, not only changed files — and points to publish_site as the source of site_token, which implicitly frames this as an update-not-create operation. It stops short of explicitly naming when to use publish_site or delete_site instead, so no exclusion is stated.

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.

Resources