Skip to main content
Glama

Move a doc, file or folder

move_entity

Relocates a project file, folder, or document into an existing destination folder or the project root. Use it to reorganize an Overleaf project without breaking references.

Instructions

Moves the entity at path into the folder to_folder ('' for the project root). The folder must exist.

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": {
      "path": "<path>",
      "to_folder": "<to_folder>"
    },
    "name": "move_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesProject-relative path of the doc, file or folder to move.
to_folderYesDestination folder path; '' for the project root.
project_idNoOverleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses exactly one trait beyond the schema (destination folder must pre-exist) and says nothing about overwrite/name-collision behavior at the destination, permission requirements, or what a move does to an already-open doc. The only rich write semantics in this tool (project scoping, session behavior) live in the schema's project_id text, not the description.

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?

Two tight sentences, well front-loaded, with the destination semantics up front and the precondition last. Every clause carries content, though the root-path parenthetical duplicates the schema.

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?

For a 3-parameter mutation with full schema coverage and no output schema, the essentials (source, destination, precondition) are present. It is only minimally adequate because nothing is said about failure modes such as a name collision in the target folder or an invalid destination path.

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 `path`, `to_folder` and `project_id`. The description's '' for project root restates what the to_folder schema field already says, adding no new meaning; baseline 3 applies.

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?

The description states a specific verb ('Moves') and resource ('the entity at `path`'), plus the destination ('folder `to_folder`'), which clearly separates it from rename_entity, delete_entity and create_folder siblings. It stops short of explicitly naming an alternative tool, so it lands just below 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 Guidelines3/5

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

A real precondition is given ('The folder must exist'), which tells the agent when the call would fail. Usage is otherwise implied: there is no statement of when to choose this over rename_entity or create_folder, and no mention that the move target must already be a folder rather than a file.

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