Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PODCAST_FLASHCARDS_HOMENoDirectory where decks are stored (default: ~/.podcast-flashcards/decks/).
PODCAST_FLASHCARDS_COOKIES_FILENoPath to a Netscape-format cookies.txt file, used if YouTube blocks the download.
PODCAST_FLASHCARDS_COOKIES_BROWSERNoBrowser to read cookies from (e.g. firefox), used if YouTube blocks the download.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

podcast-flashcards turns a YouTube video (podcast, lecture, talk) into a spaced-repetition flashcard deck: a web page with a review mode, an Anki deck and a Markdown file. YOU write the cards; this server has no model of its own.

Workflow: 1) fetch_video(url) 2) get_card_guidelines() 3) write the cards section by section, following the guidelines and the user's profile 4) save_deck(deck); if it returns errors, fix them and call save_deck again 5) give the user the page path. Use get_profile / update_profile to personalize (level, background, interests, ...).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
fetch_videoA

STEP 1. Fetch a YouTube video's title, metadata, chapters and English transcript.

Returns {slug, title, video, sections: [{title, start_s, end_s, transcript}], transcript_path}. Sections follow the video's chapters (or ~10-minute parts if it has none); each transcript has [mm:ss] markers you can use for card timestamps. Long chapters are split into "(part k/n)" sections of at most max_chars_per_section characters. Results are cached per video.

If YouTube rate-limits or blocks the fetch, pass transcript_text (pasted captions) or subtitle_path (.vtt/.srt), or set PODCAST_FLASHCARDS_COOKIES_BROWSER / profile cookies_from_browser and retry.

Next: call get_card_guidelines(), read all sections, then write the deck.

get_card_guidelinesA

STEP 2. The rules for writing good flashcards, the user's profile (who the cards are for: level, background, interests, cards per section, style, language) and the exact deck JSON format that save_deck expects. Read it fully before writing cards.

save_deckC

STEP 3. Validate and save the deck (see save_deck_impl). open overrides profile auto_open.

list_decksA

All saved decks, newest first: {ok, decks: [{slug, title, cards, created, path}], hint?}.

refreshB

Re-render index.html, how.html, and static for each deck from deck.json (no JSON edits).

get_profileB

The user's flashcard profile: name, level, background, interests, cards_per_section [min, max], style {analogies, include_numbers, math}, avoid, language. Defaults apply until the user changes them.

update_profileA

Merge patch into the user's profile and return the full updated profile. Only include the keys to change, e.g. {"level": "advanced", "style": {"math": "full"}}. Nested objects merge; lists are replaced; null resets a key to its default. Valid values: cards_per_section = [min, max] with 1 <= min <= max <= 20; style.analogies / style.include_numbers = true|false; style.math = "none" | "when essential" | "full"; language is a code like "en". Use this when the user tells you about themselves or asks to personalize the cards.

Prompts

Interactive templates invoked by user choice

NameDescription
make_flashcardsMake a flashcard deck from a YouTube video (the full workflow).

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 7 tools

Disambiguation4/5

Each tool maps to a distinct step or resource: fetch_video (ingest), get_card_guidelines (rules), save_deck (write), list_decks (read index), refresh (re-render static output), and get/update_profile. The only mild overlap is save_deck vs refresh, since both affect deck output, but the descriptions clarify that refresh regenerates HTML without touching JSON.

Naming Consistency4/5

Names follow a verb_noun convention throughout (get_card_guidelines, save_deck, list_decks, fetch_video, get_profile, update_profile). The lone outlier is the bare verb 'refresh', a minor deviation but still clear in context.

Tool Count5/5

Seven tools is well-scoped for a video-to-flashcard pipeline, with each tool earning its place across the ingest, authoring, save, and personalization stages. Nothing feels padded or redundant.

Completeness3/5

The core workflow (fetch video → guidelines → save deck → list) is covered, including profile get/update. However, the deck lifecycle has gaps: there is no way to read a single deck's contents for editing, delete a deck, or rename one, so agents can hit dead ends after save_deck.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues