Tools

The server exposes a focused set of high-level tools. Each one wraps a REST endpoint and inherits its validation, limits, and error behavior.

Card content is keyed by each deck field's key, so an assistant should call get_deck (or read the response of create_deck) to learn the keys before calling add_cards or update_cards.


Decks

ToolDescription
list_decksList your decks, most recent first, with their due cards counts.
get_deckRetrieve a deck with its fields and its card layouts.
create_deckCreate a deck, optionally with its fields and their AI Autofill.
copy_deckCopy a deck with its fields, layouts, and cards.
update_deckRename a deck or change its study settings.
pause_deckPause the study of a deck.
unpause_deckResume the study of a paused deck.
schedule_deck_cardsSchedule the deck's next batch of new cards for review now.
get_deck_progressThe latest deck progress snapshot.
list_deck_progressThe deck progress history over a date window.

Deck fields

ToolDescription
add_deck_fieldsAdd fields to an existing deck.
update_deck_fieldRename a field or change its AI Autofill configuration.
generate_deck_field_valuesGenerate a field's value on every card with AI Autofill.
delete_deck_fieldDelete a field and its content on every card.

Card layouts

ToolDescription
create_card_layoutCreate a card layout, e.g. to test another direction of the same cards.
update_card_layoutSet a card layout's review prompt, whether it is active, and whether it is primary.
delete_card_layoutDelete a card layout and its variants' learning progress.
edit_card_layout_fieldsAdd, restyle, move, or remove a layout's layout fields in a single call.

Cards

ToolDescription
add_cardsCreate up to 100 cards in a deck, with optional AI Autofill.
list_cardsList cards, optionally filtered to a single deck.
get_cardRetrieve a card with its card variants (scheduling state).
update_cardsUpdate the content of one or more cards in a single call.
delete_cardsDelete one or more cards and their review history.

Scheduling

ToolDescription
list_card_variantsList card variants, filterable by deck, card, stage, or difficulty.
update_card_schedulingApply a scheduling action to a variant: schedule, snooze, suspend, or unsuspend.
list_card_reviewsList the review history, filterable by deck, card, or variant.

Errors

Tool calls surface the same error object as the REST API. When a call fails, the assistant receives its message, code, and param, so it can explain what went wrong and how to fix it.