Skip to main content
Glama

Create Wiki page

wiki_pages_create

Create a wiki page at body.slug (POST /pages).

Instructions

Create a wiki page at body.slug (POST /pages).

Treat the slug as permanent: pages_move can rename the page later, but the old address then answers 404 and links to it break, so pick the slug carefully. Returns the created page (its numeric id drives the id-based tools and every subsequent write). E.g. {"body": {"slug": "data/x", "title": "X", "content": "# X"}}.

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

Input Schema

NameRequiredDescriptionDefault
bodyYesTyped request body for ``POST /pages``: a new page at ``slug``.
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).
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. Changed8 schema fields changedv0.122.1
    • addedInput schema / properties / body
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Typed request body for ``POST /pages``: a new page at ``slug``.",
      +  "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."
      +    },
      +    "content": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Body of the page in YFM markdown."
      +    },
      +    "slug": {
      +      "description": "Address of the page, e.g. ``data/x``.",
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "Title of the page.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "slug",
      +    "title"
      +  ],
      +  "type": "object"
      +}
    • removedInput schema / properties / content
      Removed value: -{
      -  "description": "Page body in YFM markdown.",
      -  "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 / slug
      Removed value: -{
      -  "description": "Target slug, e.g. ``data/x``. Treat it as permanent (a move breaks links).",
      -  "type": "string"
      -}
    • removedInput schema / properties / title
      Removed value: -{
      -  "description": "Page title.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "title",
      -  "content"
      -]New value: +[
      +  "body"
      +]
  3. First observedv0.67.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true. The description adds genuine context beyond them: the slug is effectively permanent, renaming later breaks old links with 404s, and the response carries the numeric id that every subsequent id-based write depends on. It stops short of mentioning notification behavior (is_silent) or access-policy defaults, but the core side effects are disclosed.

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 warning about slug permanence is front-loaded right after the purpose statement, and the example is compact. Formatting is dense with backtick-heavy markup, but no sentence is filler.

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?

With no output schema, the description correctly fills the gap by explaining what comes back (the created page and its numeric id) and why it matters. The remaining unmentioned items — fields, dry_run, is_silent — are fully documented in the schema, so an agent has enough to call this correctly.

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 description coverage is 100%, so the baseline is 3. The description earns a bump by giving the slug a semantic constraint the schema lacks ("treat the slug as permanent" with the 404/link-breakage rationale) and by supplying a concrete example payload that shows the nested body shape in use.

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+resource and even the underlying endpoint: "Create a wiki page at body.slug (POST /pages)." That cleanly separates it from wiki_pages_update, wiki_pages_clone, and wiki_pages_move without needing the schemas opened.

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 implied by "Create a wiki page" rather than stated as a condition. It does route the agent toward wiki_pages_move for later renaming and warns about the consequence, but it never says when to prefer this tool over wiki_pages_clone or when a create is inappropriate.

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