Skip to main content
Glama

Update Wiki page

wiki_pages_update
Idempotent

Change a wiki page by numeric id: only the fields set in body change.

Instructions

Change a wiki page by numeric id: only the fields set in body change.

body.content REPLACES the whole text — to add to an existing page use pages_append instead. The Wiki API updates via POST, not PATCH (PATCH returns 405); the SDK already handles that quirk. Repeating the same call yields the same page state (idempotent). E.g. {"page_id": 7, "body": {"title": "New name"}}.

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>",
      "body": "<body>"
    },
    "name": "wiki_pages_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesTyped request body for ``POST /pages/{id}``: only the fields set are changed. A page's address is not among them: :class:`PageMove` renames or relocates a page.
fieldsNoExtra blocks to include in the reply (CSV), e.g. ``content,attributes``.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
page_idYesNumeric id of the page to update.
is_silentNoDo not notify the page's subscribers.
allow_mergeNoMerge with a concurrent edit (3-way merge) instead of failing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. Changed10 schema fields changedv0.122.1
    • addedInput schema / properties / allow_merge / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / allow_merge / default
      Previous value: -falseNew value: +null
    • removedInput schema / properties / allow_merge / type
      Removed value: -"boolean"
    • addedInput schema / properties / body
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Typed request body for ``POST /pages/{id}``: only the fields set are changed.\n\nA page's address is not among them: :class:`PageMove` renames or relocates a page.",
      +  "properties": {
      +    "access_policy": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "description": "Who may open a page, in a create or update body (``access_policy``).",
      +          "properties": {
      +            "access_type": {
      +              "anyOf": [
      +                {
      +                  "enum": [
      +                    "inherited",
      +                    "all_staff",
      +                    "custom"
      +                  ],
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "string"
      +                }
      +              ],
      +              "description": "``inherited`` (as the parent), ``all_staff`` or ``custom``."
      +            },
      +            "all_staff_role": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Role every employee gets under ``all_staff``, e.g. editor."
      +            }
      +          },
      +          "required": [
      +            "access_type"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Who may open the page."
      +    },
      +    "actuality": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "description": "Whether a page is up to date (``actuality`` of an update body).",
      +          "properties": {
      +            "comment": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Note left with the mark."
      +            },
      +            "is_actual": {
      +              "description": "``True`` marks the page up to date, ``False`` obsolete.",
      +              "type": "boolean"
      +            },
      +            "links": {
      +              "anyOf": [
      +                {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Links to the up-to-date material."
      +            }
      +          },
      +          "required": [
      +            "is_actual"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Mark the page up to date or obsolete."
      +    },
      +    "content": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "New body, replacing the whole one."
      +    },
      +    "owner": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "description": "The new owner of a page (``owner`` of an update body).",
      +          "properties": {
      +            "user": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": true,
      +                  "description": "A user by passport ``uid`` or ``cloud_uid``.",
      +                  "properties": {
      +                    "cloud_uid": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "default": null,
      +                      "description": "Cloud uid of the user."
      +                    },
      +                    "uid": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "default": null,
      +                      "description": "Passport uid of the user."
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "The user who becomes the owner."
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "The new owner of the page."
      +    },
      +    "redirect": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "description": "Where a page should redirect to (``redirect`` of an update body).\n\n``page`` has no default: ``None`` is sent as ``null`` and removes the redirect.",
      +          "properties": {
      +            "page": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": true,
      +                  "description": "A page by its numeric ``id`` and its ``slug``.\n\nIn a request either one addresses the page, and ``id`` takes priority when both are given.",
      +                  "properties": {
      +                    "id": {
      +                      "anyOf": [
      +                        {
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "default": null,
      +                      "description": "Numeric id of the page."
      +                    },
      +                    "slug": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "default": null,
      +                      "description": "Slug of the page, e.g. ``data/x``."
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "The page to redirect to, by id or slug; ``None`` removes the redirect."
      +            }
      +          },
      +          "required": [
      +            "page"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Make the page a redirect, or remove its redirect."
      +    },
      +    "title": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "New title of the page."
      +    }
      +  },
      +  "type": "object"
      +}
    • removedInput schema / properties / content
      Removed value: -{
      -  "description": "New page body in YFM markdown (full replace).",
      -  "type": "string"
      -}
    • addedInput schema / properties / is_silent / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / is_silent / default
      Previous value: -falseNew value: +null
    • removedInput schema / properties / is_silent / type
      Removed value: -"boolean"
    • removedInput schema / properties / title
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "New title (unchanged when omitted)."
      -}
    • changedInput schema / required
      Previous value: -[
      -  "page_id",
      -  "content"
      -]New value: +[
      +  "page_id",
      +  "body"
      +]
  3. First observedv0.67.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, destructive=false, idempotent=true), and the description adds genuinely new behavior: content is a full replacement, not an append, and the API requires POST with PATCH returning 405. It adds no permission/authorization context and no failure modes beyond the merge hint carried in the schema.

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?

The critical constraint (only set fields change) and the highest-risk nuance (content replaces everything, use pages_append) are front-loaded, and the example is compact. The POST-vs-PATCH 405 detail is somewhat implementation trivia, but it is short and explains why a client need not worry about it.

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 nested-body mutation tool with no output schema, the description covers the update semantics, the destructive corner (content replacement), idempotency, and an example call. Missing only secondary behavior such as dry_run previews and the fields expansion, which the schema fully describes.

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 the schema: the semantics of the body object (only set fields change) and the replace-not-merge nature of body.content, plus a worked example tying page_id and body together. It says nothing about dry_run, is_silent, allow_merge, or fields, but those are documented in the schema.

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?

"Change a wiki page by numeric id" gives a specific verb, resource, and addressing scope, and immediately clarifies patch-like semantics ("only the fields set in body change"). It is clearly distinguished from the sibling that adds content (pages_append) and from address changes (delegated to PageMove via the schema text).

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?

It names a concrete alternative and the condition that selects it: to add to an existing page, use pages_append instead, because content replaces the whole text. It stops short of a full when/when-not map (e.g. it never points at wiki_pages_move for renames or wiki_access_* for permissions), leaving some routing to the agent.

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

Deploy Server

Other Tools