Skip to main content
Glama
Baraja MCP Server

Baraja MCP Server

by jbkroner

get_retention_stats

Calculate retention metrics for an Anki deck from review history to show success rate and lapse patterns, with optional deck and day-range filters.

Instructions

Calculate retention metrics for a deck based on review history. Shows success rate and lapse patterns.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_retention_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of days to analyze (default: 30)
deckNoOptional deck name to filter. Analyzes all decks if not specified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the behavioral burden. 'Calculate' and 'Shows' imply a read-only analysis, but the description does not explicitly confirm non-mutation, discuss side effects, permissions, or result shape.

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

Conciseness5/5

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

Two concise sentences, front-loaded with the core action and followed by the key outputs. No redundant or filler wording.

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

Completeness3/5

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

For a simple two-parameter stats tool, the description says what is calculated and which metrics are shown. However, with no annotations or output schema, it omits behavioral details and does not help choose between this and other stats tools.

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%, and the schema already documents the default 30-day window and optional deck filter. The description reinforces that analysis is deck-specific but adds no parameter meaning beyond the schema.

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?

States a specific verb and resource: calculate retention metrics for a deck from review history, with success rate and lapse patterns. It is clear what the tool produces, though it does not explicitly distinguish itself from nearby stats or review-history siblings.

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

Usage Guidelines2/5

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

The description implies the use case (retention metrics) but gives no when-to-use or when-not-to-use guidance. It does not name alternatives such as deck stats or review history, leaving selection to the agent.

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