Skip to main content
Glama
grandMA2 MCP
by drohi-r

restore_programmer_state

Preview or apply a conservative grandMA2 programmer-state restore from a snapshot, running only supported telnet commands and reporting skipped fields.

Instructions

Preview or apply a conservative programmer-state restore (SAFE_WRITE).

This tool intentionally restores only fields that can be expressed
confidently through existing MA2 telnet commands. It does not attempt to
recreate exact fixture selections, parked-fixture state, or MAtricks.

Args:
    snapshot_json: JSON payload from snapshot_programmer_state().
    apply: If False (default), return the restore plan only.
    clear_before_restore: If True, begin with ClearAll when apply=True.

Returns:
    str: JSON with planned commands, executed commands, and skipped fields.

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": {
      "snapshot_json": "<snapshot_json>"
    },
    "name": "restore_programmer_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNo
snapshot_jsonYes
clear_before_restoreNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it flags the operation as SAFE_WRITE, discloses that apply defaults to False (preview-only), and warns that clear_before_restore triggers ClearAll before writing. It omits connection/permission prerequisites and how partial failures are reported, but the destructive path is clearly surfaced.

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?

A single front-loaded summary sentence followed by short scope and parameter notes, with no filler. The Args/Returns docstring formatting is slightly mechanical but each line carries distinct 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?

For a 3-parameter, no-annotation, mutating tool, the description covers the destructive branch, the default preview behavior, and the source of the required snapshot, which is what an agent needs to call it safely. The return-value note is redundant given the output schema, and prerequisites remain unstated.

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 description coverage is 0%, so the description must compensate, and it does: snapshot_json is identified as the payload from snapshot_programmer_state(), apply=False is described as plan-only, and clear_before_restore is tied to ClearAll. It does not describe snapshot format, validation, or failure on malformed JSON, so it stops short of a 5.

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 first line states a specific verb and resource ('Preview or apply a conservative programmer-state restore') and immediately qualifies it with SAFE_WRITE. The follow-up narrows the scope by naming what it deliberately does NOT recreate (exact fixture selections, parked-fixture state, MAtricks), which lets an agent distinguish it from broader state-hydration siblings.

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?

It makes the counterpart explicit by requiring a payload from snapshot_programmer_state() and clarifies that by default it only plans rather than applies, which is clear usage context. It does not, however, state when to prefer this over an alternative restore path (e.g. hydrate_console_state) beyond the scope exclusions.

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

Deploy Server

Other Tools