Skip to main content
Glama

get_reviews_of_cards

Retrieve review data for specified Anki cards using card IDs. Use this tool to analyze and manage study progress efficiently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdsYesArray of card IDs to get reviews for

Implementation Reference

  • Full registration of the MCP tool 'get_reviews_of_cards', including schema, handler logic that fetches reviews via ankiClient.statistic.getReviewsOfCards, and response formatting.
    server.tool( 'get_reviews_of_cards', { cardIds: z.array(z.string()).describe('Array of card IDs to get reviews for'), }, async ({ cardIds }) => { try { const reviews = await ankiClient.statistic.getReviewsOfCards({ cards: cardIds }); return { content: [ { type: 'text', text: `Reviews retrieved for ${cardIds.length} cards`, }, { type: 'text', text: JSON.stringify(reviews, null, 2), }, ], }; } catch (error) { throw new Error( `Failed to get reviews for cards: ${error instanceof Error ? error.message : String(error)}` ); } } );
  • The core handler function executing the tool logic: fetches reviews for given card IDs and returns a structured MCP response.
    async ({ cardIds }) => { try { const reviews = await ankiClient.statistic.getReviewsOfCards({ cards: cardIds }); return { content: [ { type: 'text', text: `Reviews retrieved for ${cardIds.length} cards`, }, { type: 'text', text: JSON.stringify(reviews, null, 2), }, ], }; } catch (error) { throw new Error( `Failed to get reviews for cards: ${error instanceof Error ? error.message : String(error)}` ); } }
  • Zod input schema defining the 'cardIds' parameter as an array of strings.
    { cardIds: z.array(z.string()).describe('Array of card IDs to get reviews for'), },

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