Skip to main content
Glama

Update page

update_page
Destructive

Modify a documentation page's title or full Markdown content while preserving earlier versions, and reject conflicting edits when a supplied expected version is outdated.

Instructions

Update a page's title and/or content. Earlier text stays in the page history (list_page_versions) and can be brought back with restore_page_version. Pass expected_version to fail instead of overwriting concurrent edits.

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

Input Schema

NameRequiredDescriptionDefault
pageYesPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
titleNoNew title
contentNoNew full Markdown content (replaces existing content)
expected_versionNoIf set and the page has moved past this version, the update is rejected

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotency, and the description adds genuinely new behavioral context on top: that overwritten content survives in page history and is restorable, and that omitting expected_version permits last-write-wins overwrites. It does not mention permission requirements or what the response contains, but the safety profile is meaningfully enriched.

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, then recovery path, then concurrency escape hatch. No filler and nothing redundant enough to cut.

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 four-parameter mutation tool with full schema coverage and rich annotations, the description covers the key risks: destructive content replacement, recoverability via history, and lost-update prevention. Only secondary details such as permission prerequisites are absent, which the annotations do not cover either but which are unlikely to block a correct 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 coverage is 100%, so parameter meaning is already carried by the schema, including the expected_version rejection rule and the fact that content replaces existing text. The description restates the expected_version behavior rather than adding new semantics. Baseline 3 applies.

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?

States a specific verb and resource with scope: 'Update a page's title and/or content.' That scope distinguishes it from append_to_page and update_comment by implication, but the description never names a sibling as the alternative path, so the differentiation is inferred rather than stated.

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?

Gives clear situational context: prior text is retained in history (list_page_versions) and recoverable via restore_page_version, and expected_version is the opt-in concurrency guard. It stops short of explicit when-not-to-use guidance, e.g. steering an agent toward append_to_page when only adding text is intended.

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