Skip to main content
Glama

Move or rename

fs_move
Destructive

Use this when the user asks to move or rename a file or folder within an approved project on the same drive. An existing target is never replaced unless overwrite is true, and then only a file. Links, the project or workspace root and Local Commander's own files are refused. Changes files on the computer. Needs the sessionId from execution_session_open and a new operationId; each call is metered as one execution. A short result is returned inline within about two seconds; otherwise keep the returned IDs for operation_status and operation_output and do not resend the call.

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": {
      "sessionId": "<sessionId>",
      "operationId": "<operationId>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "fs_move"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesNew path; its folder must exist
fromYesExisting file or folder, relative to the selected project root (or the workspace root)
overwriteNoReplace an existing file at the new path (default false); folders are never replaced
sessionIdYesexecutionSessionId returned by execution_session_open
deadlineAtNoOptional UTC admission deadline at most 60 seconds ahead (queue start timeout, NOT process execution lifetime)
operationIdYesA new random UUID v4 for this call; reuse it only to retry this same call
expectedSha256NoSHA-256 of the file being moved; refused if it changed (optional)
idempotencyKeyNoOptional retry key, 8-128 chars of [A-Za-z0-9._:-]; defaults to operationId
efficiencyProfileNoOptional, unverified label of the client's model, recorded as display metadata in the device owner's local activity statistics. Omit when unknown. Never send credentials or conversation content.
expectedTargetSha256NoSHA-256 of the file that overwrite replaces; refused if it changed (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: it discloses that an existing target is never replaced unless overwrite is true and then only for files, that links, project/workspace roots and the tool's own files are refused, that each call is metered as one execution, and that results may need polling via operation_status/operation_output rather than resending. That is exactly the operational context annotations cannot carry.

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 usage trigger, then safety constraints, then execution/retry mechanics — a sensible ordering with no filler sentences. It is dense and slightly clause-heavy, but every sentence carries information an agent needs before calling a destructive operation.

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 10-parameter destructive mutation with no output schema, it covers prerequisites (sessionId, fresh operationId), refusal conditions, sync-vs-async behavior and retry policy. Minor gaps remain around the shape of the inline result and the optional integrity-hash/deadline parameters, but these are documented in the 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 about overwrite reach (files only, never folders) and about operationId being new per call with IDs kept for later polling. Optional hash and deadline parameters are left to the schema, which is acceptable given full coverage.

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 (move or rename) and resource (file or folder) plus the scope constraint (within an approved project on the same drive). An agent can tell this apart from fs_delete/fs_write/fs_replace because the outcome and domain are named precisely.

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?

"Use this when the user asks to move or rename..." gives an explicit trigger and the same-drive/approved-project boundary narrows the context. It stops short of naming an alternative (e.g. fs_write or a copy path) or stating when not to use it, so it is clear context without explicit exclusions.

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.