Skip to main content
Glama

file_move

Move or rename files and folders within or across storages without overwriting existing items; use the returned free name if the destination is taken.

Instructions

Move or rename a file/folder, within a storage or across two (the bytes are copied and verified, then the source is removed). Never overwrites: if dst is taken the item lands on a free name beside it (rapor-copy.txt), so use the returned entry.path - it may differ from what you asked for. entry.type says what moved: "dir" for a folder, "file" for a file. Moving an item onto its own path does nothing. A folder moved across storages that holds links filex cannot follow is copied WITHOUT them and its source is KEPT: then entry.source_kept is true and entry.left_behind names each one - a success, do not retry.

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": {
      "src": "<src>",
      "dst": "<dst>"
    },
    "name": "file_move"
  }
}

Input Schema

NameRequiredDescriptionDefault
dstYesdestination adapter://path (same storage)
srcYessource adapter://path

Output Schema

NameRequiredDescriptionDefault
entryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and mostly does: it discloses the copy-verify-delete mechanism (so the source is destroyed), the never-overwrite renaming policy that can change the destination path, and the source_kept/left_behind partial-success case with an explicit "do not retry". Missing only operational context such as permissions or failure modes when copying fails midway.

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, then the non-obvious consequences, with every sentence contributing a distinct rule. It is dense and somewhat run-on with stacked parentheticals, but no sentence is filler.

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?

Covers the tricky cases an agent would otherwise get wrong: destination name drift, distinguishing dir vs file via entry.type, and the cross-storage link case flagged by source_kept and left_behind. Although an output schema exists, the description's explanation of those fields is directly tied to the decision not to retry.

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; the description earns above that by explaining that dst is advisory — a taken name yields a suffixed sibling (rapor-copy.txt) and the real location must be read from entry.path. That adds real meaning about how to interpret dst beyond "destination adapter://path".

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 ("Move or rename a file/folder") and immediately bounds the scope ("within a storage or across two"), which implicitly separates it from the sibling file_copy that leaves the source in place. "Rename" is folded into the same verb, so an agent understands there is no separate rename tool to hunt for.

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?

Gives concrete when-to-use behaviour: moving onto its own path is a no-op, and a cross-storage move of a folder with unfollowable links is a success that must not be retried. It does not explicitly name file_copy as the alternative for keeping both copies, so the exclusion is implied rather than stated.

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