Skip to main content
Glama
Baraja MCP Server

Baraja MCP Server

by jbkroner

add_flashcards_batch

Add multiple flashcards to a target Anki deck in one operation, with shared tags and duplicate checks, instead of creating cards one at a time.

Instructions

Add multiple flashcards in one operation. Much faster than adding one at a time.

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>",
      "cards": "<cards>"
    },
    "name": "add_flashcards_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesTarget deck name
tagsNoTags applied to all cards
cardsYesList of cards with front, back, and optional tags
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
allow_duplicatesNoAdd cards even if they duplicate an existing note (default: false, duplicates are skipped and reported)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses only a performance claim and says nothing about duplicate handling, partial-failure behavior, atomicity, limits on batch size, or what is reported back when cards are skipped — all of which matter for a bulk mutation tool.

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?

Two short sentences, front-loaded with the core action. The second sentence is mildly promotional but does earn its place by hinting at the batch-vs-single routing decision.

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 six-parameter bulk mutation tool with no annotations and no output schema, the description is thin — it omits duplicate-skip reporting and failure semantics. The rich schema mitigates this substantially, but the absence of annotations leaves a real gap in behavioral context.

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 the schema already documents all six parameters including duplicate_scope and allow_duplicates. The description adds no parameter-level meaning beyond that baseline, which is acceptable when the schema does the heavy lifting.

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 states a specific verb and resource ('Add multiple flashcards in one operation') and implicitly contrasts with the single-card workflow via 'one at a time.' It does not name the sibling tool add_flashcard explicitly, but the batch-vs-single distinction is clear enough for an agent to choose correctly.

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?

Usage is only implied by the speed comparison — an agent can infer 'use this when adding several cards' but there is no explicit when-not guidance (e.g., 'use add_flashcard for a single card') and no mention of when the duplicate-handling parameters should be adjusted.

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