Skip to main content
Glama
Baraja MCP Server

Baraja MCP Server

by jbkroner

add_flashcard

Add a single flashcard to Anki, creating the deck if needed. Insert questions and answers with optional tags, model, and duplicate checks.

Instructions

Add a single flashcard to Anki. Creates the deck if it doesn't exist.

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": {
      "deck": "<deck>",
      "front": "<front>",
      "back": "<back>"
    },
    "name": "add_flashcard"
  }
}

Input Schema

NameRequiredDescriptionDefault
backYesBack of card (answer)
deckYesTarget deck name (created if doesn't exist)
tagsNoOptional list of tags
frontYesFront of card (question/prompt)
modelNoNote type (default: Basic)Basic
duplicate_scopeNoHow broadly to check for duplicates: 'collection' (default, matches Anki's default), 'deck' (only the target deck), or 'deck_and_subdecks'collection

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does add one genuinely useful behavioral fact: the target deck is created automatically if missing. However, it says nothing about duplicate handling (a whole duplicate_scope parameter exists), permissions, or what happens on success.

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 short sentences with zero waste, and the primary action is front-loaded before the side-effect note. Nothing could be trimmed without losing information.

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 creation tool with fully documented parameters and no output schema, the definition covers the essentials and flags the deck-creation side effect. The main missing piece is any hint about duplicate detection behavior or the return value, but the schema covers most of the remaining ground.

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 description coverage is 100%, so every parameter including duplicate_scope and model is already explained in the schema. The description adds no syntax, format, or defaulting detail beyond that, so the baseline 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?

States a specific verb and resource ("Add a single flashcard to Anki") and the word "single" implicitly separates it from the batch sibling. It doesn't explicitly name alternatives like add_cloze_card or add_flashcards_batch, so the differentiation is partial.

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?

"Add a single flashcard" implies the when-to-use context (one card rather than a batch), but there is no explicit guidance on when to prefer add_flashcards_batch or add_cloze_card, and no stated prerequisites. Usage is inferred rather than spelled out.

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