Skip to main content
Glama
Anki MCP Server

Anki MCP Server

by stefanwille

Delete Deck

delete_deck

Delete an Anki deck with its nested decks and all contained cards. Use it to remove unwanted flashcard collections managed through AnkiConnect.

Instructions

Delete deck, nested decks, and all their cards.

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": {
      "deck_name": "<deck_name>"
    },
    "name": "delete_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
deck_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.2
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv2.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the critical cascade behavior: nested decks and all their cards are destroyed. It says nothing about irreversibility, confirmation requirements, permissions, or what happens if the deck name doesn't exist — material gaps for 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?

One front-loaded sentence with zero filler; the destructive scope is stated immediately rather than buried.

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

Completeness2/5

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

For an irreversible cascade delete with no annotations and no output schema, the description should cover how the target deck is identified and what the caller gets back or what error occurs. Those gaps, plus the absence of any safety context, leave the definition thin relative to the operation's risk.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single required parameter has no type-level documentation beyond 'string'. The description adds no meaning about whether deck_name is a display name or identifier, how matching works, or whether it must be unique.

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 ('Delete deck') and adds the blast radius ('nested decks, and all their cards'), which separates it from delete_cards in the sibling list. It stops short of naming the sibling or clarifying name-vs-id targeting.

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

Usage Guidelines2/5

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

No guidance on when to use this instead of delete_cards (removing cards without removing the deck) or how it relates to rename_deck/create_deck. The agent must infer selection from the tool names alone.

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