get_num_cards_reviewed_by_day
Track daily Anki card reviews with this tool, providing insights into study habits and progress for effective learning management.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/statistic.ts:94-114 (registration)Registers the MCP tool 'get_num_cards_reviewed_by_day' with empty input schema. The inline handler fetches daily card review counts via ankiClient.statistic.getNumCardsReviewedByDay() (AnkiConnect API) and returns formatted JSON output in text content blocks.server.tool('get_num_cards_reviewed_by_day', {}, async () => { try { const reviewsByDay = await ankiClient.statistic.getNumCardsReviewedByDay(); return { content: [ { type: 'text', text: `Cards reviewed by day (${reviewsByDay.length} days):`, }, { type: 'text', text: JSON.stringify(reviewsByDay, null, 2), }, ], }; } catch (error) { throw new Error( `Failed to get cards reviewed by day: ${error instanceof Error ? error.message : String(error)}` ); } });