Skip to main content
Glama

Delete note type template

delete-note-type-template
DestructiveIdempotent

Permanently delete an Anki card template and all cards generated from it. Preview the impact with a dry run, then confirm permanent deletion and review-history loss.

Instructions

Permanently deletes one card template and every card generated from it. Reports notes that may lose their last card and requires explicit impact confirmation.

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": {
      "modelName": "<modelName>",
      "templateName": "<templateName>"
    },
    "name": "delete-note-type-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, report the permanent card impact without modifying Anki
modelNameYesAnki note type name. AnkiConnect calls note types "models" in its API.
templateNameYesAnki card template name
expectedCardCountNoAffected card count returned by the dry run; required when dryRun is false and blocks applying changed impact
expectedDesignHashNoHash returned by get-note-type-design; required when dryRun is false and blocks stale writes
confirmCardDeletionNoMust be true when dryRun is false to confirm permanent deletion of generated cards and their review history
confirmNoteDeletionNoMust be true when affected notes would lose their last card and dryRun is false
expectedNotesLosingLastCardCountNoCount returned by the dry run for notes that would lose their last card; required when dryRun is false

Output Schema

NameRequiredDescriptionDefault
dryRunYes
impactYes
appliedYes
changedYes
modelNameYes
templatesYes
validationYes
scopeWarningYes
afterDesignHashYesSHA-256 hash of the current CSS and card templates
deletedTemplateYes
beforeDesignHashYesSHA-256 hash of the current CSS and card templates
previousTemplatesYes
cardDeletionConfirmedYes
noteDeletionConfirmedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is carried structurally. The description still adds real value beyond them: it discloses that generated cards are destroyed and that notes may lose their last card, which is the loss an agent most needs to anticipate.

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?

Two sentences, zero filler, with the permanent-deletion scope front-loaded ahead of the impact-reporting behavior. Nothing is repeated from 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?

An output schema exists, so return values need no explanation, and all eight params are documented. The description covers the destructive semantics well; the only minor omission is that dryRun defaults to true, which the schema handles.

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 coverage is 100% with eight fully documented parameters including expectedCardCount, expectedDesignHash, and the two confirmation flags, so the schema does the heavy lifting. The description's phrase "explicit impact confirmation" gestures at the confirmation flags but adds no format or gating detail beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Permanently deletes one card template") plus the blast radius ("every card generated from it"), which cleanly separates it from delete-note-type-field and delete-unused-note-type.

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?

Implies the correct workflow by noting it reports impact and requires explicit confirmation before the destructive step, so an agent can infer a dry-run-then-confirm sequence. It stops short of naming the alternative or stating outright "start with dryRun=true," leaving that routing to the schema defaults.

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