Skip to main content
Glama

Export Anki deck package

export-deck-package

Preview and export a normal deck plus its subdecks as a local .apkg package, including media and optional scheduling history, then write a new file without overwriting existing exports.

Instructions

Previews a local .apkg export of one normal deck and its subdecks. Media is included; scheduling is opt-in. On confirmation, writes a new file under the configured export directory without overwriting existing files. Requires local 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": {
      "deckId": "<deckId>"
    },
    "name": "export-deck-package"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckIdYesID of one normal deck from list-decks; its subdecks are in scope.
dryRunNoPreview without exporting a file or importing into Anki.
fileNameNoFile name only. Defaults to deck-<id>.apkg.
confirmExportNo
includeSchedulingNoInclude learning progress and review history.
expectedImpactHashNoHash from the reviewed preview.

Output Schema

NameRequiredDescriptionDefault
deckYes
dryRunYes
packageYes
profileYes
blockersYes
exportedYes
fileNameYes
warningsYes
impactHashYes
includedDecksYes
includesMediaYes
exportDirectoryYes
includeSchedulingYes
includedDeckCountYes
includesDeckPresetsYes

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 a non-read-only, non-destructive, non-idempotent write; the description adds real value beyond them by disclosing that media is always bundled, scheduling is opt-in, the file lands in a configured export directory, and existing files are never overwritten. It still omits what happens on a filename collision (error vs. rename) and any error/retry semantics.

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 short sentences, zero filler, with the preview-then-write flow front-loaded ahead of media/scheduling details and the environment prerequisite. Every sentence carries information an agent needs.

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 the description covers the prerequisite, mutation semantics, and non-overwrite guarantee. The only residual gap is the precise preview-confirmation handshake between dryRun, confirmExport, and expectedImpactHash, which is left to the schema.

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 83%, so the schema already explains deckId, dryRun, fileName, includeScheduling, and expectedImpactHash. The description reinforces only the scheduling toggle and deck scope; it adds no format, constraint, or interaction detail (e.g., how confirmExport and expectedImpactHash pair) beyond the schema. Baseline 3 is appropriate.

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?

The description names a specific verb and resource — previewing then writing a local .apkg export of one deck plus its subdecks — which is unmistakably distinct from the import-deck-package sibling. Scope (normal deck + subdecks) and artifact type are stated up front.

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?

It makes the two-phase workflow explicit ("Previews... On confirmation, writes"), and states the opt-in nature of scheduling so the agent knows the default. It also gives a hard prerequisite (local AnkiConnect v1). It does not name alternative tools or when-not-to-use conditions, so it falls short of a 5.

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