Skip to main content
Glama

generate_flashcards

Convert a note into Q&A flashcard pairs by detecting question/answer patterns, bold-term definitions, and heading-plus-sentence pairs; returns Anki-compatible tab-separated text.

Instructions

Convert a note's content into Q&A flashcard pairs. Detects question/answer patterns, bold-term definitions, and heading + first-sentence pairs. Returns tab-separated Anki-compatible format.

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": {
      "path": "<path>"
    },
    "name": "generate_flashcards"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesVault-relative path to the note.
destinationNoVault-relative path to save the flashcard file (.md or .txt). Omit to return without saving.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.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 burden. It does usefully disclose the detection heuristics and the TSV/Anki-compatible return format, but it is silent on write behavior when 'destination' is supplied (overwrite? create directories?), what happens when no patterns match, and whether any confirmation is needed.

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?

Three sentences, front-loaded with the core action, followed by detection behavior and output format. Every sentence contributes information and none repeats the tool name or schema.

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 two-parameter tool with full schema coverage and no output schema, the description covers purpose, extraction strategy, and return format adequately. Only edge-case behavior (empty results, file overwrite on save) is missing.

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 both parameters are documented in the schema, including the important 'omit to return without saving' semantics for destination. The description adds no parameter-level meaning beyond what the schema already states, so 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 names a specific verb and resource ('Convert a note's content into Q&A flashcard pairs') and enumerates the three heuristics it uses, which is far more concrete than a tautology. It is distinguishable from extraction siblings like extract_definitions or extract_quotes, though it never explicitly contrasts itself with them.

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: the agent can infer 'use this when you want flashcards from a note,' but there is no explicit when-to-use, when-not-to-use, or named alternative among the extract_* siblings. No prerequisites (e.g., note must be markdown) are stated.

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