Skip to main content
Glama

Restore Simulation Snapshot

restore_simulation_snapshot
DestructiveIdempotent

Put the simulation workspace this credential is connected to back exactly as a snapshot holds it, simulated clock included (governed two-step, destructive). Everything done since — rehearsed or imported — is replaced, and unfinished scenario runs are stopped. Never touches QuickBooks. Requires a credential granted the sandbox.reset capability. Call with preview=true first to see what it replaces and get a previewReceipt, confirm with the user, then repeat with the previewReceipt and a fresh idempotencyKey. Committing needs Spark's OAuth connector: in Sparki the preview works but the commit is refused, so restore from the simulated books page instead.

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": {
      "snapshotId": "<snapshotId>"
    },
    "name": "restore_simulation_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewNoStep 1 of the required two-step write: set true to receive what the restore replaces plus a single-use previewReceipt. Nothing changes until the commit.
snapshotIdYesThe snapshot's id, from list_simulation_snapshots (the baseline's id works too).
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2: the receipt returned by the preview call, with a fresh idempotencyKey.

Output Schema

NameRequiredDescriptionDefault
okNo
statusNo
messageNo
previewNo
restoredNo
snapshotNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
workspaceNameNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
clockPinnedAtUtcNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses what is destroyed (everything rehearsed or imported since, unfinished scenario runs stopped), an external-boundary guarantee (never touches QuickBooks), an auth prerequisite (sandbox.reset capability), and an environment-specific failure mode. The destructive nature is reinforced not just repeated.

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?

The destructive scope is front-loaded, followed by prerequisites and then the required call sequence, so the reader hits the highest-risk information first. It is dense but nearly every clause carries operational weight; the Sparki caveat is long though necessary.

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, return values need not be explained, and the description covers preconditions, side effects, the governed two-step flow, and the environment limitation. The only gap is no explicit contrast with reset_simulation_workspace for an agent choosing between the two reset paths.

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 100%, so all four parameters are already documented in the schema, establishing the baseline of 3. The description does add the sequencing relationship between preview, previewReceipt, and a fresh idempotencyKey, but it does not add format or constraint detail beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — restoring the simulation workspace to a snapshot, "simulated clock included" — which is concrete enough that an agent can distinguish it from create_simulation_snapshot or list_simulation_snapshots. It does not explicitly contrast with the closest sibling, reset_simulation_workspace, so full sibling differentiation is not achieved.

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?

Gives an explicit procedure (preview=true first, show the user, then re-call with previewReceipt and a fresh idempotencyKey) and an explicit when-not: in Sparki the commit is refused, so restore from the simulated books page instead. The alternative path is named with the condition that selects it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources