cal-mcp

v0.1.0
cal-mcp Checked 8 hours ago Published 1 month ago

Read-only MCP adapter for the Comprehensive Aramaic Lexicon

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cal_convert_to_code Convert Aramaic input to CAL code candidates

Convert supported Aramaic input locally without any CAL network request. Finite orthographic ambiguity is returned as ordered CAL-code candidates per word. Unsupported or unverified marks fail explicitly rather than being stripped or guessed.

ParameterTypeDescription
value *string
representation

cal_lexicon_lookup Look up a CAL lexicon entry

Look up a CAL root, headword, or full form without guessing between homographs. Supply ``lemma_key`` only to choose one of the exact CAL candidates returned by an ambiguous lookup. CAL endpoint/form parameters remain internal to this adapter.

ParameterTypeDescription
query *string
lemma_key

cal_lexicon_browse Browse one CAL lexicon prefix page

Browse one bounded CAL lexicon page without automatic pagination. One browse character follows CAL's JUMP TO workflow; two or three browse characters follow CAL's documented prefix browser. Ordered ``rows`` distinguish genuine entries from CAL arrow cross-references; ``entries`` projects only genuine entries. Cross-reference source text and target lemma keys are preserved without fetching the target. Use only a returned ``next_continuation`` for a later explicit continuation call.

ParameterTypeDescription
prefix *string
continuation
representation

cal_lexicon_citation_context Retrieve full context for one CAL lexicon citation

Retrieve one citation context selected by a typed CAL full coordinate. Use ``full_coordinate`` only from a linked citation returned by ``cal_lexicon_lookup``. The adapter submits one bounded CAL request and never follows chapter, token, comment, or source-information links automatically.

ParameterTypeDescription
full_coordinate *string

cal_gloss_field Search one CAL specialized gloss field

Search one CAL indexed specialized gloss field. The readable enum is mapped to CAL's private current field selector. It does not expand or traverse other fields. Matches have the same shape as ``cal_gloss_search``, including ``cross_reference_from``. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
field *

cal_text_catalogue Browse one CAL text catalogue level

List one explicit CAL text catalogue level without recursive traversal. Omit ``category_id`` for the root catalogue or pass one CAL category identifier returned by a prior call or by ``cal_text_search`` (decimal, or a CPA node such as ``5500056125a``). One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
category_id

cal_text_page Retrieve one CAL text page

Retrieve one normal CAL text page with line/token coordinate metadata. Public page numbers are one-based. CAL's unbounded ``show all`` navigation is not exposed; moving to another page requires another explicit tool call. Pass ``subtext_id`` exactly as CAL returned it, including leading zeroes and an optional single lowercase suffix (for example CPA ``01001a``). Known current CPA direct files reject a subtext and known CPA subdivided files require one. Decimal subtext selectors can be prefix-matched by CAL, so a shortened value can return several subtexts under the fir…

ParameterTypeDescription
file_id *string
pageinteger
subtext_id

cal_text_information Retrieve CAL text information metadata

Retrieve CAL's explicit Text Information metadata for one text or subtext. Metadata is returned as CAL's ordered free-form text rather than inferred bibliographic fields. Optional ``subtext_id`` accepts CAL's current digits-plus-optional-single-lowercase- suffix grammar and is preserved exactly. One explicit call submits at most one new logical CAL request and follows no metadata links. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
file_id *string
subtext_id

cal_text_line_comments Retrieve CAL line comments and translations

Retrieve CAL's citations/comments/translations for one explicit line coordinate. Pass a ``coordinate`` already returned by ``cal_text_page``. Arbitrary URLs are not accepted, returned lexicon-entry links are not followed, and one explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
coordinate *string

cal_token_analysis Analyze one CAL text token

Return every CAL lexical analysis for one explicit text coordinate/token index. ``coordinate`` is CAL's opaque machine coordinate and ``word_index`` is zero-based, matching the token metadata returned by ``cal_text_page``. Most current coordinates are decimal; CPA can embed one lowercase subtext suffix between decimal segments, current Mandaic 74421/col embeds the literal col selector in its returned coordinate, and direct Mandaic files 74425 and 74429 expose their own evidence-backed letter forms. CAL-MCP preserves those returned handles verbatim rather than decoding…

ParameterTypeDescription
coordinate *string
word_index *integer

cal_text_concordance List one CAL text concordance

Return CAL's ordered lemma-frequency index for one explicit text. ``script`` is ``semitic`` (default) or ``transliteration``. Following a lemma into KWIC requires another explicit tool call. Rows CAL itself marks "no data found" have ``cal_reports_no_data: true`` and may have a null ``lemma_key``. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
text_id *string
scriptstring

