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.
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses that the tool returns a success message with operation details, which is helpful behavioral context. However, it doesn't mention important behavioral traits like whether updates are destructive (e.g., tags REPLACE all existing tags is only in schema), authentication requirements, error handling, or rate limits for a mutation tool.

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?

The description is perfectly front-loaded with the core purpose and 4 operations in the first sentence, followed by the return value. Every sentence earns its place by providing essential information without redundancy. The structure is logical and efficiently communicates the tool's capabilities.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex mutation tool with 8 parameters, nested objects, and no annotations or output schema, the description is adequate but has gaps. It explains the operations and return value, but doesn't cover important contextual details like error conditions, side effects, or how this tool relates to sibling tools. The schema handles parameter documentation well, but the description could provide more behavioral context.

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 description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds value by summarizing the 4 operations and their purposes, which helps the agent understand the semantic grouping of parameters. However, it doesn't provide additional syntax or format details beyond what's in the schema descriptions.

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 the verb ('Update') and resource ('a card/note in Anki'), and distinguishes this tool from siblings by specifying it supports 4 distinct operations. It goes beyond a simple update to explain the specific operations available, which differentiates it from tools like 'add_card' or 'get_card'.

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

Usage Guidelines4/5

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

The description provides clear context for when to use each operation (e.g., 'answer' for marking as reviewed, 'update_note' for comprehensive updates), but doesn't explicitly state when NOT to use this tool versus alternatives like 'add_card' for creating new cards. It implies usage through operation descriptions but lacks explicit exclusions or comparisons to sibling tools.

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

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