Skip to main content
Glama

fetch_due_cards_for_review

Retrieve due Anki cards for review. Optionally filter by deck, set a card limit, or choose only cards due today or up to future days. Helps prepare study material efficiently.

Instructions

Fetch cards due for review, formatted for an LLM to present.

Args:
    deck: Optional[str] - Filter by specific deck name.
    limit: int - Maximum number of cards to fetch (default 5).
    today_only: bool - If true, only fetch cards due today. If false, fetch cards due up to MAX_FUTURE_DAYS ahead (currently {MAX_FUTURE_DAYS}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deckNo
limitNoMax cards to fetch.
today_onlyNoTrue=only today's cards, False=cards due up to MAX_FUTURE_DAYS ahead.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must convey behavioral traits. It mentions fetching due cards with filtering options and output formatting for LLMs, but does not disclose whether the operation is read-only, error handling, or any side effects. Some behavioral context is given, but gaps remain.

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 description is short, front-loaded with the main purpose, and organized into a clear parameter list. It is concise without unnecessary words, though the parameter documentation overlaps with the schema.

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?

Given the 3 optional parameters and existence of an output schema, the description covers the filtering logic and default behavior. However, it does not explain the output format beyond 'formatted for an LLM' or mention ordering/pagination, which may be needed for full completeness.

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 67% (descriptions for 'limit' and 'today_only' but not 'deck'). The description adds missing info for 'deck' ('Filter by specific deck name') and clarifies defaults, but it largely repeats what is already in the schema for 'limit' and 'today_only'. It adds value for the undocumented parameter.

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 'Fetch cards due for review, formatted for an LLM to present.' This specifies the verb (Fetch) and resource (cards due for review), and the unique formatting purpose distinguishes it from siblings like 'num_cards_due_today' or 'submit_reviews'.

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?

The description explains what the tool does and its parameters but provides no explicit guidance on when to use this tool versus alternatives like 'search_notes' or 'get_examples'. There is no mention of prerequisites or when not to use it.

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/samefarrar/mcp-ankiconnect'

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