Skip to main content
Glama
AnkiWeb MCP Server
by jklnr

ankiweb_get_study_cards

Idempotent

Fetch 1-2 due AnkiWeb study cards from a selected deck or any deck, returning clean question and answer text for card review.

Instructions

Fetch the current lookahead window (1-2 cards) of due study cards from AnkiWeb.

Pass deck (case-insensitive deck name, subdeck leaf name, or ID) to select that deck first; if not found, returns deck_not_found with available_decks and closest_matches.

Each returned card provides clean question_text (CSS stripped) and answer_only_text (back side only, split past <hr id=answer>). When you submit a rating via ankiweb_answer_card, it automatically returns the next due cards and updated counts—do not call ankiweb_get_study_cards again after every answer.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ankiweb_get_study_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

The description adds substantial behavior beyond the annotations: the deck_not_found outcome carrying available_decks and closest_matches, CSS-stripped question_text, and answer_only_text split at <hr id=answer>. The one mismatch is that "Fetch" reads as a pure read, while readOnlyHint=false says the tool is not read-only; nothing explains what state it touches. This is noted rather than fatal because the description otherwise supplies the error and payload behavior 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?

Purpose is front-loaded in sentence one, the parameter follows, then return shape and the call-loop warning. Each section earns its place and nothing is repeated.

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 one-parameter read with an output schema, the definition covers purpose, parameter formats, the error path, and the interaction with ankiweb_answer_card. It does not say what is returned when nothing is due, which is the remaining behavior an agent may need.

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 coverage is 0%, so the description must carry the parameter, and it does: deck accepts a case-insensitive deck name, a subdeck leaf name, or an ID, and returning deck_not_found is spelled out. The gap is that it never says which deck is used when the optional deck is omitted.

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 first sentence gives a specific verb (fetch), a specific resource (due study cards) and scopes it precisely ("current lookahead window (1-2 cards) from AnkiWeb"). That wording separates it cleanly from ankiweb_search_notes and ankiweb_answer_card without any schema reading.

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

Usage Guidelines5/5

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

It gives an explicit negative instruction: once you submit a rating via ankiweb_answer_card, the next due cards and updated counts come back automatically, so do not call this tool again after every answer. It also tells the agent when to pass deck versus omitting it. That is real when/when-not guidance tied to a named sibling.

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