cal_kwic_texts Find CAL KWIC hits in explicit texts

Return ordered CAL KWIC hits for one lemma key in 1-8 explicit texts. Duplicate CAL hits remain duplicated and ordered; each hit's ``target_text`` is the token CAL highlights, which distinguishes two occurrences on one line. It is CAL's highlight as rendered, not verified: in some texts CAL highlights a neighbouring word or nothing (``null``); the hit's order and coordinate identify it, and ``cal_kwic_full_context`` shows the line's own tokens. ``script`` is ``roman``, ``hebrew``, or ``syriac``. Full context is never fetched automatically. One explicit call submit…

ParameterTypeDescription
lemma_key *string
text_ids *array
scriptstring

cal_kwic_dialects List CAL KWIC dialect choices

Return CAL's current ordered dialect ID/label choices for one lemma key. Dialect identifiers are read live from CAL rather than hard-coded. Use a returned ``dialect_id`` in a separate ``cal_kwic_dialect`` call.

ParameterTypeDescription
lemma_key *string

cal_kwic_dialect Find CAL KWIC hits in one dialect

Return ordered CAL KWIC hits for one lemma key and one explicit dialect. CAL reports this search per lemma form and may include related forms it groups with the requested key (for example ``nqh N`` hits for ``n)qh N``). Every hit is kept and carries CAL's ``form_lemma_key``; ``forms`` lists CAL's per-form counts, and ``total`` is their sum. In some dialects CAL lists only other forms (for example ``n)qt) N`` for ``n)qh N`` in dialect 71); ``requested_form_listed`` is then false, and none of the hits is for the requested spelling. Each hit's ``target_text`` is the token…

ParameterTypeDescription
dialect_id *string
lemma_key *string

cal_kwic_full_context Read full CAL context for one KWIC hit

Follow one returned CAL KWIC hit into its bounded full-context page. Pass the hit's ``file_id``, ``target_coordinate``, ``charset``, and optional ``subtext_id`` exactly as returned. CAL's KWIC selectors can contain ASCII letters (subtext ``AR`` with target ``23350AR201``); they are opaque and preserved exactly, and a letter-bearing target must start with the file id plus subtext id. Charset is one of ``R``, ``H``, ``S``, ``T`` or ``U``. Arbitrary URLs are not accepted and no returned links are followed. One explicit call submits at most one new logical CAL request;…

ParameterTypeDescription
charset *string
file_id *string
target_coordinate *string
subtext_id

cal_bibliography_authors Find exact CAL bibliography authors

Return CAL's ordered exact author choices for a 1-6 character prefix. Ambiguous prefixes remain explicit choices. Use a returned author value in a separate ``cal_bibliography_author`` call. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
prefix *string

cal_bibliography_author Search CAL bibliography by exact author

Return CAL bibliography records for one exact author value. Reuse an exact value returned by ``cal_bibliography_authors`` rather than guessing among prefix matches. Citation text, Unicode, and CAL record links are preserved. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
author *string

cal_bibliography_keyword Search CAL bibliography by exact text or subject tag

Return records for one exact CAL text/subject bibliography tag. ``keyword`` follows CAL's bibliography tag vocabulary; it is not fuzzy or full-text search. Returned record tags can be reused in later explicit calls. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
keyword *string

cal_bibliography_lemma Search CAL bibliography by exact lemma

Return bibliography records for one exact canonical CAL lemma key. Reuse canonical lemma keys returned by CAL-MCP where possible. Linked lemma keys and CAL tags are preserved for explicit follow-up calls. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
lemma_key *string

cal_targum_parallel Compare one biblical verse across CAL Targum sources

