Skip to main content
Glama

Apply proposed changes

apply_changes

Writes an accepted change set to disk with backups and safety checks, refusing if files changed or have unsaved edits.

Instructions

Write a proposed change set to disk. Backs up every overwritten file to .snow_golem/backups/. Refuses if a file changed since the proposal or has unsaved edits. Call only after the user has seen and accepted the diff.

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": {
      "change_set_id": "<change_set_id>"
    },
    "name": "apply_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
change_set_idYes
open_in_snowstormNoopen the first particle file in Snowstorm afterwards (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations supply only destructiveHint=false, so the description carries most of the burden and does so well: it discloses the on-disk write, the backup location (.snow_golem/backups/), and two distinct refusal conditions (file changed since proposal, unsaved edits). This resolves the apparent tension of a disk-overwriting tool marked non-destructive by explaining that overwritten files are backed up.

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?

Three short sentences, front-loaded with the primary action, followed by side effects and then preconditions. No filler and no repetition of the title.

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 two-parameter disk-mutating tool with no output schema, the definition covers the action, side effects, failure modes, and the user-consent prerequisite. It omits what the call returns on success or partial failure, which is the main remaining gap.

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 coverage is 50%: open_in_snowstorm is documented in the schema itself, but change_set_id has no schema description. The description only implies that the change set is the proposed one being written, without saying how to obtain a valid change_set_id (e.g., from list_pending_changes). Baseline 3 applies.

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 states a specific verb and resource — 'Write a proposed change set to disk' — which unambiguously identifies the operation as committing a pending change set, and implicitly separates it from discard_changes/list_pending_changes by requiring an accepted diff.

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?

'Call only after the user has seen and accepted the diff' is an explicit usage precondition, and the refusal conditions further narrow when the tool is valid. It stops short of naming discard_changes as the alternative path when the diff is rejected, which keeps it below a 5.

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