Skip to main content
Glama

remove_deck_config

Remove a deck configuration by its ID from Anki MCP. This tool helps streamline deck management and maintain organized study setups.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
configIdYesID of the deck configuration to remove

Implementation Reference

  • The async handler function that implements the core logic of the 'remove_deck_config' tool by calling AnkiConnect's removeDeckConfigId method.
    async ({ configId }) => { try { const result = await ankiClient.deck.removeDeckConfigId({ configId }); if (!result) { throw new Error('Failed to remove deck configuration - operation returned false'); } return { content: [ { type: 'text', text: `Successfully removed deck configuration with ID: ${configId}`, }, ], }; } catch (error) { throw new Error( `Failed to remove deck configuration: ${error instanceof Error ? error.message : String(error)}` ); } }
  • Zod schema defining the input parameter 'configId' for the 'remove_deck_config' tool.
    { configId: z.number().describe('ID of the deck configuration to remove'), },
  • The MCP server.tool registration for the 'remove_deck_config' tool, including schema and handler.
    server.tool( 'remove_deck_config', { configId: z.number().describe('ID of the deck configuration to remove'), }, async ({ configId }) => { try { const result = await ankiClient.deck.removeDeckConfigId({ configId }); if (!result) { throw new Error('Failed to remove deck configuration - operation returned false'); } return { content: [ { type: 'text', text: `Successfully removed deck configuration with ID: ${configId}`, }, ], }; } catch (error) { throw new Error( `Failed to remove deck configuration: ${error instanceof Error ? error.message : String(error)}` ); } } );

Other Tools

Related Tools

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

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