Skip to main content
Glama

load_snapshot

Restore a compatible saved snapshot directory into the active session to skip re-elaboration; optionally rebuild the warm intent layer from saved inputs.

Instructions

Load a compatible save_snapshot directory into the active session in seconds instead of re-elaborating. Use load_systemverilog/load_verilog/load_vhdl when no compatible snapshot exists. The directory must match this najaeda version. intent=True also re-elaborates the warm intent layer from the flist saved in the snapshot (for get_intent).

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": "load_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentNoAlso rebuild the warm intent layer from saved elaboration inputs.
directoryYesLocal directory previously created by save_snapshot.

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": "load_snapshotOutput",
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv0.1.9
    • addedInput schema / properties / directory / description
      Added value: +"Local directory previously created by save_snapshot."
    • addedInput schema / properties / intent / description
      Added value: +"Also rebuild the warm intent layer from saved elaboration inputs."
  3. First observedv0.1.8

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare mutating, non-idempotent, non-destructive behavior, and the description adds the version-compatibility requirement and the cost tradeoff (fast load vs. re-elaboration). It stops short of saying what happens to the currently active session contents when a snapshot is loaded.

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?

Dense and front-loaded — purpose, alternative, precondition, then the parameter nuance. Only minor friction from the line-wrapped 'in seconds' phrasing and the parenthetical '(for get_intent)'.

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?

With an output schema present and 100% schema coverage, the description only needs to cover invocation semantics, and it does: fallback tools, version matching, and the intent flag's effect. The one gap is that it never says whether loading replaces or merges with existing session state.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are documented structurally; the description still adds value by tying intent=True to a concrete downstream effect (rebuilding the warm intent layer from the saved flist for get_intent).

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 ('Load a compatible save_snapshot directory into the active session') plus the benefit ('in seconds instead of re-elaborating'), which immediately separates it from the elaboration siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the fallback path: use load_systemverilog/load_verilog/load_vhdl when no compatible snapshot exists, and states the precondition that the directory must match this najaeda version.

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