Skip to main content
Glama

Move a page

move_page
Destructive

Moves or renames a page (another folder, another slug, or both) in one change: its route, its file on template sites (src/pages mirrors the folders, imports follow) and plain HTML sites (/index.html or .html), every internal link to it in the site's code and CMS items (Link to, a href, the nav and footer), a redirect from the old address when it was published, and the site plan's entry (purpose, notes and SEO move with it). Works on template sites, React sites whose routes are in code with literal paths, and plain HTML sites; the home page and pages with a variable part keep their address (collection pages move with update_collection settings.urlFolder). Refused with 409 and action ask_agent when Xodia can't do it safely (route_shape_unsupported, route_unreadable, html_pages_listed, or relative_links: an HTML page linking its files relative to its folder): then move it in code yourself, update every link and add the redirect (skill redirects). Addresses are lowercase words with dashes, up to 5 folder levels; an address another page, folder or collection uses is refused with address_clash and the reason (a collection's item level, /blog/, belongs to its items unless the collection reserves that slug). dryRun says what would change first. A page locked on the workspace's plan (list_pages, get_project lockedPages) is refused with plan_limit and reason page_locked. Where move_page works, never move a page by editing routes or files by hand. Saved at once, like every edit in Xodia; pushing to Git and publishing stay the user's. The site plan follows in the same change.

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": {
      "from": "<from>",
      "to": "<to>",
      "projectId": "<projectId>"
    },
    "name": "move_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesIts new address ("/company/about"): another folder, another slug, or both
fromYesThe page's current address ("/about")
branchNoOptional branch; default the branch the workspace has open
dryRunNoOnly say what would change (files, links, redirects); writes nothing
redirectNoOmit: a redirect from the old address only when the page was published (it was in the last restore point before this change); true: always; false: never
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / redirect / description
      Previous value: -"Omit: a redirect from the old address only when the page was published (saved before this change); true: always; false: never"New value: +"Omit: a redirect from the old address only when the page was published (it was in the last restore point before this change); true: always; false: never"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations (destructiveHint=true), spelling out every side effect, the 409 refusal reasons, plan_limit/page_locked rejection, address clash semantics with collections, and that changes are saved at once while Git push and publishing remain the user's. The only soft spot is that the shape of the dryRun output and the error payload are only loosely implied.

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?

Purpose and major effects are front-loaded, and nearly every clause carries information, but the whole definition is a single dense block of stacked parentheticals and caveats that is hard to scan. It would read substantially better split into short paragraphs for effects, refusals, and constraints.

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 six-parameter destructive mutation with no output schema, the description covers what changes, what is preserved, when it is refused and what the agent should do instead, plus persistence and locking behavior. An agent has enough to call it correctly and to interpret its failures.

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, and the description earns a bump by adding address rules (lowercase words with dashes, up to 5 folder levels), clash behavior for the `to` value, and the redirect default logic tied to publication state. The `branch` parameter, however, is left to the schema alone.

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?

Opens with a specific verb and resource plus scope ("Moves or renames a page (another folder, another slug, or both)") and immediately enumerates the exact artifacts touched: route, file on template/HTML sites, internal links, redirect, site plan entry. An agent can distinguish this from move_file or update_collection without opening a 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?

Gives explicit when-to-use boundaries: works on template, React-with-literal-routes, and plain HTML sites, but not the home page or pages with variable parts, and collection pages are routed to update_collection with settings.urlFolder. It also states the negative case ("Where move_page works, never move a page by editing routes or files by hand") and the fallback path with the skill redirects.

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