Write file
write_fileWrite/overwrite a file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| project_id | No | Project id (or use session from use_project) |
write_fileWrite/overwrite a file
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| project_id | No | Project id (or use session from use_project) |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutation risk is documented. The word "overwrite" adds a small amount of value by confirming that existing content is clobbered, but nothing is said about parent-directory creation, encoding, or failure behavior on missing paths.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single short phrase, front-loaded with the core verb and zero filler. It is terse rather than bloated; the problem is under-specification, not verbosity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a two-required-param file writer with annotations covering safety and no output schema, the description is marginally adequate but leaves out key operational facts: whether directories are auto-created, whether content is UTF-8 text vs base64, and how project_id interacts with the path.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is only 33%: path and content have no descriptions in either the schema or the description. The description supplies no format, path-resolution, or content-encoding hints, so it fails to compensate for the coverage gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
"Write/overwrite a file" names a specific verb and resource, so the basic operation is clear. But it does nothing to separate itself from nearby siblings like edit_file, upload_file, or create_path, which an agent could easily confuse with this tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no statement of when to use this versus edit_file (partial modification) or upload_file (binary/asset upload), nor any prerequisite or exclusion. The agent must infer the choice purely from the tool names.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.