Skip to main content
Glama

Rename a file or folder

rename_file
Destructive

Rename one file or folder in place. Renaming a large folder runs in the background: check it with get_operation.

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": {
      "fileId": "<fileId>",
      "name": "<name>"
    },
    "name": "rename_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe new name, with its extension
fileIdYesThe file id
conflictNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered. The description adds real value by disclosing that renaming a large folder is asynchronous and polled via get_operation, but it does not explain the destructive aspect (e.g. whether an existing name is overwritten), which is the one behavior an agent most needs here.

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?

Two short sentences, front-loaded with the core action and then the asynchronous caveat. Nothing is redundant and no sentence could be removed without losing information.

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?

Annotations carry the safety profile and there is no output schema to explain, and the async polling path is documented. What is missing for a destructive mutation is collision/overwrite semantics and the meaning of the conflict enum, leaving a meaningful gap for a 3-parameter write tool.

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

Parameters2/5

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

Schema coverage is 67%, and the undocumented parameter is conflict, whose fail/rename enum is left completely unexplained in both schema and description. The description also adds no meaning beyond the schema for name or fileId, so it fails to compensate for the coverage gap on the parameter that governs overwrite risk.

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?

"Rename one file or folder in place" gives a specific verb and resource, and the phrase "in place" distinguishes it from move_files without naming a sibling. Scope (single item) is explicit, so an agent can tell it is not a bulk operation.

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?

Usage is implied by the single-item scope, and the description helpfully routes to get_operation for large folders, which is genuine when-to-use guidance for a follow-up tool. However, it never states when to prefer this over alternatives such as move_files, nor what to do on name collisions.

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