Skip to main content
Glama
AnkiWeb MCP Server
by jklnr

ankiweb_add_note

Add a single flashcard note to AnkiWeb by specifying a deck and field values, with optional note type, tags, and automatic deck creation if missing.

Instructions

Add a single flashcard note to AnkiWeb.

Args: deck: Target deck name (e.g. "Spanish::Verbs") or numeric deck ID string. fields: Mapping of note type field names to values (e.g. {"Front": "...", "Back": "..."} for Basic, or {"Text": "{{c1::Paris}} is the capital of France", "Back Extra": ""} for Cloze). HTML formatting and MathJax are supported; <img> tags are not. notetype: Note type name (default "Basic") or ID. tags: Optional list of tags (no spaces inside individual tags). create_deck_if_missing: Automatically create deck if it does not yet exist.

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": {
      "deck": "<deck>",
      "fields": "<fields>"
    },
    "name": "ankiweb_add_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYes
tagsNo
fieldsYes
notetypeNoBasic
create_deck_if_missingNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, and the description adds genuinely useful behavior beyond them: HTML and MathJax are rendered, `<img>` tags are rejected, and create_deck_if_missing controls whether a missing deck is auto-created. It still doesn't say what happens on duplicate notes or whether authentication is required, so it stops short of 5.

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?

The one-line summary is front-loaded and the Args block is scannable, with each entry adding a constraint or example rather than restating the schema. The docstring-style formatting is slightly verbose but no sentence is wasted.

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 annotations cover the safety profile. The remaining gaps are authentication requirements and the failure mode when the deck is absent and create_deck_if_missing is false, both of which an agent would want before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 carry the load, and it largely does: it explains the `::` deck hierarchy syntax with an example, shows concrete `fields` mappings for both Basic and Cloze note types, states the notetype default, the no-spaces tag rule, and the create_deck_if_missing default. What's missing is what happens when field names don't match the chosen notetype.

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?

The description leads with a specific verb+resource: 'Add a single flashcard note to AnkiWeb.' The word 'single' implicitly separates it from the batch sibling, but it never names that sibling, so the differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

There is no explicit when-to-use / when-not guidance and no mention of prerequisites such as being logged in, which matters given sibling tools like ankiweb_login and ankiweb_auth_status. The only usage signal is the implicit 'single note' framing, which a reader must connect to ankiweb_add_notes_batch themselves.

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