deck_getDeckConfig
Retrieve the configuration group object for a specified deck name to manage settings and properties effectively. Input the deck name to return its configuration object.
Instructions
Gets the configuration group object for the given deck name. Returns the deck configuration object.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | The name of the deck (e.g., 'Default'). |
Implementation Reference
- src/anki_mcp/deck_service.py:19-26 (handler)The handler function for the 'deck_getDeckConfig' tool (namespaced from 'getDeckConfig'). It takes a deck name and calls the AnkiConnect 'getDeckConfig' action.@deck_mcp.tool( name="getDeckConfig", description="Gets the configuration group object for the given deck name. Returns the deck configuration object.", ) async def get_deck_config_tool( deck: Annotated[str, Field(description="The name of the deck (e.g., 'Default').")], ) -> Dict[str, Any]: return await anki_call("getDeckConfig", deck=deck)
- src/anki_mcp/__init__.py:23-23 (registration)Registers the deck service MCP under the 'deck_' prefix in the main AnkiMCP server, enabling the tool as 'deck_getDeckConfig'.await anki_mcp.import_server("deck", deck_mcp)
- src/anki_mcp/deck_service.py:24-24 (schema)Pydantic input schema definition for the deck parameter using Annotated and Field.deck: Annotated[str, Field(description="The name of the deck (e.g., 'Default').")],
- src/anki_mcp/deck_service.py:26-26 (helper)Uses the common anki_call helper to invoke the AnkiConnect API.return await anki_call("getDeckConfig", deck=deck)
- src/anki_mcp/deck_service.py:8-8 (registration)Creates the sub-MCP server 'deck_mcp' where the tool is defined and registered locally.deck_mcp = FastMCP(name="AnkiDeckService")