Skip to main content
Glama

Update a Docmost page

update_page
Destructive

Update Docmost pages in Markdown by replacing, appending, prepending, or deleting content under a heading; also rename pages, change icons, and add or remove labels.

Instructions

Writes Markdown to a page, replacing, appending to or prepending to the whole body or, with heading, only the part under that heading, which can also be deleted, and can rename the page, change its icon, or in a call of their own add and remove labels; a whole-body replace is refused on pages holding content Markdown cannot carry, such as mentions or comments.

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

Input Schema

NameRequiredDescriptionDefault
iconNoNew emoji icon.
titleNoNew page title.
pageIdYesPage id, slug id, or the full page URL copied from the browser.
headingNoApply the operation to this heading's section, down to the next heading of the same or a higher level, merging with anyone editing; text ignoring case and any leading #.
markdownNoNew Markdown content; omit to change only the title or icon. Under a heading it may hold headings, paragraphs, lists, task lists, code blocks, quotes and rules, with bold, italic, strikethrough, code and links.
addLabelsNoLabel names to add; Docmost lowercases them, turns spaces into hyphens and allows only letters, numbers, -, _ and ~.
operationNoHow markdown is applied; defaults to replace. With heading, replace swaps the content under it, prepend adds right under it, append adds after its subsections, and delete removes the heading with its content.
removeLabelsNoLabel names to remove; each must already be on the page.
expectedUpdatedAtNoupdatedAt from your last get_page; the change is refused if the page changed since.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.0.0
    • addedInput schema / properties / addLabels
      Added value: +{
      +  "description": "Label names to add; Docmost lowercases them, turns spaces into hyphens and allows only letters, numbers, -, _ and ~.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 25,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / expectedUpdatedAt / description
      Previous value: -"updatedAt from your last get_page; a replace is refused if the page changed since."New value: +"updatedAt from your last get_page; the change is refused if the page changed since."
    • addedInput schema / properties / heading
      Added value: +{
      +  "description": "Apply the operation to this heading's section, down to the next heading of the same or a higher level, merging with anyone editing; text ignoring case and any leading #.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / markdown / description
      Previous value: -"New Markdown content; omit to change only the title or icon."New value: +"New Markdown content; omit to change only the title or icon. Under a heading it may hold headings, paragraphs, lists, task lists, code blocks, quotes and rules, with bold, italic, strikethrough, code and links."
    • changedInput schema / properties / operation / description
      Previous value: -"How markdown is applied to the existing body; defaults to replace."New value: +"How markdown is applied; defaults to replace. With heading, replace swaps the content under it, prepend adds right under it, append adds after its subsections, and delete removes the heading with its content."
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "replace",
      -  "append",
      -  "prepend"
      -]New value: +[
      +  "replace",
      +  "append",
      +  "prepend",
      +  "delete"
      +]
    • addedInput schema / properties / removeLabels
      Added value: +{
      +  "description": "Label names to remove; each must already be on the page.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. Changed1 schema field changedv0.7.0
    • addedInput schema / properties / expectedUpdatedAt
      Added value: +{
      +  "description": "updatedAt from your last get_page; a replace is refused if the page changed since.",
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A3.6/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 readOnlyHint=false, so the risk profile is known. The description adds genuinely new behavior: a whole-body replace is refused on pages holding content Markdown cannot carry (mentions, comments) — a failure mode an agent could not infer from annotations. It does not mention the expectedUpdatedAt conflict refusal, but the schema covers that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

No filler, and the core action is front-loaded, but the body is a single comma-spliced run-on that chains five or six distinct behaviors together, making it harder to parse than a short enumerated list would be. The content earns its place; the structure does not.

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 nine-parameter mutation tool with no output schema, the description covers the important semantic ground: operation modes, heading scoping, the labels-need-separate-calls rule, and the rich-content refusal. It omits any statement of what the call returns (e.g. the updated page or its new updatedAt), which would close 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 every one of the nine parameters is already documented, including the operation/heading interaction and the Markdown formatting support. The description largely restates those interactions rather than adding meaning beyond the schema, so the baseline of 3 is appropriate.

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?

Opens with a specific verb and resource ("Writes Markdown to a page") and enumerates the modes it supports: replace/append/prepend/delete, heading-scoped edits, rename, icon change, and label changes. It is clear what the tool does, but it never distinguishes itself from the sibling replace_page_text, which an agent could easily confuse with the whole-body replace mode described here.

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 conveyed implicitly through the mode enumeration and the note that labels are added/removed "in a call of their own," which hints at call composition. There is no explicit statement of when to prefer this tool over replace_page_text, delete_page, or move_page, and no positive guidance on choosing among the four operations beyond the schema's own enum documentation.

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