Skip to main content
Glama

Rename or move a deck

rename-deck
DestructiveIdempotent

Previews and applies a native Anki deck rename or move under an existing parent, preserving identity and requiring impact hash plus explicit confirmation.

Instructions

Previews a native Anki deck rename or move under an existing parent. Preserves deck and card identity, reviews descendant paths, and requires the impact hash and explicit confirmation before applying. Requires AnkiConnect v1.

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": {
      "name": "<name>",
      "newName": "<newName>"
    },
    "name": "rename-deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact current full deck path
dryRunNo
newNameYesNew full path; the destination parent must already exist
confirmRenameNo
expectedImpactHashNoImpact hash from the reviewed rename preview

Output Schema

NameRequiredDescriptionDefault
deckIdYes
dryRunYes
appliedYes
changesYes
blockersYes
verifiedYes
warningsYes
impactHashYes
changeCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructive=true, readOnly=false and idempotent=true, and the description adds genuine context on top: the operation previews first, preserves deck and card identity, reviews descendant paths, and refuses to apply without the impact hash plus explicit confirmation. It does not cover conflict behavior if the destination path already exists, which keeps it short of a 5.

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?

Three tight sentences with the preview-and-confirm safety model front-loaded, followed by constraints. No filler, though the parent-existence requirement is repeated from the schema.

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 destructive, idempotent mutation tool with an output schema, the description covers the safe-call protocol (preview, hash, confirm), identity preservation, and the AnkiConnect v1 prerequisite. Return values need not be explained since an output schema exists.

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 60%, so most parameter meaning is already documented, including the exact-path semantics and the impact hash's origin. The description reinforces the expectedImpactHash/confirmRename gating and the existing-parent constraint on newName but adds little syntax or validation detail beyond the schema.

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+resource pair: renaming or moving a native Anki deck, with the scope constraint that the destination parent must already exist. It is clear what the tool does, though it does not explicitly distinguish itself from the sibling move-cards-to-deck.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies a two-phase workflow (review a preview, then apply with the impact hash and confirmation) and that AnkiConnect v1 is required. It does not state when to use this tool instead of move-cards-to-deck or create-deck, nor does it spell out when-not to use it.

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