Skip to main content
Glama

rollback_snapshot

Destructive

Restores an agent to a previous publication snapshot, overwriting current configuration, schemas, triggers, and MCP servers. Inspect get_snapshot first before rolling back.

Instructions

Restore an agent from a previous publication snapshot, overwriting its current configuration, schemas, triggers and MCP servers. Inspect get_snapshot before restoring.

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_id": "<snapshot_id>"
    },
    "name": "rollback_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
snapshot_idYesUUID of the snapshot to restore

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.4
    • changedInput schema / properties / snapshot_id / description
      Previous value: -"UUID do snapshot para restaurar"New value: +"UUID of the snapshot to restore"
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds the crucial specifics of what is destroyed: configuration, schemas, triggers and MCP servers. It does not state whether the rollback itself can be undone or what permissions are required, which keeps it from a 5 given the destructive nature.

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 sentences, zero filler, with the destructive scope front-loaded and the prerequisite follow-up clearly separated. Every clause carries information the agent needs.

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 single-parameter destructive mutation with no output schema, the definition covers purpose, blast radius and a pre-check step. The remaining gap is reversibility and permission/authorization context, which matters for a destructive operation but is not strictly required to invoke it.

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?

The schema documents the single parameter at 100% coverage, but the description adds that the snapshot must be a prior publication snapshot, tightening what a valid snapshot_id means beyond 'UUID of the snapshot to restore'. With only one parameter there is little more to clarify.

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 names a specific verb ('Restore') and resource ('agent from a previous publication snapshot') and scopes it to a snapshot rather than a version, which separates it from rollback_version. It stops short of explicitly contrasting with that sibling, so a 4 rather than a 5.

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 gives an explicit prerequisite: inspect get_snapshot before restoring, which tells the agent to gather state first. It does not state when-not to use it or when rollback_version would be preferable, so there is no full alternative routing.

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