API & MCP
Everything a person can do on Exam Study Planner for Flashcards, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://examstudyplanner.usefulweb.app/api/v1/calculate– run Exam Study Planner for FlashcardsGET https://examstudyplanner.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Exam Study Planner for Flashcards
Plans each day until one or more exams: how many new flashcards to learn and how many reviews are due, with a cram phase before each exam and a warning (and the minutes a day you would need) when your time budget is not enough. Reviews are forecast with the same FSRS-5 or SM-2 scheduler as Deckwright’s Study view and Lessonleaf; your existing cards and review log can be included. Exports a CSV and a calendar file.
| Field | Type | Default | Description |
|---|---|---|---|
exams | table | [{"date":"+21","name":"Biology midterm","cards":240,"tag":"Cell biology"},{"date | Exams. One row per exam: a date like 2027-01-20 or days from today like +28, the number of cards still to learn, and the tag (heading) of cards you already have for it. |
minutesPerDay | integer | 30 | Time per study day |
today | date | — | Start date. Empty = today (UTC). |
restDays | multiselect (0, 1, 2, 3, 4, 5, 6) | [] | Days without study |
cram | boolean | true | Cram phase before each exam (no new cards, extra reviews) |
cramDays | integer | 3 | Cram days |
cramRetention | number | 0.9 | Recall target on exam day (FSRS). Cards whose predicted recall on exam day is lower get one more review during the cram days. |
secondsNew | number | 40 | Time for a new card |
secondsReview | number | 12 | Time for a review |
againRate | number | 0.1 | Share of answers you get wrong. Adds time for repeating missed cards (0.1 = one in ten). |
maxNewPerDay | integer | 200 | Most new cards on one day |
scheduler | select (fsrs, sm2) | "fsrs" | Scheduler |
retention | number | 0.9 | Desired retention (FSRS) |
cards | textarea | — | Cards you already have (optional). Deckwright or Lessonleaf card text, CSV or Anki text. Cards whose heading or tag matches an exam’s tag belong to that exam; the others to the first exam without a tag. |
log | textarea | — | Review log (optional, CSV: date, card, rating). Deckwright’s “Export review log” format; without a log your cards count as new. |
Example request
Two exams, 30 minutes a day, Sundays off
curl -X POST https://examstudyplanner.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"exams":[{"date":"2026-12-18","name":"Biology midterm","cards":240,"tag":"Cell biology"},{"date":"2027-01-15","name":"Spanish B1","cards":400}],"today":"2026-12-01","minutesPerDay":30,"restDays":["0"]}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://examstudyplanner.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
exam_study_planner - Local stdio connector:
node src/mcp-stdio.ts --tool=exam-study-planner
{
"mcpServers": {
"exam-study-planner": { "type": "http", "url": "https://examstudyplanner.usefulweb.app/mcp" }
}
}