Skip to main content
Glama

Write project files

write_files
Destructive

Trial version, not for production, online for a limited time. Without a key, this first call creates the trial. A commit on the project's branch at while, without a terminal: each named file is replaced by its full content, those in delete are removed; deploy_app then deploys this commit. 2 MiB and 200 files per call.

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": {
      "files": "<files>"
    },
    "name": "write_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesPath → full text content of the file (it replaces the old one).
trialNoThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
deleteNoThe files or folders to delete.
messageNoThe commit message, in one sentence.
projectNoThe project.
languageNoTrial creation: your human's language. while's texts for them are in that language, to_say included. Without this parameter, your session's language, then English.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / language / description
      Previous value: -"Trial creation: your user's language (while's for them, their app's and their emails'); without it, your session's, then English."New value: +"Trial creation: your human's language. while's texts for them are in that language, to_say included. Without this parameter, your session's language, then English."
    • changedInput schema / properties / trial / description
      Previous value: -"The key returned by the first deploy_app (trial_key), passed again on each call."New value: +"The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false. The description goes beyond that by spelling out what is destroyed (files are wholly replaced by the supplied content, listed files or folders are removed), how the trial key is bootstrapped on the first keyless call, and the hard limits of 2 MiB and 200 files per call. Less clear is failure behavior or whether an existing trial key is mandatory after the first call-outside the schema's wording.

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?

It is compact, with no filler sentences, and leads with the trial disclaimer that gates first use. But the middle sentence is a run-on fragment that is genuinely hard to parse ('a commit on the project's branch at while, without a terminal'), and '2 MiB and 200 files per call' is a dangling fragment. Density here costs comprehension rather than saving space.

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 destructive six-parameter tool with no output schema, the description covers the essentials: replacement semantics, deletion, per-call limits, trial key handling, and the deploy_app hand-off. What is missing is error/rollback behavior and whether a commit is created when files is empty or only delete is supplied, but nothing critical to making a valid call is absent.

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%, so the schema already explains files, delete, message, project, trial and language; the baseline is 3. The description adds real value only for the size limits ('2 MiB and 200 files per call'), which constrain files and delete but are not stated in the schema. It adds nothing further about trial/language semantics beyond what the schema documents.

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 states a concrete verb-and-resource: each named file is replaced by its full content and entries in delete are removed, producing a commit on the project's branch. It also distinguishes itself from deploy_app ('deploy_app then deploys this commit'), so an agent can tell the write step from the deploy step. Clarity is dented by garbled phrasing ('a commit on the project's branch at while, without a terminal').

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?

It implies the workflow: call this to write/remove files, then call deploy_app to deploy the resulting commit. It also explains trial mechanics (no key → this call creates the trial). However, there is no explicit when-not guidance relative to alternatives such as read_source or create_project, and the ordering guidance is only implied by the word 'then'.

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.

Resources