Skip to main content
Glama
get_cards_reviewed.py775 B
import mcp.types as types from .utils import make_anki_request async def get_cards_reviewed() -> list[types.TextContent]: result = await make_anki_request("getNumCardsReviewedByDay") if result["success"]: review_data = result["result"] # Format the review data for better readability formatted_data = "\n".join([f"{day}: {count} cards" for day, count in review_data]) return [ types.TextContent( type="text", text=f"Cards reviewed by day:\n{formatted_data}", ) ] else: return [ types.TextContent( type="text", text=f"Failed to retrieve review statistics: {result['error']}", ) ]

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

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