Skip to main content
Glama

Write files, checked and reviewed

write_files

Send a change: whole files to write (path and full content) and files to delete. SPOE checks it (for an app: its migrations on a fresh Postgres and its API routes) and a second AI from another model family reviews it. On a project that applies changes on its own (the default) a change the review passes goes in as a version the owner can undo; one with a high or critical finding, or over a file the owner edited since, waits for the owner in the studio. Costs only the review's credits (estimated now, charged when it finishes, never if it fails). Then call change_status: fix what the findings say and send the files again.

Input Schema

NameRequiredDescriptionDefault
filesYesUp to 200 files, 3 MB of text in all. Each is { path, content } to write the whole file, or { path, delete: true }.
summaryYesWhat this change does, in a sentence or two. The reviewer reads it beside the files.
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: automated check plus a second-model review, auto-apply default with an undoable version, and a queue path for high/critical findings or files the owner edited. It also discloses the credit model (estimated up front, charged on completion, free on failure). The 'delete' capability alongside destructiveHint=false is defensible because changes are framed as undoable versions, but the tension is left for the agent to resolve rather than stated outright.

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?

Front-loaded with the action and the payload shape, then the review/apply behavior, then the cost note and next step – a sensible order with little waste. It is dense with parentheticals and uses the undefined acronym 'SPOE', which costs some readability.

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 mutation tool with no output schema, it covers the review pipeline, auto-apply vs. queued outcomes, cost, and the next step. The notable gap is the immediate return value – it tells the agent to call change_status but not what handle or status write_files hands back.

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?

With 67% schema coverage the schema already documents the file list shape, the whole-file content rule, and the review-facing summary. The description reinforces the whole-file semantics but says nothing about project_id and does not explain what identifying value (if any) comes back to feed change_status. Marginal value over the schema.

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?

States a specific verb and resource up front: send a change consisting of whole files to write (path + full content) and files to delete. It is clearly distinguishable from read_file/list_files and explicitly hands the follow-up to change_status, so an agent can place it in the toolset without opening a schema.

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?

Gives a concrete workflow: send the change, then call change_status, fix findings, and send files again. It also explains the two outcomes (auto-applied as an undoable version vs. queued for the owner), which tells the agent when a call is enough and when a re-send is needed. It stops short of explicit exclusions against sibling tools.

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