Skip to main content
Glama

Move a Page

move_page
Destructive

Move one existing main-tree Page below another main-tree Page. Read both Pages first and pass both exact revisions. The move preserves the Page id, body, history, and collaboration document; it never resolves Drafts or silently suffixes a colliding sibling slug. Moving the top of an archived branch restores the whole branch.

A lock never refuses a move — locks fence automatic curation, and you act on a member's instruction — but structure locked on either Page's read means a member deliberately chose that arrangement: say which Page holds the lock and confirm before moving it, or moving anything into its branch.

The moved Page stays subject to automatic curation, which may later move it again. A member-directed move is itself an arrangement choice, so when the member wants the Page kept where they put it, offer to structure-lock it with set_lock.

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>",
      "expected_rev": "<expected_rev>",
      "new_parent_id": "<new_parent_id>",
      "new_parent_expected_rev": "<new_parent_expected_rev>",
      "context_id": "<context_id>"
    },
    "name": "move_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesPositive serial id of the Page to move.
context_idYesThe destination context id from list_contexts. Required for writes.
expected_revYesExact revision of the Page returned by the latest Page read.
new_parent_idYesPositive serial id of the destination parent Page.
new_parent_expected_revYesExact revision of the destination parent returned by the latest Page read.

Output Schema

NameRequiredDescriptionDefault
revYes
kindNomove
pathYes
titleYes
page_idYes
tree_idYes
warningNo
changeset_idYes
new_parent_idYes
previous_pathYes
context_run_idYes
affected_page_idsNo
changeset_sequenceYes
previous_parent_idYes
collaboration_reloadedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: what is preserved (id, body, history, collaboration document), that Drafts are never resolved and colliding slugs never silently suffixed, that moving an archived branch top restores the branch, and that curation may move the page again. It does not contradict destructiveHint=true — structural relocation is a mutation — but it also doesn't state what breaks if revisions are stale, which limits it to a 4.

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?

Front-loaded and organized into three thematic paragraphs, but the third paragraph about curation and set_lock partly restates guidance already implied in the lock paragraph, and the archived-branch sentence sits awkwardly inside the preservation paragraph. Tightening would improve it.

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 destructive structural mutation with an output schema and full annotation coverage, the description supplies the missing human-facing context: preconditions, lock etiquette, preservation guarantees, and follow-up advice. Nothing an agent needs to invoke it correctly is absent.

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 coverage is 100%, so all five parameters are already documented, including the meaning of both expected_rev fields. The description reinforces that both revisions come from a read of each Page, but adds no format, sourcing, or failure semantics beyond the schema (e.g., what a stale revision yields).

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?

States a specific verb and resource with scope: 'Move one existing main-tree Page below another main-tree Page.' The main-tree restriction and the fact it never resolves Drafts distinguish it from a hypothetical general move/merge, and it explicitly frames set_lock as the related but different operation.

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 explicit preconditions ('Read both Pages first and pass both exact revisions') and handling rules for the lock case, including that a lock never refuses a move but demands confirmation when 'structure locked' appears. It also names the follow-up tool (set_lock) and the condition that selects it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources