Skip to main content
Glama

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
NameRequiredDescriptionDefault
deckYesThe name of the deck (e.g., 'Default').

Implementation Reference

  • 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)
  • 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)
  • 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').")],
  • Uses the common anki_call helper to invoke the AnkiConnect API.
    return await anki_call("getDeckConfig", deck=deck)
  • Creates the sub-MCP server 'deck_mcp' where the tool is defined and registered locally.
    deck_mcp = FastMCP(name="AnkiDeckService")

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