Skip to main content
Glama

transaction

Apply a batch of file create/write/update/move/delete operations atomically. If any operation fails, all prior operations are reverted from backups.

Instructions

Apply a batch of file create/write/update/move/delete operations atomically. If any operation fails (and rollbackOnError is true, the default), all prior operations in the batch are reverted from on-disk backups. This is the one thing the agent's built-in per-file Edit cannot do.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationsYesOrdered list of file operations to execute as one atomic batch.
rollbackOnErrorNoWhen true (default), any failure rolls all completed ops in the batch back from backup.
Behavior4/5

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

Disclosures atomicity, rollback on failure, and default behavior of rollbackOnError. No annotations provided, so description carries full burden; it adequately informs about core behavior but does not mention success outcomes or side effects beyond rollback.

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?

Two concise sentences, front-loaded with the core purpose, followed by a key differentiator. No superfluous information.

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?

Given the tool's complexity (two parameters, one nested array) and no output schema, the description covers atomicity, rollback, and operation types adequately. Lacks explanation of return value or error handling details, but the core use case is clear.

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 documents parameters fully. The description adds minimal extra context (e.g., 'from on-disk backups') but does not significantly enhance understanding beyond 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?

Clearly states the verb 'apply', resource 'batch of file operations', and atomicity. Distinguishes from the agent's built-in Edit by noting this is something it cannot do, providing sibling differentiation.

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?

Explicitly contrasts with the agent's per-file Edit, implying when to use this tool (for atomic batch operations). Lacks explicit when-not-to-use or alternatives beyond that single comparison.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/proofmath-owner/ai-filesystem-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server