Skip to main content
Glama

Move or rename

move_file

Moves or renames a file or folder within an Overleaf project, creating missing target folders and avoiding overwrites; update LaTeX references afterward.

Instructions

Moves and/or renames a file or folder inside one project, creating missing target folders. Fails if something already exists at the target path; nothing is overwritten. References in the LaTeX (\input, \includegraphics) are not updated, so fix them with edit_file afterwards. Use it rather than writing a copy and deleting the original.

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

Input Schema

NameRequiredDescriptionDefault
toYesNew path, e.g. "figures/plot.png"; a different last part renames it
fromYesCurrent path of the file or folder, e.g. "plot.png"
projectNoProject name, id or Overleaf URL. May be omitted when exactly one project is pinned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.1.4
    • addedInput schema / properties / from / description
      Added value: +"Current path of the file or folder, e.g. \"plot.png\""
    • addedInput schema / properties / to / description
      Added value: +"New path, e.g. \"figures/plot.png\"; a different last part renames it"
  2. First observedv2.1.1

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: creates missing target folders, refuses to overwrite (fails when target exists), confines the operation to one project, and warns that LaTeX \input/\includegraphics references are not updated. These are exactly the side-effect and failure-mode details an agent needs before invoking a mutation.

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?

Four short sentences, front-loaded with the core action, then failure semantics, then the follow-up requirement, then the alternative-it-replaces. No filler and nothing buried.

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?

For a three-parameter tool with no output schema, the definition covers action, path semantics, non-destructive failure behavior, and the necessary post-move cleanup step. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already explains from, to (including the rename-by-different-last-part rule), and project. The description adds only the single-project constraint; baseline 3 applies when the schema carries the parameter meaning.

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 ("Moves and/or renames a file or folder inside one project") plus scope (single project). It is clearly distinguishable from write_file, delete_file, upload_file, and create_folder among the siblings because it names the move/rename operation explicitly.

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?

Explicitly says to use this rather than writing a copy and deleting the original, and directs the agent to follow up with edit_file for LaTeX references. It also states the failure condition (target exists). It stops short of naming a cross-project alternative, but the guidance covers the main decision point an agent faces.

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