Skip to main content
Glama

Update page

update_html_page
Destructive

Change a page in place: the artifact_id, its brain object and its history stay, and the old page is kept as an earlier version. Call read_artifact with for_edit true first, then pass the whole new document, not a patch. The same rules as generate_html_page apply.

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": {
      "artifact_id": "<artifact_id>",
      "html": "<html>"
    },
    "name": "update_html_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesThe whole page: one HTML document with every style and script inline.
titleNoA new title. Its <title> otherwise.
artifact_idYesAn artifact_id from generate_html_page or list_artifacts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

The annotations only declare readOnlyHint=false and destructiveHint=true; the description adds the materially important nuance that artifact_id, the brain object and history persist and the prior page is retained as an earlier version. That reframes a flagged-destructive operation as recoverable and is exactly the kind of context annotations cannot carry.

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?

Three tight sentences with the mutation semantics, the workflow precondition and the input shape all front-loaded; nothing is padding. The cross-reference to generate_html_page is the one element that costs the reader extra work instead of saving 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 mutation tool with annotations, three documented parameters and no output schema, the description covers workflow, persistence semantics and input shape well. It does not say what comes back after the update (e.g., the artifact id or a new version handle), which would have closed the last gap given there is no output schema.

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 html, title and artifact_id are already documented, including the requirement that the page be a single inline document. The description reinforces "whole document, not a patch" and names the for_edit flag, but adds no syntax or format 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?

"Change a page in place" names a specific verb and resource and immediately distinguishes the operation from creation by contrasting it with generate_html_page. The agent can tell this is an edit of an existing artifact rather than a new page.

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 an explicit prerequisite sequence ("Call read_artifact with for_edit true first") and an explicit constraint on input shape ("pass the whole new document, not a patch"). The only soft spot is "the same rules as generate_html_page apply," which requires looking up another definition, but the core when-to-use guidance is unambiguous.

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.