Skip to main content
Glama
Yoto Cards MCP
by haimrait

Restore a card from a backup

restore_card

Restore a Yoto card to an earlier backup, including tracks, icons, cover, and details. The current version is backed up first, so the change can be undone.

Instructions

Put a card back the way it was in a backup from list_backups (tracks, icons, cover, details). The current version is backed up first, so this can be undone too. A card that was deleted comes back as a new card with a new ID. Asks the parent to confirm.

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": {
      "card_id": "<card_id>",
      "backup_id": "<backup_id>"
    },
    "name": "restore_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_idYesThe card ID from list_cards (5 characters, e.g. "a1B2c").
confirmNoOnly set true after the parent explicitly agreed in this conversation.
backup_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations it discloses three behavioral facts the agent cannot infer: the current version is snapshotted first so the restore is self-undoable, a deleted card returns as a new card with a new ID, and a confirmation step is required. These are substantive operational consequences rather than restatements of readOnlyHint/destructiveHint.

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?

Four short sentences, front-loaded with the core action, then consequences, then the confirmation rule. No preamble or redundant restatement of the title.

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 mutating tool with no output schema and existing annotations, the description covers reversibility, identity changes on deleted cards, and the consent requirement. It does not say what happens on failure (e.g., stale or mismatched backup_id), which is the only notable gap.

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?

Schema coverage is 67%: card_id and confirm are documented in the schema, while backup_id has no schema description. The description compensates by tying the backup to list_backups, so the agent knows where to source that id; it adds no format detail for the remaining parameters, which is fine given what the schema already provides.

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?

States a specific verb and resource (put a card back from a backup) and enumerates the restored fields (tracks, icons, cover, details), which clearly separates it from partial-edit tools like update_card_details. It stops short of naming any sibling as an alternative, so it is clear but not maximally differentiating.

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 the workflow prerequisite (backup_id comes from list_backups) and a hard usage rule (ask the parent to confirm), which is exactly the kind of gating an agent needs. It does not state when to prefer update_card_details or another restore target instead, so exclusions are absent.

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