Skip to main content
Glama

save_snapshot

DestructiveIdempotent

Writes the active design and source metadata to a local directory so you can reload it quickly; load_snapshot reads the saved files.

Instructions

Write the active design and source metadata to a local directory for fast reload. Use after loading a design; load_snapshot reads the result. Existing snapshot files in the directory may be overwritten. Snapshots are tied to their producing najaeda version, and returns include the saved path.

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": {
      "directory": "<directory>"
    },
    "name": "save_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYesLocal destination directory for naja-if and metadata files.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.25
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "save_snapshotOutput",
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.9
    • addedInput schema / properties / directory / description
      Added value: +"Local destination directory for naja-if and metadata files."
  3. First observedv0.1.8

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it warns that existing snapshot files in the directory may be overwritten (consistent with destructiveHint=true), notes that snapshots are tied to the producing najaeda version (a real compatibility caveat not expressed anywhere in the structured fields), and says the result includes the saved path. That is exactly the kind of extra context annotations cannot carry.

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?

Four short sentences, front-loaded with the action and destination, then the usage pointer, the overwrite warning, and the version caveat. Every sentence carries distinct information with no padding.

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

Completeness5/5

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

A single-parameter write tool with an output schema, so return-value documentation is not needed, yet it still mentions the saved path being returned. The destructive overwrite behavior and version coupling are both disclosed, leaving nothing an agent needs before invoking it.

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?

The schema fully documents the single 'directory' parameter (100% coverage) as the local destination for naja-if and metadata files. The description adds no format, permission, or path-resolution detail beyond that, so the schema does the work and the baseline of 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?

States a specific verb ('Write') and resource ('the active design and source metadata') plus the destination ('a local directory') and the motivation ('for fast reload'). It also makes the complementary nature to load_snapshot explicit, so an agent can distinguish the two without inspecting schemas.

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 clear precondition ('Use after loading a design') and names the counterpart tool ('load_snapshot reads the result'), which tells the agent which of the pair to call. There is no explicit statement of when not to use it or of other alternatives, so it stops short of a 5.

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