Skip to main content
Glama

Manage scheduling and review state

manage_scheduling
Destructive

Find due Anki cards, quiz yourself, and change review state (answer, suspend, unsuspend, reset, relearn, reposition) to control what appears next.

Instructions

Run a quiz and change review state (answer, suspend, unsuspend, reset, relearn, reposition new cards) in the local Anki collection. Use this to get due card IDs and act on them; use manage_decks get_stats for due counts, get_analytics for progress and history, and manage_flashcards to edit card content.

Operations:

  • find_due: read-only; the IDs of matching cards due now, for running a quiz (not counts). Needs query (Anki search syntax, e.g. "deck:Spanish").

  • check_status: read-only. Needs cardIds; returns due/suspended flags per card.

  • answer: records reviews, as if answered in Anki. Needs answers: [{ cardId, ease }] where ease 1=Again, 2=Hard, 3=Good, 4=Easy. Affects future scheduling.

  • suspend / unsuspend: needs cardIds OR query. Suspended cards are excluded from reviews until unsuspended (e.g. pause a whole deck: query 'deck:"Spanish"').

  • forget: needs cardIds OR query. Resets cards to new, discarding their review progress (destructive).

  • relearn: needs cardIds OR query. Puts cards back into relearning.

  • reposition: sets the order new cards are introduced. Needs cardIds (in the order you want; e.g. interleave topics or put exam topics first) OR query (keeps their current relative order). Card i gets position start + i*step; start defaults to the front of the affected decks' new queue, step to 1. shift: true pushes other new cards down to make room. Cards that aren't new (or sit in a filtered deck) are skipped and listed, never rescheduled. Changes sync. Positions only matter when the deck gathers new cards by "deck" or "ascending_position" (see manage_decks set_display_order); the reply warns otherwise. Check the result with manage_flashcards find include ["state"] (#n = position). With query (Anki search syntax), the server finds the cards and applies the change in chunks, so thousands of cards take one call; it returns the count. dryRun: true returns the match count and sample IDs (for reposition, each card's planned position) without writing. A query matching nothing changes nothing.

All writes apply immediately and are not undoable through this tool.

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": {
      "operation": "<operation>"
    },
    "name": "manage_scheduling"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepNoreposition: gap between consecutive positions (default 1)
queryNofind_due (required), or suspend/unsuspend/forget/relearn/reposition instead of cardIds: Anki search query, e.g. 'deck:"Spanish"' or "tag:verbs is:due". The server finds the cards, so thousands of cards work in one call
shiftNoreposition: push other new cards at or after start down so positions don't collide (like Anki's "Shift position of existing cards"). Default false: ties are broken by card ID
startNoreposition: position of the first card. Default: the lowest position among new cards in the affected decks (the front of the queue)
dryRunNosuspend/unsuspend/forget/relearn: report how many cards match (and sample IDs) without changing anything. reposition: list each card's planned position without writing. Rejected for other operations
answersNoanswer: one entry per reviewed card
cardIdsNocheck_status (required), or suspend/unsuspend/forget/relearn/reposition instead of query: card IDs (not note IDs). For reposition, the order of this array is the new queue order
operationYesWhich operation to run; see the tool description for required parameters

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive=true and non-idempotent, but the description goes further: it labels which operations are read-only, states that forget discards review progress, that answer affects future scheduling, that suspended cards are excluded from reviews, that writes are immediate and not undoable, that query-based changes are chunked server-side and return a count, and that reposition warns when display order makes positions irrelevant. That is substantive behavior an agent cannot infer from the annotations.

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?

Purpose and sibling routing are front-loaded, then operations are laid out as scannable bullets, and the cross-cutting dryRun/chunking caveats are grouped at the end. It is long but well organized; the main waste is repetition of details the schema already carries (ease 1-4 mapping, query syntax example, dryRun semantics).

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?

For an eight-operation, eight-parameter tool with no output schema, the description covers what each operation returns (card IDs, due/suspended flags, match count and sample IDs, skipped-card lists, warnings) and how large queries are batched. An agent has everything needed to choose an operation and predict its effect, including the irreversibility of writes.

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 100%, so the baseline is 3, and the schema already documents query, cardIds, answers, dryRun, start, step and shift. The description still adds meaning beyond it: the reposition formula (card i gets start + i*step, start defaults to the front of the new queue), the note that query order is preserved while cardIds order defines queue order, and that a query matching nothing is a no-op. Useful but partly duplicative of schema text.

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?

States specific verbs and resources ("Run a quiz and change review state ... in the local Anki collection") and then enumerates all eight operations with their individual effects. It explicitly contrasts itself with siblings (manage_decks get_stats for counts, get_analytics for history, manage_flashcards for content), so an agent can disambiguate without opening any schema.

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?

Gives explicit routing rules: use this to fetch due card IDs and act on them, use get_stats for counts, get_analytics for progress. Each operation carries its own when/precondition (find_due needs query, suspend takes cardIds OR query, reposition only matters under certain display orders). Exclusions are present, e.g. "not counts" and "Cards that aren't new (or sit in a filtered deck) are skipped".

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