Skip to main content
Glama
mehrdad03

LocalDev MCP

by mehrdad03

Rename or move one project file

rename_file
Destructive

Rename or move a file within a defined project by verifying its SHA-256 hash. Overwriting an existing file is not allowed, ensuring safe file operations.

Instructions

Moves a file inside the same configured project. Source hash is required and destination overwrite is refused.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
projectYesProject key from list_projects.
destinationYes
createParentsNo
expectedSha256Yes
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description adds that destination overwrite is refused, which is a behavioral constraint. However, it does not disclose other potential side effects, permission requirements, or what happens to the source file after the move. The added context is moderate.

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 extremely concise: two sentences with no filler. The first sentence immediately states the primary action, and the second adds key constraints. Every word earns its place, and it is well front-loaded.

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?

Given the tool has 5 parameters (4 required) and no output schema, the description provides only minimal context. It explains the scope ('inside the same configured project') but omits details about path formats, return values, or error behavior. The annotations cover safety but not completeness. The description is adequate but leaves room for ambiguity.

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 description coverage is only 20%, with only the 'project' parameter documented. The description mentions 'source hash' (likely referring to expectedSha256) and implies that destination overwrite is refused, which adds some meaning. However, it does not explain the format or meaning of source, destination, or createParents parameters, leaving significant gaps.

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 clearly states the action ('moves a file') and the resource ('inside the same configured project'). The title includes 'rename or move', which clarifies the purpose. However, it does not explicitly differentiate from sibling tools like import_file_to_project or write_file, which might also move or create files.

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 mentions specific constraints ('source hash is required' and 'destination overwrite is refused') but provides no guidance on when to use this tool versus alternatives. It does not state any prerequisites, context, or warnings about not using it in certain scenarios.

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/mehrdad03/localdev-mcp'

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