Skip to main content
Glama

scalix_computer_write_file

DestructiveIdempotent

Write a text file into a persistent Linux machine. Use this instead of shelling out with cat/echo — no quoting to get wrong.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMachine id
modeNoUnix mode in decimal, e.g. 493 for 0755. Omit unless the file must be executable.
pathYesAbsolute path inside the machine, e.g. /root/app/main.py
contentYesFile contents as text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this as destructive (destructiveHint: true) and idempotent (idempotentHint: true), so the safety profile is known. The description adds that it writes to a persistent Linux machine and only text files, but does not mention overwriting behavior or directory creation. Still, it does not contradict annotations.

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?

The description is two sentences, front-loading the core purpose and then giving a practical usage tip. Every word is useful with no fluff.

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 simple write tool with comprehensive schema and safety annotations, the description is sufficiently complete. It could mention that it overwrites existing files, but the destructive hint covers that. The 'persistent' context is valuable, and the sibling tools are well differentiated.

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

Parameters3/5

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

Schema description coverage is 100%, with clear parameter descriptions for id, path, content, and mode (including decimal example). The description itself adds no extra parameter meaning, but the schema does the heavy lifting, so baseline 3 is appropriate.

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 writes a text file to a persistent Linux machine, with a specific verb and resource. It distinguishes itself from sibling tools like scalix_computer_read_file and scalix_computer_exec by explicitly recommending it over shelling out with cat/echo.

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 clear usage context: use this to write text files without quoting issues, instead of shelling out. It names the alternative (cat/echo) but doesn't explicitly state exclusions such as binary files or when to use read_file, leaving a small gap.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.