deck_saveDeckConfig
Save custom deck configuration settings in Anki to personalize study parameters and optimize flashcard learning workflows.
Instructions
Saves the given configuration group. Returns true on success, false otherwise.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"config": "<config>"
},
"name": "deck_saveDeckConfig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | The deck configuration object to save. Must include an 'id'. |
Implementation Reference
- src/anki_mcp/deck_service.py:79-92 (handler)The tool handler implementation including decorator, input schema via Pydantic Annotated/Field, and logic that proxies to AnkiConnect's saveDeckConfig API.
@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) - src/anki_mcp/__init__.py:23-23 (registration)Top-level registration that imports all deck tools with 'deck_' prefix into the main Anki MCP server, exposing 'saveDeckConfig' as 'deck_saveDeckConfig'.
await anki_mcp.import_server("deck", deck_mcp)