Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

Write File

fc_write_file
Destructive

Writes content to a file, creates missing files and directories, and can append instead of overwriting. Use it to save or update file data with explicit overwrite behavior.

Instructions

Writes content to a file. Creates the file if it does not exist.

Args:

  • path (string): Full path to the file

  • content (string): Content to write

  • append (boolean, optional): Append to file instead of overwriting

  • create_dirs (boolean, optional): Create missing directories

Returns:

  • Confirmation with file size

Warning: Overwrites existing files without warning when append=false!

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": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "fc_write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFull path to the file
appendNoAppend to file
contentYesContent to write
create_dirsNoCreate missing directories

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.11.5
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv1.9.3
  3. Removedv1.9.3
  4. First observedv1.7.8

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is covered; the description still adds real value with the explicit "overwrites existing files without warning when append=false" warning, the create-if-missing behavior, and the "confirmation with file size" return note. It does not mention encoding, permission errors, or limits, and notably omits that create_dirs defaults to true (it reads as opt-in).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The Args block restates four parameters that the schema already documents at 100% coverage, which is padding for a structured-consumer agent. The most important sentence, the destructive overwrite warning, is placed last rather than front-loaded.

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 four-parameter mutation tool with no output schema, the definition covers creation behavior, overwrite risk, and the shape of the return value. Remaining gaps (error behavior, encoding assumptions) are modest and partly mitigated by annotations declaring destructiveness.

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

Parameters4/5

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

Schema coverage is 100%, setting a baseline of 3, and the description earns above baseline by clarifying append as "append instead of overwriting" where the schema only says "Append to file". The create_dirs line adds no default value, so it neither helps nor hurts.

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 and resource ("Writes content to a file") plus the create-if-missing behavior, which is exactly the semantic an agent needs to distinguish this from fc_edit_file or fc_str_replace. It stops short of naming those siblings explicitly, so the differentiation is inferable rather than stated.

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

Usage Guidelines3/5

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

Usage is implied by the append parameter and the overwrite warning, but the description never says to prefer fc_edit_file/fc_str_replace for partial edits or fc_create_directory for directory-only creation. With ~50 siblings including three close alternatives, the routing guidance is left to the agent to infer.

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