Skip to main content
Glama

folder_move

Move or rename an entire folder and its contents to reorganize your project structure.

Instructions

Moves or renames one folder with everything in it, inside one workspace. Same parent folder = rename; another parent = move (missing parent folders are created). One folder per call on purpose: a folder move touches many files at once. The destination must not exist (it is never overwritten or merged), a folder cannot move into itself, and a change of letter case only is allowed as a rename. Contents are not changed: C# namespaces, imports and project references to the old path stay as they were, so fix them afterwards (file_replace) and build. The code index follows the move. WHEN TO USE: reorganising a feature or project folder. For single files use file_move (it takes many at once); to remove a folder use folder_delete. RETURNS: the new path, or the error.

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

Input Schema

NameRequiredDescriptionDefault
toYesThe full new folder path, relative to the workspace root (e.g. 'Core/Services'), not the parent to move into. Must not exist.
fromYesThe folder to move, relative to the workspace root (e.g. 'Services'). Must exist.
guideNotrue: put the files guide first in the result. Use on your first files call, or when told it changed.
workspaceYesWorkspace name as shown in Waymark (a single workspace; '*' is not accepted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.2
    • changedInput schema / properties / from / description
      Previous value: -"Current relative folder path (e.g. 'Services')"New value: +"The folder to move, relative to the workspace root (e.g. 'Services'). Must exist."
    • changedInput schema / properties / to / description
      Previous value: -"New relative folder path (e.g. 'Core/Services')"New value: +"The full new folder path, relative to the workspace root (e.g. 'Core/Services'), not the parent to move into. Must not exist."
  2. Addedv0.2.1

TDQS

A4.7/5.0
Behavior4/5

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

With annotations already declaring non-read-only, non-idempotent and non-destructive, the description justifies that safety profile: the destination is never overwritten or merged, and a folder cannot move into itself. It also discloses that missing parent folders are created, that case-only renames are permitted, that file contents/references are left stale, and that the code index follows the move. The only minor gap is that 'one folder per call' is stated without noting any rate/scale limits, but the behavioral coverage is otherwise strong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and mode distinction, then constraints, then a labelled WHEN TO USE block and a RETURNS line. Every sentence carries information the agent needs; nothing is redundant with the schema.

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 mutation tool with annotations and no output schema, the description covers scope (one folder, one workspace), failure/constraint conditions, side effects on contained files and the index, and the return value. An agent has everything needed to call it correctly and to know what to do afterwards.

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 conceptual meaning: the from/to relationship determines whether the operation is a rename or a move, and the destination constraint is framed as a hard rule. The guide parameter is left unexplained, but it is documented in the schema itself.

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 ('Moves or renames one folder with everything in it, inside one workspace') and immediately disambiguates the two modes: same parent = rename, another parent = move. It is clearly distinct from the named siblings file_move and folder_delete.

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?

An explicit WHEN TO USE section names the scenario ('reorganising a feature or project folder') and routes away to file_move for single files and folder_delete for removal. It even prescribes the follow-up workflow (file_replace then build) for fixing stale references.

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