Skip to main content
Glama

layerfs_fs_apply

Destructive

Apply ordered write/edit/mkdir/rm/cp/mv changes to a branch atomically as one checkpoint, with base64 binary writes and detail.index preserved on refusal.

Instructions

Apply ordered write/edit/mkdir/rm/cp/mv changes atomically as one checkpoint. Refusals retain detail.index. Binary writes use encoding=base64.

Input Schema

NameRequiredDescriptionDefault
branchYes
changesYes
messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructive, non-idempotent, open-world, so safety is covered; the description adds two things annotations cannot: all changes land atomically as a single checkpoint, and refusals expose detail.index so the caller can identify the failing change. It stops short of saying whether refusals roll back entirely or what a success response contains.

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 dense sentences, front-loaded with the core verb and atomicity guarantee, followed by the failure-signal and encoding caveats. No filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter destructive batch tool with no output schema, the essentials are partially covered: atomicity and refusal shape are given, but return value, rollback behavior on refusal, and edit-application semantics are missing. Adequate to attempt a call, not to predict its effects.

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 carry parameter meaning and largely does not. It names the six ops (mapping to the op const values) and clarifies encoding=base64 for binary content, but says nothing about branch requirements, message, edit's oldText/newText replacement semantics, or relative vs absolute path rules.

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+resource with scope: 'Apply ordered write/edit/mkdir/rm/cp/mv changes atomically as one checkpoint'. This clearly distinguishes it from the single-operation siblings (layerfs_fs_write, layerfs_fs_edit, layerfs_fs_rm), which apply one change each.

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?

The batching/atomicity framing implies when to prefer this over individual fs_* calls, but no explicit when-to-use or when-not, and no mention of how it relates to layerfs_workspace_commit or the single-op tools. The agent must infer the routing itself.

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