Skip to main content
Glama

Update a page

update_page

Save a complete new Markdown version of a Sophia wiki page using its current version to prevent overwrite conflicts; re-read and merge if a 409 occurs.

Instructions

Save a new version of a page (needs editor role). Always read the page first (get_page) and send the version you read: if someone saved in between, Sophia answers 409 and you must re-read, merge their changes with yours and save again with the new version. Send the COMPLETE new body (it replaces the old one); title and body are each optional, the one you omit stays as it is. Body = GitHub-flavoured Markdown (tables, task lists, fenced code). Raw HTML is NOT rendered (shown as text), so convert it. Sophia syntax: files ![name](attachment:<uuid>); mentions @[Name](user:<uuid>); panels = blockquote whose first line is > [!INFO], > [!NOTE], > [!SUCCESS], > [!WARNING] or > [!ERROR]; internal links [Title](/sophia/spaces/<KEY>/pages/<pageId>); Kanbio ticket keys written as plain text (e.g. PROJ-12; not inside code or links) link automatically. Links may only point to http(s), mailto, /site-paths or #anchors; images only to attachment: or http(s).

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

Input Schema

NameRequiredDescriptionDefault
bodyNoThe complete new Markdown body.
titleNo
page_idYesSophia page id (uuid), from get_page_tree, search_pages or recent_pages.
versionYesThe version you read with get_page (the current one at that moment).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare it is a non-destructive, closed-world write; the description adds the material behaviour an agent actually needs: editor role required, optimistic-concurrency conflict signalled by 409, and the fact that body is a full replacement while omitted fields are preserved. It also discloses rendering constraints (raw HTML shown as text) that would otherwise cause silent corruption.

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 purpose, then the read-verify-write workflow, then the syntax catalogue — a sensible order with no filler sentences. It is a dense block though; the Sophia syntax rules would scan faster as a short list, and that section is a large fraction of the length.

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 4-parameter mutation tool with no output schema, the description covers the permission prerequisite, the concurrency contract, the replacement-vs-merge rule, and the markup dialect needed to build a valid body. Nothing an agent must know to call it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75% and the schema documents page_id and version, but the description supplies the semantics the schema omits: title and body are each optional and an omitted one is left unchanged, and body must be the COMPLETE new Markdown body, not a patch. It also constrains body content (GitHub-flavoured Markdown, allowed link targets) beyond the schema's maxLength.

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?

Opening clause states a specific verb and resource — 'Save a new version of a page' — and the versioning framing immediately distinguishes it from create_page. It even names the read sibling it pairs with, so an agent knows this is the write half of a read-modify-write cycle.

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 precondition ('Always read the page first (get_page) and send the version you read') and a full alternative path for the failure case: on 409, re-read, merge, and save again. That is when-to-use plus what-to-do-instead guidance rather than an implied context.

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