Skip to main content
Glama

Append content to Wiki page

wiki_pages_append

Append a YFM fragment to a wiki page without rewriting the whole body.

Instructions

Append a YFM fragment to a wiki page without rewriting the whole body.

Unlike pages_update (full replace), this adds body.content at the chosen spot: body.body.location (top/bottom of the page), a numbered body.section, or a named text body.anchor. Returns the updated page.

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_append"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesWhat to append and where: required ``content`` (YFM fragment) plus optional ``body`` (top/bottom), ``section`` or ``anchor`` placement.
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 append to.
is_silentNoDo not notify the page's subscribers.

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. Changed4 schema fields changedv0.122.1
    • changedInput schema / properties / body / properties / anchor / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Append relative to a named text anchor (``append-content`` ``anchor``).",
      -    "properties": {
      -      "fallback": {
      -        "default": false,
      -        "description": "Fall back to the body end if the anchor is not found.",
      -        "type": "boolean"
      -      },
      -      "name": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Anchor text to append next to."
      -      },
      -      "regex": {
      -        "default": false,
      -        "description": "Treat ``name`` as a regular expression.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Append relative to a named text anchor (``append-content`` ``anchor``).",
      +    "properties": {
      +      "fallback": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Fall back to the body end if the anchor is not found."
      +      },
      +      "name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Anchor text to append next to."
      +      },
      +      "regex": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Treat ``name`` as a regular expression."
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • 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"
  3. First observedv0.67.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (which already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description adds that the operation is additive and preserves the existing body, and that it returns the updated page. It does not explicitly warn that repeated calls duplicate content, but the non-idempotent semantics are carried by the annotations and the 'adds' wording.

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?

Three sentences, front-loaded with the core distinction and followed by the placement options and return value; nothing is redundant. The RST double-backtick markup around parameter paths is minor noise, but the structure remains scannable.

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 5-parameter write tool with nested objects and no output schema, the description covers what it does, how it differs from the replace sibling, the placement alternatives, and the return ('the updated page'). Remaining details (dry_run, is_silent, fields, anchor fallback) are fully documented in the schema, so nothing critical is missing.

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 by mapping prose to schema paths: ``body.content`` is the fragment, and placement is one of ``body.body.location`` (top/bottom), ``body.section`` (numbered), or ``body.anchor`` (named text). That clarifies the mutually exclusive placement model the schema only implies through nested anyOf.

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?

The description opens with a specific verb and resource ('Append a YFM fragment to a wiki page') plus a scope qualifier ('without rewriting the whole body'), and immediately contrasts it with the sibling pages_update (full replace). An agent can distinguish this from pages_update and wiki_pages_create without opening either schema.

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?

It names the alternative explicitly ('Unlike ``pages_update`` (full replace)') and states the condition that selects this tool instead, then enumerates the three placement modes available. The routing decision between append and full-replace is settled inside the description.

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