Skip to main content
Glama

check_card_suspended

Verify if a specific card ID is suspended on the Anki MCP server using the check_card_suspended tool. Input the card ID to instantly determine its suspension status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdYesCard ID to check

Implementation Reference

  • Handler function that executes the tool logic: checks if a specific card is suspended via ankiClient and returns the status.
    try { const isSuspended = await ankiClient.card.suspended({ card: cardId }); return { content: [ { type: 'text', text: `Card ${cardId} is ${isSuspended ? 'suspended' : 'not suspended'}`, }, ], }; } catch (error) { throw new Error( `Failed to check if card is suspended: ${error instanceof Error ? error.message : String(error)}` ); } }
  • Input schema definition using Zod for the cardId parameter.
    cardId: z.number().describe('Card ID to check'), }, async ({ cardId }) => {
  • Registration of the 'check_card_suspended' tool with the MCP server, including schema and inline handler.
    'check_card_suspended', { cardId: z.number().describe('Card ID to check'), }, async ({ cardId }) => { try { const isSuspended = await ankiClient.card.suspended({ card: cardId }); return { content: [ { type: 'text', text: `Card ${cardId} is ${isSuspended ? 'suspended' : 'not suspended'}`, }, ], }; } catch (error) { throw new Error( `Failed to check if card is suspended: ${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