Skip to main content
Glama

update_page

Destructive

Replace the entire code of a page. Read it with get_page first and send the whole page back, changed where it was asked and untouched everywhere else. Webas keeps the previous version so the owner can undo this. If the site is published, the change is live immediately.

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>",
      "page_id": "<page_id>",
      "code": "<code>"
    },
    "name": "update_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe complete page: HTML with its CSS in <style> and its JavaScript in <script>, no <!DOCTYPE>/<html>/<head>/<body>, nothing loaded from outside. A <form> carries no action attribute: Webas wires it. Under 500,000 characters.
page_idYesFrom list_sites.
site_idYesFrom list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false; the description goes further by disclosing the safety net (the previous version is retained so the owner can undo) and the blast radius (published sites go live immediately). That is real context an agent could not infer from structured fields. It stops short of saying what the call returns or how failures/validation are surfaced.

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?

Four short sentences with the core action first, then the required workflow, then the reversibility and publication consequences. Every sentence carries information the agent needs; nothing is padding.

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, no-output-schema write operation, the description covers the essential risks: full replacement semantics, the prerequisite read, undo availability, and immediate live effect. The only gap is the response behavior - whether the call returns the page, a version identifier, or nothing - which the agent may need to chain a follow-up call.

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%, so all three parameters are already documented in detail, including the code payload rules. The description reiterates the whole-page requirement ("send the whole page back... untouched everywhere else"), which reinforces that no partial diff is accepted but overlaps what the schema already states. 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?

"Replace the entire code of a page" gives a specific verb (replace) and resource (page code), and the whole-page framing separates it from an incremental edit tool. The description also names get_page as the read counterpart, so the agent can distinguish read vs. write 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?

It prescribes a concrete workflow - read with get_page first, then send the entire page back with only the requested changes applied - which is the key guidance for avoiding clobbering content. It does not explicitly state when not to use it (e.g., for new pages, where create_page applies), but the guidance that is present is actionable.

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.