Skip to main content
Glama

restore_backup

Destructive

Restore a backup into a Discord server — rebuilds channels, categories, roles, and permissions (and messages/bans if the backup included them). This does not automatically restore members' assigned roles unless the bot's role is above the roles being assigned and members are still in the server; VaultCord restores the role objects themselves regardless. Requires confirm:true, otherwise returns a dry-run notice.

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": {
      "server": "<server>",
      "backup_key": "<backup_key>"
    },
    "name": "restore_backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagsNoBitmask controlling what to restore (messages/emojis/bans); omit to use the backup's own contents
serverYesServer name or id to restore INTO (see list_servers)
confirmNo
backup_keyYesThe backup's key/id (from list_backups)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the destructiveHint/idempotentHint annotations, the description discloses the scope of mutation (channel/category/role/permission rebuild), the conditional data (messages/bans only if present in the backup), and a non-obvious limitation about member role assignment depending on bot role hierarchy and member presence. The dry-run gate for missing confirm is meaningful operational context that annotations alone do not convey.

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 core action and scope are front-loaded in the first sentence, with caveats and the confirm requirement following in logical order. The middle sentence is long and clause-heavy, but every clause carries distinct information about restore behavior, so little is wasted.

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 destructive, non-idempotent mutation with no output schema, the description covers what changes, what may be conditionally included, the role-assignment limitation, and the confirm gate. It does not address reversibility of an overwrite, required permissions, or expected duration, which are the remaining gaps for a tool that destroys existing server structure.

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?

With 75% schema coverage the baseline is a 3, and the description earns above that by explaining confirm's semantics — it is not merely a flag but the gate between a real restore and a dry-run notice, which the schema states only as 'default: false'. The flags parameter is left to the schema's bitmask text, so coverage of all four params is not fully extended.

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 opens with a specific verb and resource ('Restore a backup into a Discord server') and enumerates exactly what is rebuilt — channels, categories, roles, permissions, and conditionally messages/bans. It is clear what the tool does, but it never distinguishes itself from the close sibling 'restore_server', leaving the agent to infer the boundary from names alone.

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 establishes a clear usage precondition — 'Requires confirm:true, otherwise returns a dry-run notice' — which tells the agent exactly how to invoke safely before committing. What is absent is when-not-to-use guidance and an explicit alternative (e.g., restore_server) for adjacent needs.

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.