Skip to content
SCTAScholastic Commentaries and Texts Archive

APIs

Interpretation API

Generated summaries, claims and concepts for SCTA texts, from a paragraph up to a whole work.

Imported from scta-interpretation · docs/api.md · main @ b34b146 · 2026-11-28

Documentation: all pages

Short interpretive summaries of SCTA texts, at https://scta.info/api/interpretation/v1: for a paragraph, a question, a distinction or a whole work, what it argues (a summary), the claims it makes, and the concepts it treats. Ask for a summary first, and fetch the full text only of the sections that matter.

The interpretations are generated by a language model, not written by an editor: read them as a guide to the text, not as an edition or a commentary on it. Each record names the model, the prompt version and the text commit it was made from.

Where they come from #

Each text repository in scta-texts may hold an interpretation.json per item (one entry per paragraph) and one at its root (the parts above the item, up to the whole work). Paragraphs are summarized from their own text; every larger part is summarized from the summaries of its parts. The service compiles these files into one read-only database and is rebuilt when they change.

Ids are SCTA short ids, the part after http://scta.info/resource/: ta-l1d37q1 is http://scta.info/resource/ta-l1d37q1. Not every resource has an interpretation yet.

A record #

{
  "id": "ta-l1d37q1",
  "work_id": "aquinasscriptum",
  "section_id": "ta-l1d37q1",
  "level": "quaestio",
  "summary": "Quaestio 1 of Distinction 37 investigates how God is in things, ...",
  "claims": ["God is essentially and immediately present in every creature as ..."],
  "concepts": ["divine omnipresence", "esse", "grace"],
  "generation_method": "descendant_summaries",
  "input_ids": ["ta-l1d37q1-Dd1e92", "ta-l1d37q1-Dd1e135", "ta-l1d37q1-Dd1e194"],
  "context_ids": null,
  "model": "claude-sonnet-5",
  "prompt_version": "interpretation-v1",
  "generated_at": "2026-09-20T00:00:00Z",
  "source_commit": "dd5019992945e2aa8299eb8013676a0cb34337d0"
}
  • level: the kind of part (paragraph, quaestio, distinctio, work, ...), as the text names it.
  • generation_method: source_text_with_context for a paragraph (summarized from its text; context_ids are the other parts it was read with, such as its section's heading); descendant_summaries for a larger part (summarized from the summaries of input_ids, its parts).
  • concepts are free keywords, not yet a controlled vocabulary.
  • source_commit: the commit of the text repository the summary was made from.

Routes #

All GET unless noted; every response is JSON.

Route Returns
/interpretations/{id} The record for one id (404 if there is none).
/interpretations/{id}?field=summary One field only: {"id", "field", "value"}. Any field of the record.
/interpretations/batch?ids=a,b,c {"data": [records], "missing": [ids]}. Also POST with {"ids": [...]}.
/search/concept?concept=grace {"data": [ids]} of the records tagged with that concept (case-insensitive, exact).
/search/text?q=omnipresence {"data": [ids]} of the records whose summary or claims contain the string.
/health {"status": "ok", "interpretations": <count>}.

The two searches take full=true to return the records instead of the ids.

curl 'https://scta.info/api/interpretation/v1/interpretations/ta-l1d37q1?field=summary'
curl 'https://scta.info/api/interpretation/v1/search/concept?concept=divine%20omnipresence'

Interactive documentation (OpenAPI): https://scta.info/api/interpretation/v1/docs.

For language models (MCP) #

The same operations are available as an MCP server (get_interpretation, get_interpretations_batch, search_by_concept, search_text), so that an assistant such as Claude can use them as tools. For now it runs locally over stdio, from a checkout of this repository (mcp_server.py), not as a hosted service.