Skip to main content
Glama

Download a shared deck

download_shared_deck

Downloads a shared deck's .apkg from AnkiWeb to disk and returns the saved path. Existing files are never overwritten; new files get a numbered name.

Instructions

Download a shared deck's .apkg from AnkiWeb to disk and return where it was saved. An existing file is never replaced: the new one gets a numbered name. Works without an AnkiWeb session until AnkiWeb asks for one, which it does after a few downloads; then the signed-in session is used. AnkiWeb licenses shared decks for personal use only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deckYesThe shared deck's id, or its https://ankiweb.net/shared/info/<id> link.
directoryNoAn absolute path to an existing directory. Defaults to the server's own downloads directory.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
deckYes
pathYes
bytesYes
filenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.2

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations (which only cover readOnly/openWorld/destructive) by disclosing three non-obvious traits: existing files are never overwritten (new file gets a numbered name), a session may be prompted after a few downloads, and the personal-use licensing restriction. This is exactly the kind of behavioral context an agent needs.

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?

Three tight sentences, front-loaded with the action and return value, then collision-handling, then auth behavior and licensing. Every sentence carries distinct information with no padding.

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

Completeness5/5

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

With an output schema present, the description needn't explain return values, and it still notes what is returned (the saved path). Between the write-safety note, the deferred-auth behavior, and the licensing constraint, nothing an agent needs to call this correctly is missing.

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%, so both 'deck' (id or URL) and 'directory' (absolute path, defaults to server downloads dir) are already fully documented in the schema. The description adds no additional parameter semantics, so the baseline 3 applies.

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 (download), resource (a shared deck's .apkg), and destination (to disk), plus the return value (where it was saved). This is clear and functional, though it never explicitly names the sibling it differs from (e.g. get_shared_deck for metadata vs. this tool for retrieving the file).

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

Usage Guidelines3/5

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

Usage is implied by the action rather than stated: no explicit when-to-use vs. alternatives such as get_shared_deck or search_shared_decks. The description does supply useful context on the AnkiWeb session requirement, but does not route the agent among siblings.

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