Skip to main content
Glama
Baraja MCP Server

Baraja MCP Server

by jbkroner

get_card_stats

Retrieve detailed statistics for Anki cards matching a search query, including ease factor, interval, lapses, review count, and content to debug difficult cards or investigate vocabulary struggles.

Instructions

Get detailed statistics for specific cards matching a search query. Returns comprehensive data including ease factor, interval, lapses, review count, and card content. Useful for debugging difficult cards or investigating specific vocabulary struggles.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "get_card_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of cards to return (default: 10)
queryYesAnki search query to find cards (e.g., 'deck:Spanish', 'tag:verb', 'front:*hello*')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations and no output schema, the description carries the full disclosure burden, and it does reasonably well by enumerating returned fields (ease factor, interval, lapses, review count, card content) and framing the operation as a read ('Get'). It still omits what happens when the query matches nothing and does not discuss result ordering or the effect of the limit on truncation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action and return content, followed by a use case. Nothing is redundant, though the third sentence is soft guidance rather than information the agent strictly needs to invoke the tool correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter read tool with fully documented schema and no output schema, the description covers purpose, returned fields, and a use case — enough to call it correctly. The remaining gap is routing guidance versus sibling stats and card-search tools, which keeps it short of a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% — both 'query' (with Anki syntax examples) and 'limit' (default 10) are fully documented in the schema. The description adds no syntax or format detail beyond 'search query', so the schema does the heavy lifting and the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Get detailed statistics for specific cards matching a search query.' The phrase 'specific cards matching a search query' implicitly scopes it apart from collection- or deck-level siblings like get_collection_stats and get_deck_stats, but it never names or contrasts those siblings explicitly, so the differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a use context — 'debugging difficult cards or investigating specific vocabulary struggles' — which tells an agent when the tool is valuable. However, there is no guidance on when to prefer it over get_problem_cards, get_card_stats alternatives, or search_notes, and no exclusions or prerequisites are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.