Skip to main content
Glama
Anki MCP Server

Anki MCP Server

by stefanwille

Delete Cards

delete_cards

Deletes one or more Anki cards by note ID, letting AI assistants remove unwanted flashcards from a deck.

Instructions

Delete one or more cards from Anki by their note IDs

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": {
      "note_ids": "<note_ids>"
    },
    "name": "delete_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
note_idsYes

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.3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden for a destructive operation, yet it says nothing about irreversibility, whether cards go to a trash/undo buffer, required permissions, or what happens if an ID is invalid. The only behavioral hint is the note-ID-to-card mapping, which is too thin for a delete tool with zero annotation coverage.

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?

A single front-loaded sentence with no wasted words. The brevity is efficient but edges into under-specification for a destructive tool, so it is not a perfect score.

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 a destructive, single-parameter tool with no annotations and no output schema, the definition should disclose permanence, failure modes, and the note-to-card relationship. None of that is present, leaving the agent unable to predict consequences before invoking it.

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 compensate; it does partly by clarifying that the values are note IDs (not card IDs) and that multiple entries are allowed. It adds no detail on ID format, expected ranges, duplicate handling, or behavior when a note has multiple cards.

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 ... cards") plus the scoping qualifier "from Anki by their note IDs", which lets an agent separate it from sibling mutations like delete_deck or update_card. It stops short of naming which sibling handles the adjacent case (deleting decks/notes).

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?

The phrase "by their note IDs" implicitly tells the agent what input is required and implies this is the bulk-delete path ("one or more"), distinguishing it from single-card edits. However, it gives no explicit when-not-to-use guidance and never warns that deletion is permanent or that removing a note's cards may affect the parent note.

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