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 Flashcards
  • GET https://examstudyplanner.usefulweb.app/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

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.

Inputs of Exam Study Planner for Flashcards
FieldTypeDefaultDescription
examstable[{"date":"+21","name":"Biology midterm","cards":240,"tag":"Cell biology"},{"dateExams. 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.
minutesPerDayinteger30Time per study day
todaydate—Start date. Empty = today (UTC).
restDaysmultiselect (0, 1, 2, 3, 4, 5, 6)[]Days without study
crambooleantrueCram phase before each exam (no new cards, extra reviews)
cramDaysinteger3Cram days
cramRetentionnumber0.9Recall target on exam day (FSRS). Cards whose predicted recall on exam day is lower get one more review during the cram days.
secondsNewnumber40Time for a new card
secondsReviewnumber12Time for a review
againRatenumber0.1Share of answers you get wrong. Adds time for repeating missed cards (0.1 = one in ten).
maxNewPerDayinteger200Most new cards on one day
schedulerselect (fsrs, sm2)"fsrs"Scheduler
retentionnumber0.9Desired retention (FSRS)
cardstextarea—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.
logtextarea—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" }
  }
}