Skip to main content
Glama

rename_files

Rename or move one or more files and folders within a server directory by specifying source and destination paths.

Instructions

Rename or move one or more files/folders within a server directory.

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": {
      "server_id": "<server_id>",
      "files": "<files>"
    },
    "name": "rename_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoBase directory path (default '/')
filesYesList of { from, to } paths relative to root
server_idYesShort server identifier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations only declare readOnlyHint=false, so the description carries the burden of disclosing what a mutating operation actually does. It never says whether an existing destination is overwritten, whether paths may escape the root directory, whether the batch is atomic on partial failure, or what permissions are required. 'Rename or move' also leaves the behavioral difference between those two operations unexplained.

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?

A single front-loaded sentence with no filler; every word does work. It is slightly under-specified rather than over-long, and the dual 'rename or move' phrasing could be structured to clarify that both operations share one call shape.

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?

Three parameters, full schema coverage and no output schema mean the structured data does most of the work, so the description only needs to cover risk and behavior. For a destructive batch mutation it is thin on overwrite behavior and failure handling, but it is not incoherent or misleading.

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 root, server_id and the files array are already documented, which sets the baseline at 3. The description adds only that targets are 'files/folders' inside 'a server directory', which loosely corroborates the root scoping. No extra detail on path format, overwrite semantics for 'to', or multi-entry behavior.

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 pair and resource: 'Rename or move one or more files/folders within a server directory.' This clearly separates it from server-level siblings like rename_server and from copy_file, though it never explicitly names an alternative. The batch aspect ('one or more') and the directory scoping are both useful and explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no prerequisites, and no exclusions. It doesn't say whether to prefer copy_file plus delete_files for cross-directory moves, nor when a rename within the same folder is preferable. The reader must infer all routing decisions from the name alone.

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