Skip to main content
Glama

Rollback snapshot

rollback_snapshot
Destructive

Restore a Cloud VPS to a disk snapshot, discarding all disk changes made after it. Use it to recover from risky changes; confirm data loss before running.

Instructions

Roll a Cloud VPS (KVM/VDS) service back to a disk snapshot. DESTRUCTIVE: disk state after the snapshot is lost. Confirm with the user before calling. Tip: take a snapshot before any risky or automated change — it's free for an initial window, so it's cheap insurance you can roll back to. DELETE the snapshot once the change succeeds and you no longer need it — after the free window it is billed per GB while kept (Cloud VPS snapshots do NOT auto-expire), so never leave snapshots lying around. Requires services:manage and a full-access API key.

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": {
      "orderNo": "<orderNo>",
      "snapname": "<snapname>"
    },
    "name": "rollback_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
snapnameYesSnapshot name from list_snapshots

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds concrete consequences: disk state after the snapshot is lost, user confirmation is required before calling, and a full-access API key plus services:manage are needed. It also discloses snapshot billing behavior and non-expiration, which is valuable operational context beyond the annotations.

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 warning and confirmation requirement are front-loaded, which is appropriate for a harmful operation. The later snapshot-cost and deletion tips are useful but somewhat tangential to invoking this specific rollback tool, making the description longer than strictly necessary.

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

Completeness5/5

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

For a two-parameter destructive operation with annotations covering the safety profile and no output schema, the description is complete enough. It covers consequences, confirmation, permissions, and related snapshot lifecycle costs, leaving no critical invocation gap.

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%, so the two parameters orderNo and snapname are fully documented in the schema with patterns and examples. The description only refers generically to a 'service' and 'disk snapshot' without adding syntax or format details, so it does not improve on the structured schema.

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 precise verb and resource: rolling a Cloud VPS (KVM/VDS) service back to a disk snapshot. The parenthetical platform scope distinguishes it from siblings like rollback_firecracker_snapshot and rollback_application. An agent can identify the operation without opening the 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?

Gives clear context: this is for rolling a Cloud VPS service back to a disk snapshot, requires confirmation, and needs services:manage plus a full-access API key. However, it does not explicitly name alternatives or state when not to use this tool versus sibling rollback tools.

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