Skip to main content
Glama

Replace a page

update_page
DestructiveIdempotent

Replace the HTML of one of the owner's pages and keep its link: the url stays the same. Like publish_page, it waits up to about 20 seconds and returns the new version's status, which can be held too. Without html it only changes who can open the page, its name or whether it is listed. Set listed to true only when the owner asks for the page to be found in search engines; that is part of Pro. Rules, from ShareHTML's terms and acceptable use policy (https://sharehtml.org/acceptable-use): publish nothing illegal; no phishing, and no page that pretends to be another person, company, bank, app or government, or asks for passwords, card numbers or one-time codes for a service the owner does not run; no sexual content of any kind; no malware, scams or pages that get visitors to run commands; no page that loads its content or code from elsewhere at runtime to hide what it shows or does. A page can be held before it goes live; the reply gives the reason. Tell the owner the reason exactly as given and stop; never change a held page to get it through.

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

Input Schema

NameRequiredDescriptionDefault
htmlNoThe whole page as one HTML file, starting with <!doctype html>, its CSS and JavaScript inside it.
nameNoA name of the page’s own for its address, such as maya-art for maya-art.shrz.in (Pro only): 5 to 30 letters, numbers or hyphens. null takes it off. Leave it out unless the owner asks for one.
titleNoA title for a page without a <title> of its own; a page’s own title is kept.
accessNoWho can open it: anyone (with the link), password (with the link and the password), invite (only the emails in invite_emails, each with a code ShareHTML emails them when they open it) or owner (only the owner, signed in). Locks are Pro only; leave it out unless the owner asks.
listedNoList the page in search engines (Pro only), or false to unlist it. Leave it out unless the owner asks.
page_idYesThe page’s id, as publish_page or list_pages gave it.
passwordNoThe password visitors type, 6 to 64 characters, for access password. ShareHTML keeps only its hash and never sends it back.
expires_atNoWhen the link stops working, an ISO 8601 date and time with its zone such as 2026-12-31T23:59:00Z, or null for never (Pro only).
invite_emailsNoFor access invite: the emails to add to the page’s list and to remove from it. Nobody is emailed when they are added: the owner gives them the link, and each opens it with a code they ask for there. For a class or children, suggest a password or a plain link instead.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
nameYes
titleYes
viewsYes
accessYes
listedYes
noticeNo
statusYes
invitedNo
reasonsNo
versionYes
expiresAtYes
updatedAtYes
versionsKeptNo
viewsThisMonthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the ~20 second latency, that the return carries the new version's status, that a version may come back 'held' with a reason, and how the agent must react (report the reason verbatim and stop). The destructive/mutating profile declared by the annotations is corroborated rather than contradicted, and the acceptable-use constraints and Pro-only gating for listed/name/access add operational context an agent cannot get elsewhere.

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

Conciseness4/5

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

Front-loaded with the core replace-and-preserve-url statement, with latency, metadata mode, and hold behavior following in a sensible order. The acceptable-use paragraph is long and list-heavy, but each prohibition is operationally actionable for a publishing tool, so it earns its space despite being denser than ideal.

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 9-parameter, nested-object, destructive mutation with an output schema, the description covers the pieces the schema cannot: degradation to metadata-only mode, Pro-gated fields, hold/pending outcomes, and the required agent response to a hold. Return values are left to the output schema, avoiding duplication.

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 100%, so the baseline is 3, but the description adds real semantics beyond the schema by explaining the conditional role of html (omit it and the call degrades to a metadata-only edit) and by tying listed to the Pro plan and to an explicit owner request. It does not restate the password/invite/expiry nuances, which the schema already handles well.

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?

Opens with a specific verb and resource: 'Replace the HTML of one of the owner's pages and keep its link: the url stays the same.' The url-preservation clause crisply separates it from publish_page (which creates) while acknowledging the shared async/publish behavior, so an agent can tell the two apart 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 Guidelines4/5

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

Explicitly carves out a second mode: 'Without html it only changes who can open the page, its name or whether it is listed,' which tells the agent when this tool is a metadata edit rather than a content replacement. It also states a hard exclusion — never modify a held page to get it through — but offers no routing guidance toward restore_version or delete_page when those would be the right choice.

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