Skip to main content
Glama

Rename or move a folder

update_folder
Destructive

Renames a folder (name) or moves it (to: a new slug or parent), with everything under it in one change: every page's route and file, sub folders, collections whose URL folder is inside it, the internal links to all of them, redirects for the published ones and the site plan. dryRun says what would change first. A folder holding a locked page is refused with plan_limit and reason page_locked. 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). 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": {
      "path": "<path>",
      "projectId": "<projectId>"
    },
    "name": "update_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoA new address: another slug ("what-we-do") or another parent ("company/services"); every page, sub folder and collection under it moves
nameNoA new name (the address stays)
pathYesThe folder to change
branchNoOptional branch; default the branch the workspace has open
dryRunNoOnly say what would change; writes nothing
redirectNoOmit: redirects only for published pages and collections that move; true: for every one; false: none
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Far exceeds the annotations by disclosing the full blast radius of the operation: routes and files for every page, sub folders, collections, internal links, redirects, and the site plan all change together. It also documents refusal semantics with named error reasons, address format constraints (lowercase, dashes, five-level limit, reserved collection slugs), and persistence behavior (saved at once, no Git push or publish).

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 action and its scope, followed by validation, errors, and persistence – a sensible order. It is dense and mostly earns its length, though the site plan is mentioned twice ('...and the site plan' in the cascade list and again in the closing sentence), a minor redundancy.

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, seven-parameter mutation with no output schema, it covers scope, validation, failure modes, and side effects thoroughly. It does not describe what a successful response or a dryRun result actually contains, which leaves a small gap given the absence of an output schema.

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 for `to`: its address syntax and the collision rules that reject it, plus the collection item-level reservation rule. The dryRun and redirect behaviors are largely already present in the schema, so the gain is partial rather than comprehensive.

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 plus resource and two distinct modes: 'Renames a folder (name) or moves it (to: a new slug or parent)'. The cascading scope it states (pages, sub folders, collections, links, redirects, site plan) clearly separates it from siblings like move_page, move_file, or update_collection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly frames when each parameter mode applies (rename vs move) and when to use dryRun first, and gives refusal conditions (plan_limit/page_locked, address_clash). It does not explicitly name alternatives such as move_page for single-page moves, so the agent must infer the boundary, but the context is otherwise unambiguous.

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