Skip to main content
Glama

write_file

Write content to a file on the ARTEX host, overwriting existing files with Base64-safe transfer for reliable text or encoded data delivery.

Instructions

Write content to a file on the ARTEX host (overwrites). Base64-safe transfer.

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": "write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
contentYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose two important traits: the write overwrites existing content, and it handles encoded payloads safely. It omits whether parent directories are created, permission requirements, path constraints, and error behavior on failure, which are material for a destructive write.

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?

Two short clauses with the destructive detail '(overwrites)' parenthetically attached to the verb it qualifies, so it is front-loaded and zero padding. 'Base64-safe transfer' is compact but cryptic enough to cost it a point.

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?

An output schema exists, so return values need not be explained, but for a two-parameter write tool with zero annotation and zero schema-description coverage, the description leaves path semantics, side effects, and failure modes undocumented. It is not enough for an agent to call this confidently on first attempt.

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 must supply meaning for both path and content and it largely does not. 'Base64-safe transfer' vaguely hints that content can carry binary/encoded data, but nothing says whether path must be absolute, whether the file is created if absent, or what form the content takes.

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 (write content to a file) plus the target scope (the ARTEX host), which is enough for an agent to distinguish it from read_file. It stops short of naming an alternative explicitly, so it lands at clear-but-not-differentiated.

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 rather than stated: 'on the ARTEX host' signals this is a host-filesystem write rather than a sandbox or task operation. There is no when-to-use versus when-not guidance, and no mention of prerequisites such as the parent directory existing or write permissions.

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