Skip to main content
Glama

Rename a doc, file or folder

rename_entity

Rename a document, file, or folder in place within its current project folder without moving it. Use it to fix names while keeping the entity's location unchanged.

Instructions

Renames the entity at path to new_name, keeping it in the same folder.

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>",
      "new_name": "<new_name>"
    },
    "name": "rename_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesCurrent project-relative path of the doc, file or folder.
new_nameYesNew name (not a path; use move_entity to change folders).
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

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It discloses that the operation is path-scoped and folder-preserving, but says nothing about permission requirements, name-collision behavior, reversibility, or how the stateful project_id affects where the write lands.

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?

A single front-loaded sentence with the verb, the two key inputs, and the scope constraint. No wasted words.

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 mutation tool with zero annotations and no output schema, the definition is accurate but thin: it omits failure modes such as duplicate names and does not restate the active-project precondition that governs writes. Adequate to call correctly, not adequate to predict behavior.

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 documents all three parameters including the project_id session caveat. The description's 'keeping it in the same folder' usefully reinforces that new_name is not a path, but adds little beyond the schema's own note.

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?

States a specific verb (renames) and resource (the entity at `path`), plus the scope constraint that it stays in the same folder. It is clearly distinguishable from move_entity in intent, though the explicit naming of that alternative lives only in the schema, not the description.

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?

The clause 'keeping it in the same folder' implicitly tells the agent this is not the tool for relocating files, but no sibling is named and there is no explicit when-not guidance. Usage is inferable rather than stated.

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