Skip to main content
Glama

Reorder layout

move_nodes
Destructive

Move a node to a new position in its page/element tree — reorder it within its current parent (e.g. push a section to the top) or re-parent it under a different container in the SAME tree. This is the safe reordering primitive: it takes node ids (not brittle JSON-Patch index paths) and is validated against the actual tree. position is 'start' / 'end' / { after_id }. Rejects moving a root node, moving a node into itself or its own descendant, and cross-tree moves (use add_page (with copy_of) / insert_nodes for those). Writes one new draft version.

Input Schema

NameRequiredDescriptionDefault
node_idYesId of the node to move.
site_idYes
after_idNoThe sibling id, when position is the string 'after'. Equivalent to position: { after_id: '...' } — send either.
positionYesWhere under the target parent: 'start', 'end', { after_id: '...' }, or 'after' with a separate after_id argument. Both spellings of 'after' are accepted. Required — a move has a destination by definition.
target_parent_idYesId of the parent the node should move under. Must live in the SAME page/element tree as node_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, readOnlyHint=false, and the description adds real context on top: which operations are rejected and that the tool 'writes one new draft version' rather than mutating live content. It stops short of covering recoverability (undo) or what the response returns, but the safety profile is well conveyed.

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?

Front-loaded with the core action and its two modes, then constraints, then alternatives — a sensible order. The position-value recap slightly duplicates the schema, and the single dense paragraph could be split for scanability, but nothing is wasted.

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 destructive, non-idempotent mutation with no output schema, the description covers the essentials: modes, validation rules, and the draft-version write. The remaining gap is what the agent gets back and whether the move can be reversed via undo, which would round it out.

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 80% and already documents all five parameters, so baseline would be a 3. The description adds genuine meaning beyond the schema by spelling out the position vocabulary ('start' / 'end' / { after_id }) inline and by stating that target_parent_id must live in the same page/element tree as node_id — a server-side constraint the schema only hints at.

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+resource (move a node) and immediately scopes it to two modes: reorder within the current parent or re-parent within the SAME tree. It also self-describes as 'the safe reordering primitive,' which separates it cleanly from insert_nodes and add_page named later.

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?

Explicit exclusions and alternatives: cross-tree moves should use add_page (with copy_of) / insert_nodes. It also enumerates the rejected cases (root node, self/descendant, cross-tree), so the agent knows both when to use it and when the call will fail.

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