Skip to main content
Glama

Write file

write_file
Destructive

Writes, appends, and creates files: text, Excel workbooks from JSON, and DOCX from markdown-like text.

Instructions

Write or append text; create Excel workbooks from JSON arrays; create DOCX from markdown-like text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNorewrite
pathYes
contentYes
deviceIdNo
deviceNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, covering the safety profile, and the description's 'write or append' is consistent with them. The description adds useful format-conversion behavior (JSON arrays to Excel, markdown-like text to DOCX) that annotations cannot convey. It stops short of saying what happens to an existing file when overwriting, or what deviceId/deviceName control.

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

Conciseness4/5

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

A single front-loaded sentence with semicolon-separated clauses that wastes no words. It is dense but readable, and the primary text-writing purpose comes first. Slight cramming of three distinct behaviors into one line costs it the top mark.

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

Completeness2/5

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

For a 5-parameter, destructive mutation tool with no output schema and 0% schema coverage, this is thin: no overwrite/append semantics, no error or permission behavior, and no explanation of the device parameters. An agent would need to trial-and-error to invoke it correctly.

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 0%, so the description carries the full burden, yet it only obliquely covers mode ('write or append') and content (format hints). Path, deviceId, and deviceName are completely undocumented in both schema and description, leaving the agent guessing how to target a specific device.

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 names a concrete verb+resource (write/append text) and adds format-specific capabilities (Excel from JSON arrays, DOCX from markdown). It is clearly a file-writing tool. However, it never distinguishes itself from close siblings like fs_write_text, fs_write_chunk, or fs_write_many, which an agent must choose between.

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?

There is no guidance on when to use this tool versus the many other write tools in the sibling list, no mention of prerequisites (deviceId/deviceName), and no note on when append vs rewrite is appropriate. Usage must be entirely inferred from the name and enum.

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

Deploy Server

Other Tools