API & MCP

Everything a person can do on Cloze Card Maker, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://clozecardmaker.usefulweb.site/api/v1/calculate – run Cloze Card Maker
  • GET https://clozecardmaker.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Cloze Card Maker

Hides your key terms in your own sentences: every occurrence of a term becomes a cloze gap, one card per term (or all gaps on one card). Longer terms win over shorter ones, whole words only by default, any language. The result is in the shared cloze syntax that Anki, Deckwright and Lessonleaf read. No AI: only the terms you list are hidden.

Inputs of Cloze Card Maker
FieldTypeDefaultDescription
sentencestextarea"Photosynthesis takes place in the chloroplasts of plant cells.\nChlorophyll absSentences. One sentence per line, or a paragraph that is split at sentence ends.
termstextarea"chloroplasts, chlorophyll, red and blue light, oxygen, Calvin cycle, carbon dioKey terms. Separated by commas, semicolons or new lines; put a term with a comma in "quotes".
modeselect (separate, together)"separate"Cards
caseSensitivebooleanfalseMatch upper and lower case exactly
wholeWordsbooleantrueWhole words only
titletext—Tag (heading) for the cards

Example request

Photosynthesis: one card per term

curl -X POST https://clozecardmaker.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{}'

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://clozecardmaker.usefulweb.site/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: cloze_card_maker
  • Local stdio connector: node src/mcp-stdio.ts --tool=cloze-card-maker
{
  "mcpServers": {
    "cloze-card-maker": { "type": "http", "url": "https://clozecardmaker.usefulweb.site/mcp" }
  }
}