Skip to main content
Glama
S-CurveLabs

letin

Official
by S-CurveLabs

restore_snapshot

Restore Power Query queries to a previous snapshot, either selectively for specified queries or the entire query set, removing changes made since. Use dry-run to preview before applying.

Instructions

Roll back to a snapshot. With queries, only those are restored; otherwise the whole query set is put back (queries created since are deleted). 'latest' undoes the most recent write.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
dry_runNo
queriesNo
snapshot_idNolatest

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses destructive behavior: 'queries created since are deleted' and explains the 'latest' default behavior. This is meaningful behavioral context beyond the schema. It could add more about reversibility or side effects, but the core destructive nature is disclosed.

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 description is compact and front-loaded with the main action. The parenthetical about `queries` and the 'latest' note are useful and placed efficiently. It earns its place without excessive detail.

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

Completeness3/5

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

The tool has 4 parameters, no output schema, and no annotations. The description covers the core behavior and two parameters, but leaves `source` and `dry_run` unexplained. For a destructive operation, the missing `dry_run` semantics and the required `source` parameter are notable gaps.

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 0%, so the description must compensate. It explains `queries` (partial restore) and `snapshot_id` ('latest' undoes the most recent write), but does not explain `source` or `dry_run`. The description adds value for two of four parameters, but leaves the required `source` and the safety-relevant `dry_run` undocumented.

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?

The description clearly states the action ('Roll back to a snapshot') and the resource (snapshot/query set), and distinguishes the partial vs full restore behavior. It doesn't explicitly name sibling tools like list_snapshots or copy_queries, but the verb 'restore' plus the rollback semantics make the purpose clear.

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?

The description explains when to use the tool: to roll back to a snapshot, with a conditional for partial restore via `queries` vs full restore. It doesn't explicitly state when not to use it or name alternatives, but the context is clear enough for an agent to select it over list_snapshots or copy_queries.

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