Skip to main content
Glama

add_card

Create flashcards in Anki with HTML formatting and media support. Specify deck, note type, and field content to build effective study cards.

Instructions

Create a new flashcard in Anki. Requires: deckName (exact deck name), modelName (note type like 'Basic' or 'Cloze'), and fields object matching the note type's field names. Returns card ID on success. FORMATTING: Use HTML only (NO markdown) - for line breaks, for bold, for italic, / for lists. Media files (audio/picture) support URLs or local absolute paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deckNameYesREQUIRED. Exact name of target Anki deck (case-sensitive). Examples: 'Spanish', 'Vocabulary', 'My Deck::Subdeck'.
modelNameYesREQUIRED. Exact note type name (case-sensitive). Common types: 'Basic', 'Basic (and reversed card)', 'Basic (type in the answer)', 'Cloze'. Must match an existing note type in Anki.
fieldsYesREQUIRED. Field names (keys) and content (values). Keys must exactly match the note type's field names (case-sensitive). Example for 'Basic': {"Front": "Question?", "Back": "Answer"}. Use HTML formatting in values.
tagsNoOptional. Comma-separated tags (e.g., 'vocabulary,lesson1,important'). Tags will be created if they don't exist.
audioNoOptional. Audio file attachments. Each requires: filename, path (URL or absolute local path like /path/to/audio.mp3), and fields array (field names to attach to).
pictureNoOptional. Image file attachments. Each requires: filename, path (URL or absolute local path like /path/to/image.jpg), and fields array (field names to attach to).
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it specifies the return value ('Returns card ID on success'), reveals formatting constraints ('Use HTML only'), explains media handling ('Media files support URLs or local absolute paths'), and mentions case-sensitivity requirements. It doesn't cover error conditions or rate limits.

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?

The description is efficiently structured with zero wasted sentences. It front-loads the core purpose, then provides essential formatting and media guidelines. Each sentence adds distinct value: creation action, requirements, return value, formatting rules, and media support.

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?

For a creation tool with no annotations and no output schema, the description provides substantial context: purpose, requirements, return value, formatting constraints, and media handling. It covers the essential behavioral aspects though doesn't address potential errors, authentication needs, or the exact structure of the returned card ID.

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?

With 100% schema description coverage, the schema already documents all 6 parameters thoroughly. The description adds minimal parameter semantics beyond the schema - mainly emphasizing the 'fields' object must match note type field names and repeating HTML formatting guidance. This meets the baseline for high schema coverage.

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 clearly states the specific action ('Create a new flashcard in Anki') and identifies the resource ('flashcard'), distinguishing it from siblings like 'batch_add_card' (bulk operation) or 'update_card' (modification). It provides a complete functional overview in the opening sentence.

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 description provides clear context about when to use this tool by specifying required parameters and formatting requirements, but doesn't explicitly mention when to use alternatives like 'batch_add_card' for multiple cards or 'update_card' for modifications. The guidance is practical but lacks sibling differentiation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/letuanvu08/anki-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server