Skip to main content
Glama

Move file

move_file
Destructive

Renames a file or moves it to another folder: oldPath is where it is now, newPath where it should be. A same-parent oldPath/newPath is a rename. title follows newPath's filename unless you pass one. Moving into a workspace other than your default needs confirmation - see confirm_token.

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": {
      "oldPath": "<oldPath>",
      "newPath": "<newPath>",
      "workspace_id": "<workspace_id>",
      "context": "<context>"
    },
    "name": "move_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOverride the title (otherwise it follows newPath's filename).
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
newPathYesDestination full path - a different folder, a different filename, or both.
oldPathYesCurrent full path of the file.
workspace_idYesWhich workspace to act in - a workspace id (whoami returns the id of your default workspace). Required here (no default): this operation cannot be undone.
confirm_tokenNoOnly when writing into a workspace other than your default: the first call returns a `confirmation_required` result carrying a `confirm_token`; call again with the same arguments plus that token to proceed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description goes further by disclosing the two-call confirmation requirement for cross-workspace moves, which an agent would otherwise not anticipate. It omits whether an existing file at newPath is overwritten, which matters for a destructive operation.

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 sentences, no filler, and the core operation is front-loaded before the conditional confirmation detail. Every clause carries information an agent needs to construct a correct call.

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 destructive mutation with no output schema and six parameters, the description covers rename semantics, title defaulting, and the confirmation gate. The notable gap is collision behavior at the destination and the irreversibility warning, which appears only in the workspace_id schema text rather than the description.

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 would be 3, but the description adds real meaning: it frames oldPath/newPath as source-versus-destination, defines the same-parent case as a rename, and states that title defaults to newPath's filename unless overridden. That interpretive layer is not in the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb pair and resource: 'Renames a file or moves it to another folder,' immediately establishing that this covers both rename and relocate semantics. The resource (file) is implicitly distinguished from the move_folder sibling by naming files and paths, but no sibling is named explicitly, so it stops short of a 5.

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 selection logic: same-parent oldPath/newPath means it is a rename, and moving into a non-default workspace triggers a confirmation flow via confirm_token. It does not mention when to prefer this over create_file plus delete_file, or when move_folder would be the right call instead, so no 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.

Resources