Skip to main content
Glama

page_update

Apply ordered, all-or-nothing operations to change an interactive page's state without focusing or reopening it, targeting only changed items by path.

Instructions

Change an interactive page's state with ops, without focusing or reopening it (an unfocused or closed page gets an unread blip). Ops address items by path, so send only what changes. They apply in order, all or nothing, to the latest state. When the page's template has actions, prefer page_action. Never write a key the page uses for in-progress typing (draft). Details: scribe_docs "Reading and changing page state".

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": {
      "ops": "<ops>"
    },
    "name": "page_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoTab id, e.g. t_ab12cd34.
keyNoPage key, e.g. scribe:sprint-notes.
opsYesThe changes, applied in order.
assetsNoLocal files (32 MB each) to store as page assets. Write "asset:<name>" as an op value where the file's URL belongs; it becomes a /blob/<id> URL. Every file must be referenced.
expectedRevisionNoRefuse the write if stateRevision is no longer this one; only when your edit depends on a value you read.
resolveIncompatibilityNoClear a template-bound page's incompatibility overlay once you fixed its state.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the atomic all-or-nothing, in-order, applied-to-latest-state semantics, the side effect (unread blip on unfocused/closed pages), the draft-key hazard, and the template incompatibility overlay. These are exactly the non-obvious behaviors an agent would otherwise get wrong.

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 action and the key constraint, then the alternative, then the safety warning. Dense but mostly earning its place; the parenthetical about the unread blip is slightly cryptic in phrasing, though it conveys a useful side effect.

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 six-parameter mutation tool with 100% schema coverage and no output schema, the description covers intent, ordering, atomicity, side effects, and a docs pointer. The one gap is that it never indicates what a successful call yields (new revision/state), which matters for a caller that may need to chain edits.

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 meaning beyond it: 'Ops address items by path, so send only what changes' explains the intended delta-editing style, and the ordering/atomicity note clarifies how the ops array is consumed. It does not add per-parameter detail beyond the schema, keeping it just short of a 5.

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 (change), resource (an interactive page's state), and mechanism (ops), plus the distinguishing trait that it works without focusing or reopening the page. That immediately separates it from page_open, page_show, and page_patch without needing to inspect their schemas.

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?

Gives an explicit alternative with a condition ('When the page's template has actions, prefer page_action') and an explicit prohibition ('Never write a key the page uses for in-progress typing (draft)'), plus a pointer to reference docs. Both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.