Skip to main content
Glama

file_move

Move or rename files within a workspace using all-or-nothing checks; if any source, destination, or access validation fails, nothing changes and each issue is listed.

Instructions

Moves or renames one or more files inside one workspace. A destination in the same folder renames; one in another folder moves, creating missing destination folders. ALL OR NOTHING: every entry is checked first (source exists and is a file, destination free, no two entries to the same place, access rules). If any entry fails, nothing is moved and each problem is listed. An existing destination is never overwritten: delete it first with file_delete if it must be replaced. At most 50 entries per call. Contents are not changed: C# namespaces, imports and references to the old path stay as they were, so fix them afterwards (file_replace) and build. Saved flows whose steps lived in a moved file are named in the reply, to update with memorise. WHEN TO USE: renaming or reorganising files. For a whole folder use folder_move; to copy a file use file_write with a copy entry. RETURNS: one line per file with its new path, or the reasons nothing was moved.

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>",
      "movesJson": "<movesJson>"
    },
    "name": "file_move"
  }
}

Input Schema

NameRequiredDescriptionDefault
guideNotrue: put the files guide first in the result. Use on your first files call, or when told it changed.
movesJsonYesJSON array of moves, paths relative to the workspace root: [ { "from": "Services/OldName.cs", "to": "Core/Services/NewName.cs" } ]. 'to' is the full new file path, not a folder.
workspaceYesWorkspace name as shown in Waymark (a single workspace; '*' is not accepted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • changedInput schema / properties / movesJson / description
      Previous value: -"JSON array of move entries:\n  [ { \"from\": \"Services/OldName.cs\", \"to\": \"Core/Services/NewName.cs\" } ]"New value: +"JSON array of moves, paths relative to the workspace root: [ { \"from\": \"Services/OldName.cs\", \"to\": \"Core/Services/NewName.cs\" } ]. 'to' is the full new file path, not a folder."
  2. Addedv0.2.1

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing atomic all-or-nothing validation, that existing destinations are never overwritten, a 50-entry cap, and that file contents (namespaces, imports, references) are untouched and must be fixed afterwards. It also surfaces a non-obvious side effect: saved flows referencing moved files are named in the reply. Nothing here contradicts readOnlyHint=false, destructiveHint=false, or idempotentHint=false.

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 verb and scope, then labelled blocks (ALL OR NOTHING, WHEN TO USE, RETURNS) that make scanning cheap. Despite its length, every sentence carries a constraint, side effect, or routing rule that would otherwise cost the agent a failed call.

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?

With no output schema, the description supplies the return shape (one line per file with new path, or the failure reasons), plus the limits and follow-up steps. For a batch mutation tool with three parameters, nothing material is missing.

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: it defines the rename-vs-move semantics that govern how 'to' is interpreted and confirms the single-workspace constraint. The entry structure itself is left to the schema.

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 pair (moves/renames), the resource (files), and the scope (one workspace). It also clarifies that rename vs move depends on destination folder, which an agent could not infer from the name alone.

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 line names the situation (renaming or reorganising files) and routes to alternatives: folder_move for whole folders, file_write with a copy entry for copying. Prerequisites and the delete-first rule for occupied destinations are also stated.

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