Skip to main content
Glama
mehrdad03

LocalDev MCP

by mehrdad03

Create or replace a project file

write_file
Idempotent

Write a complete file replacement to a project. Use with existing files by providing the expected SHA-256 from read_file to ensure safe overwrites.

Instructions

Use only when a complete file replacement is appropriate. Existing files require expectedSha256 from read_file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes
projectYesProject key from list_projects.
createParentsNo
expectedSha256No
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the description adds only the prerequisite context. It does not disclose behavior on missing parent directories or conflict handling, but with annotations covering safety, the bar is lower.

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 sentences with no unnecessary words. The usage context is front-loaded, and every sentence adds value. Ideal conciseness.

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?

The description covers core usage and prerequisites but lacks details on createParents, content constraints, return value, and error states. With 5 parameters and no output schema, more contextual information is needed for full completeness.

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% (project described). The description only adds semantics for expectedSha256, but does not explain path, content, createParents, or the format of expectedSha256. Low coverage forces description to compensate, but it only partially does so.

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 replaces files completely and mentions the prerequisite expectedSha256 from read_file. It distinguishes itself from siblings like create_file, apply_patch, and replace_text by specifying when a complete replacement is appropriate.

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 explicit guidance on when to use it (complete replacement) and the prerequisite of expectedSha256 for existing files. It could be improved by explicitly mentioning alternatives like apply_patch for partial updates, but the context is clear enough.

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