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 MakerGET https://clozecardmaker.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
sentences | textarea | "Photosynthesis takes place in the chloroplasts of plant cells.\nChlorophyll abs | Sentences. One sentence per line, or a paragraph that is split at sentence ends. |
terms | textarea | "chloroplasts, chlorophyll, red and blue light, oxygen, Calvin cycle, carbon dio | Key terms. Separated by commas, semicolons or new lines; put a term with a comma in "quotes". |
mode | select (separate, together) | "separate" | Cards |
caseSensitive | boolean | false | Match upper and lower case exactly |
wholeWords | boolean | true | Whole words only |
title | text | — | 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" }
}
}