Skip to main content
Glama

Delete unused deck preset

delete-deck-preset
DestructiveIdempotent

Preview deletion of one unused, non-Default deck preset, then confirm its impact hash to delete it; decks are not reassigned automatically.

Instructions

Previews deletion of one unused, non-Default deck preset. Never reassigns decks automatically. Requires an impact hash and explicit confirmation. 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": {
      "presetId": "<presetId>"
    },
    "name": "delete-deck-preset"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNo
presetIdYes
confirmDeletionNo
expectedImpactHashNo

Output Schema

NameRequiredDescriptionDefault
dryRunYes
appliedYes
blockersYes
presetIdYes
verifiedYes
warningsYes
impactHashYes
presetNameYes
affectedDecksYes
affectedDeckCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds genuinely new behavior: decks are never reassigned automatically, an impact hash and explicit confirmation are gating requirements, and AnkiConnect v1 is required. That is exactly the safety context an agent needs before invoking a destructive tool.

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 terse sentences, each adding distinct information, with the core purpose and the safety gating front-loaded. No redundant restatement of the name or 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?

An output schema exists, so return values need not be explained, and the description covers preconditions and safety gating well. It leaves a gap on the preview-to-confirm workflow, i.e., how an agent obtains expectedImpactHash before calling again to delete.

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 0%, so the description must carry parameter meaning. It conveys the concepts behind three of four parameters (dry-run preview, the impact hash, explicit confirmation) but never names them or explains how to obtain a valid 64-hex impact hash, and presetId's constraint (positive integer identifying an unused non-Default preset) is only loosely implied.

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 ('Previews deletion of one unused, non-Default deck preset'), and the qualifiers 'unused' and 'non-Default' separate it from generic deck deletion siblings such as delete-deck-and-cards or delete-deck-preset variants. The framing as 'previews' slightly understates that the tool can actually delete once confirmation is supplied, which keeps it from 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?

Gives a clear precondition for use: the preset must be unused and non-Default. It does not name alternatives (e.g., use delete-unused-note-type or delete-unused-tags for other unused resources, or list-deck-presets to find candidates), so the routing is implied rather than explicit.

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