Skip to main content
Glama

Patch pages

patch_pages
Destructive

Atomically update one or more active Pages or restore trashed Pages in one workspace. Restoring a Page also restores the sub-pages trashed with it; movedSubPageCount reports how many. bodyEdits changes part of a long body without resending it.

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": {
      "workspaceId": "<workspaceId>",
      "pages": "<pages>"
    },
    "name": "patch_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYesPages to patch; combined body content and combined property changes each must be at most 1 MiB.
workspaceIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=false, so the safety bar is partly covered. The description still adds real behavior beyond them: the operation is atomic across the page list, restoring a page cascades to the sub-pages trashed with it, and movedSubPageCount reports that cascade — all things an agent could not infer from the annotations.

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 core action, followed by the restore side effect and the bodyEdits distinction. No filler and no restatement of the title.

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?

An output schema exists, so the description need not explain return values, and the nested parameter docs are thorough. The remaining shortfall is conflict/version handling: for a destructive, non-idempotent batch mutation guarded by a required expectedVersion, the description should note that stale versions fail the whole atomic batch.

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?

Top-level schema coverage is 50% (workspaceId carries no description), though the nested page-object schema is richly documented. The description clarifies the restore flag's cascade effect and the rationale for bodyEdits over full body replacement, but it says nothing about expectedVersion, the optimistic-concurrency field that has no schema description and is required — the single most important semantic gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb pair (update / restore) against a specific resource (Pages), plus the batch scope ('one or more active Pages') and the workspace constraint. It is clearly distinguishable from create_pages, trash_pages, and read_pages without opening a schema, though it never names an alternative sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied rather than stated: 'update one or more active Pages or restore trashed Pages' tells the agent the two situations this tool serves. It does not say when to prefer this over a sibling (e.g. create_pages for new pages, trash_pages for the inverse) or warn about prerequisites such as a stale expectedVersion.

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