Skip to main content
Glama

note_updateNote

Modify fields and tags of an existing Anki flashcard note to update content or organization.

Instructions

Modifies the fields and/or tags of an existing note.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYesNote object to update. Must include 'id'. Can include 'fields', 'tags', 'audio', 'video', 'picture'.

Implementation Reference

  • Handler function executing the tool logic for note_updateNote, calling AnkiConnect's updateNote API.
    @note_mcp.tool(
        name="updateNote",
        description="Modifies the fields and/or tags of an existing note.",
    )
    async def update_note_tool(
        note: Annotated[
            Dict[str, Any],
            Field(
                description="Note object to update. Must include 'id'. Can include 'fields', 'tags', 'audio', 'video', 'picture'."
            ),
        ],
    ) -> None:
        return await anki_call("updateNote", note=note)
  • Registers the note_mcp (AnkiNoteService) tools with 'note_' prefix into the main anki_mcp, making 'updateNote' available as 'note_updateNote'.
    await anki_mcp.import_server("note", note_mcp)
  • Pydantic schema/validation for the input parameter 'note' of the tool.
    note: Annotated[
        Dict[str, Any],
        Field(
            description="Note object to update. Must include 'id'. Can include 'fields', 'tags', 'audio', 'video', 'picture'."
        ),
    ],
  • Creates the FastMCP instance for note service tools where note_updateNote (as updateNote) is defined.
    note_mcp = FastMCP(name="AnkiNoteService")

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

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