Skip to main content
Glama
shanmukhdatta

workspace-mcp

rename_file

Rename a file without moving it by specifying the current path and new filename.

Instructions

Rename a file in place (keeping it in the same directory).

Args: path: Current path, relative to the workspace root. new_name: New filename (not a full path) -- e.g. "app.py". overwrite: If True, replace an existing file with that name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
new_nameYes
overwriteNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the overwrite parameter's effect ('If True, replace an existing file with that name') and clarifies that the operation keeps the file in the same directory. However, it does not mention what happens when overwrite is False and the target already exists, nor does it describe error conditions, leaving some behavioral ambiguity.

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?

The description is concise and front-loaded: one sentence states the purpose, followed by a clean Args block. There is no redundant or filler text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple file-operation tool, the description covers the key aspects: what it does, the same-directory constraint, and parameter semantics. The output schema exists, so return values are presumably covered there. Minor gaps like failure behavior when the target exists without overwrite or nonexistent source paths prevent a perfect score, but it is largely complete.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description must fully document parameters. It does so thoroughly: path is 'relative to the workspace root,' new_name is 'New filename (not a full path) -- e.g. "app.py",' and overwrite is explained with its consequence. This adds significant meaning beyond the raw schema types.

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?

The description clearly states the tool's purpose: 'Rename a file in place (keeping it in the same directory).' This uses a specific verb and resource, and the parenthetical explicitly distinguishes it from moving files, which differentiates it from the sibling move_file tool.

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?

The description provides clear context that this tool is for same-directory renames only, saying 'in place (keeping it in the same directory).' It does not explicitly name an alternative like move_file, but the context implies that cross-directory operations should use a different tool. This is a clear context without explicit exclusions, rating a 4 rather than a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shanmukhdatta/workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server