Skip to main content
Glama

Move or rename a file or directory in a sandbox

move_file

Move or rename a file or directory inside a sandbox, across /home/user and /tmp. Creates missing parent directories and requires file.write permission; symlinks move themselves, not their targets.

Instructions

Move or rename a file or directory in a sandbox. Works across /home/user and /tmp. A symlink is moved itself, never its target. Needs file.write.

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": {
      "sandboxId": "<sandboxId>",
      "source": "<source>",
      "destination": "<destination>"
    },
    "name": "move_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
overwriteNoReplace an existing destination. Without it, an existing destination is an error.
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.
destinationYesThe new full path. Missing parent directories are created.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Adds real context beyond annotations: symlinks are moved themselves, not targets; works across /home/user and /tmp; requires file.write scope. It omits whether overwrite destroys data recoverably and what error shapes look like, but the annotation set is not fully covering, so this is 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?

Three tight sentences, front-loaded purpose, each sentence carries distinct information: scope, symlink behavior, permission requirement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, symlink semantics, path scope, and permissions, but leaves overwrite-vs-directory behavior and cross-filesystem/atomicity semantics unaddressed for a mutation tool without 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 75% with overwrite and destination already described. The description adds the symlink behavior and cross-path scope, but does not explain source semantics (relative vs absolute) or how overwrite interacts with directories.

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?

Specific verb (move or rename) plus resource (file or directory) and scope (in a sandbox). It is easily distinguished from siblings like write_file or delete_file.

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

Usage Guidelines3/5

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

Implies usage for moving/renaming, and the overwrite note hints at conflict handling, but no explicit when-to-use vs alternatives (e.g., create_folder, write_file) or prerequisites beyond 'Needs file.write'.

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