Skip to main content
Glama

deck_saveDeckConfig

Save a deck configuration in Anki for organized flashcard management, using the provided configuration object with a required 'id' field to ensure proper updates.

Instructions

Saves the given configuration group. Returns true on success, false otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
configYesThe deck configuration object to save. Must include an 'id'.

Implementation Reference

  • Handler function for the 'deck_saveDeckConfig' tool. Calls AnkiConnect's 'saveDeckConfig' API with the provided config.
    @deck_mcp.tool( name="saveDeckConfig", description="Saves the given configuration group. Returns true on success, false otherwise.", ) async def save_deck_config_tool( config: Annotated[ Dict[str, Any], Field( description="The deck configuration object to save. Must include an 'id'." ), ], ) -> bool: return await anki_call("saveDeckConfig", config=config)
  • Registers the deck_mcp tools into the main anki_mcp server with 'deck' prefix, making 'saveDeckConfig' available as 'deck_saveDeckConfig'.
    await anki_mcp.import_server("deck", deck_mcp)
  • Pydantic schema for input 'config' as Dict[str, Any] with description requiring 'id', output bool.
    @deck_mcp.tool( name="saveDeckConfig", description="Saves the given configuration group. Returns true on success, false otherwise.", ) async def save_deck_config_tool( config: Annotated[ Dict[str, Any], Field( description="The deck configuration object to save. Must include an 'id'." ), ], ) -> bool: return await anki_call("saveDeckConfig", config=config)

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