Skip to main content
Glama

Undo a change

restore_snapshot
Destructive

Puts a flow back to one of its saved versions (a snapshot_id from get_flow or update_flow). The current version is saved first, so a restore can be undone too.

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": {
      "flow_id": "<flow_id>",
      "snapshot_id": "<snapshot_id>"
    },
    "name": "restore_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
flow_idYesA flow_id from list_flows.
snapshot_idYesA snapshot_id from get_flow or update_flow.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: the current version is saved before the restore, making the operation reversible and softening the apparent destructiveness. A small gap remains: it doesn't say the entire current flow definition is replaced, not a partial merge.

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?

Two tight sentences, with the primary action and its reversibility guarantee front-loaded. No filler and nothing important buried.

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?

An output schema exists and annotations cover safety, so the description doesn't need to explain returns. It supplies the undo-reversibility detail that matters most for a destructive operation. Missing only the scope of replacement and any permission prerequisites.

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 description coverage is 100% and both parameters document their own provenance (flow_id from list_flows, snapshot_id from get_flow or update_flow). The description only restates the snapshot_id source the schema already supplies, adding no new constraints or format meaning. 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?

States a specific verb and resource ("Puts a flow back to one of its saved versions") and disambiguates the key parameter by naming the sibling tools that produce snapshot_id (get_flow, update_flow). The agent can tell exactly what state transition this performs without opening a schema.

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?

Clear context for when to use it (reverting a flow to a saved version) plus provenance guidance for the snapshot_id argument. It stops short of explicit when-not-to guidance, e.g. pointing to update_flow for forward edits or clarifying what happens if the flow has diverged since the snapshot.

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