Return CAL's ordered MT/Targum readings for one explicit biblical verse. ``book`` is one of CAL's 36 selector labels listed in the input schema (CAL's own abbreviations, e.g. ``Gen``, ``1 Sam``, ``Psalms``; not ``Genesis``). Peshitta and Samaritan are optional upstream comparison sources and are never fabricated when CAL has no reading. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
book *string
chapter *integer
verse *integer
include_peshittaboolean
include_samaritanboolean

cal_targum_concordance Count a CAL lemma across Targum sources

Return CAL's ordered Targum-specific occurrence counts for one lemma key. A complete all-zero CAL table is preserved as a valid zero-result concordance. A row's ``section`` is set only when CAL renders an explicit section header; label rows CAL renders without applying them as a grouping are listed in ``section_labels`` with their position (``row_index``) instead. Detailed source examples remain separate explicit follow-up requests.

ParameterTypeDescription
lemma_key *string

cal_targum_concordance_examples Read one selected CAL Targum concordance KWIC text group

Follow one Targum concordance row using its explicit ordered text_ids. Use ``lemma_key`` and a row's ``text_ids`` from ``cal_targum_concordance``. Never supply arbitrary CAL URLs or combine separate returned text groups. Exactly one GET on a cache miss.

ParameterTypeDescription
lemma_key *string
text_ids *array

cal_targum_hebrew_lemmas Discover MT Hebrew lemmas for CAL Targum reflex study

Return ordered CAL MT-lemma choices for one Hebrew initial and Targum source. ``targum`` is currently ``onqelos`` or ``neofiti``. Returned MT lemma IDs are opaque CAL selector identifiers for a later explicit ``cal_targum_hebrew_reflexes`` call.

ParameterTypeDescription
initial *string
targum *string

cal_targum_hebrew_reflexes Find Targumic reflexes of one selected MT Hebrew lemma

Return CAL Aramaic lemma correspondences for one selected MT lemma. Use an opaque ID returned by ``cal_targum_hebrew_lemmas``. CAL currently supports the exposed workflow for Onqelos and Neofiti; no hidden example traversal is performed.

ParameterTypeDescription
mt_lemma_id *string
targum *string

cal_targum_reflex_examples Read one selected Onqelos or Neofiti Hebrew-reflex example page

Follow a returned reflex using exact CAL selectors, never an arbitrary URL. Use ``targum`` and ``mt_lemma_id`` from ``cal_targum_hebrew_reflexes`` and the chosen row's canonical ``lemma_key``. Exactly one GET is fetched on a cache miss; no other reflexes, chapter links or lexical entries are followed. Ordered MT/Targum text blocks are preserved, including repetitions.

ParameterTypeDescription
lemma_key *string
mt_lemma_id *string
targum *string

cal_syriac_texts Browse one CAL Syriac text category

Return one bounded CAL Syriac text-category listing. ``category`` is a CAL-MCP descriptive slug, not CAL's private numeric category value. Direct text, grouped-navigation, and catalogue results remain distinct and are never followed automatically. Use ``cal_syriac_group`` for returned GROUP selectors and the generic text tools for explicit direct-text/catalogue follow-up.

ParameterTypeDescription
category *string

cal_syriac_group Browse one returned CAL Syriac grouped-text selector

Follow one GROUP selector returned by ``cal_syriac_texts``. ``group_id`` is CAL's grouped-text selector, not a generic file or catalogue identifier. Returned child navigation remains ordered metadata and is never followed recursively. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
group_id *string

cal_syriac_missing_words List CAL Syriac headwords absent from A Syriac Lexicon

Return one CAL-curated missing-from-A-Syriac-Lexicon category. This is CAL's published comparison surface against A Syriac Lexicon, not SEDRA and not an adapter-inferred equivalence. Full CAL lexicon entries require a separate explicit lookup. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
category *

cal_syriac_peshitta_parallel Compare one biblical verse in MT and CAL Peshitta

Return CAL's MT/Peshitta comparison for one explicit biblical verse. ``book`` is one of CAL's 36 Hebrew Bible selector labels listed in the input schema (e.g. ``Gen``, ``Isaiah``); New Testament books are not part of this CAL comparison. The result preserves CAL Hebrew/Syriac text and the Peshitta source link. Invalid coordinates are a typed not-found state; previous/next verse links are never followed. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
book *string
chapter *integer
verse *integer

cal_external_citation_dialects Discover CAL dialects with external citations

Return CAL's current dialect choices for citations from non-online texts. Use one returned ``dialect_id`` in a separate ``cal_external_citation_sources`` call. It does not enumerate sources. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

cal_external_citation_sources List cited non-online CAL sources in one dialect

Return CAL source abbreviations/descriptions for one explicit dialect. ``dialect_id`` must come from ``cal_external_citation_dialects``. The returned sources have citations in CAL but no full online text; no source or citation is followed automatically. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
dialect_id *string

cal_external_citations Retrieve CAL citations for one non-online source

Return CAL's ordered lexical citations for one exact external source abbreviation. ``source_abbrev`` should come from ``cal_external_citation_sources``. Lexical-entry links are preserved as metadata but are never followed automatically, and the source is not represented as an online CAL passage. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
source_abbrev *string

cal_dictionary_collation Collate one CAL dictionary page

Return CAL's stored lemma correspondences for one dictionary page reference. ``source`` is a readable CAL-MCP dictionary identifier. ``page`` accepts CAL's documented decimal page syntax, including volume-qualified lists such as ``1:134, 2:212``. Returned lemma links are never followed automatically. One explicit call submits at most one new logical CAL request. A completed cache hit performs no new upstream I/O.

ParameterTypeDescription
page *string
source *