Skip to main content
Glama

get_num_cards_reviewed_today

Retrieve the number of Anki cards reviewed today to track daily progress and maintain consistent study habits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the MCP tool 'get_num_cards_reviewed_today'. It has no input parameters (empty schema), invokes AnkiConnect's statistic.getNumCardsReviewedToday() method, and returns a formatted text response with the count of cards reviewed today.
    server.tool('get_num_cards_reviewed_today', {}, async () => { try { const reviewsToday = await ankiClient.statistic.getNumCardsReviewedToday(); return { content: [ { type: 'text', text: `Number of cards reviewed today: ${reviewsToday}`, }, ], }; } catch (error) { throw new Error( `Failed to get number of cards reviewed today: ${error instanceof Error ? error.message : String(error)}` ); } });
  • Registration of the 'get_num_cards_reviewed_today' tool on the MCP server within the registerStatisticTools function.
    server.tool('get_num_cards_reviewed_today', {}, async () => { try { const reviewsToday = await ankiClient.statistic.getNumCardsReviewedToday(); return { content: [ { type: 'text', text: `Number of cards reviewed today: ${reviewsToday}`, }, ], }; } catch (error) { throw new Error( `Failed to get number of cards reviewed today: ${error instanceof Error ? error.message : String(error)}` ); } });
  • Usage of the underlying AnkiConnect statistic.getNumCardsReviewedToday() method within the consolidated 'get_analytics' tool's 'reviews_today' case.
    case 'reviews_today': { const count = await ankiClient.statistic.getNumCardsReviewedToday(); return { content: [ { type: 'text', text: `📊 Cards reviewed today: ${count}`, }, ], }; }

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