Skip to main content
Glama

update_card

Modify Anki flashcards by marking reviews, updating content fields, or adjusting tags to maintain accurate and current study materials.

Instructions

Update a card/note in Anki. Supports 4 operations: (1) 'answer': mark a card as reviewed with ease 1-4, (2) 'update_note': update note fields, tags, and media, (3) 'update_fields': update only fields and media, (4) 'update_tags': update only tags. Returns success message with operation details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesRequired. Operation type: 'answer' (requires cardId + ease), 'update_note' (requires noteId + fields, optional tags/audio/picture), 'update_fields' (requires noteId + fields, optional audio/picture), 'update_tags' (requires noteId + tags array)
cardIdNoCard ID - REQUIRED for 'answer' operation only. Use get_card to find card IDs.
noteIdNoNote ID - REQUIRED for 'update_note', 'update_fields', and 'update_tags' operations. Use get_card to find note IDs.
easeNoEase score for 'answer' operation. REQUIRED when operation='answer'. Values: 1 (Again/Hard), 2 (Hard), 3 (Good), 4 (Easy).
fieldsNoField names and values to update. REQUIRED for 'update_note' and 'update_fields'. Format: {"FieldName": "value"}. Example: {"Front": "Question text", "Back": "Answer text"}. Use HTML formatting (not markdown).
tagsNoArray of tags. REQUIRED for 'update_tags', optional for 'update_note'. REPLACES all existing tags. Example: ["vocabulary", "important", "lesson-1"].
audioNoOptional audio files for 'update_note' and 'update_fields'. Each item needs filename, path (URL or local file path), and target field names array.
pictureNoOptional image files for 'update_note' and 'update_fields'. Each item needs filename, path (URL or local file path), and target field names array.

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/letuanvu08/anki-mcp'

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