AI4L Library
v0.1.12Local Markdown library of the papers an evidence review cites: metadata, abstract and full text
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
library_add
Download and store one record — a paper (pmid:, doi:), a drug label (dailymed:<set ID>) or a trial record (nct:<8 digits>) — and return its status JSON. A paper gets its record, abstract and correction notices from PubMed (Crossref for a DOI PubMed does not index), then the full text from the configured sources; a label or trial record is stored as a full text. A stored full text is returned without any download; an abstract-level record retries only sources that failed transiently; a record older than 30 days gets its notices re-read.
| Parameter | Type | Description |
|---|---|---|
id * | string | ID as "type:value": a paper "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (a paper PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "dailymed… |
library_status
Read-only status of the library entry for one paper ID: the same status JSON as library_add, or level "missing" when there is no entry. Never fetches.
| Parameter | Type | Description |
|---|---|---|
id * | string | ID as "type:value": a paper "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (a paper PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "dailymed… |
library_read
One piece of a stored document's Markdown, never the whole. No section/query: the outline (headings with word counts; full text or abstract only). section: that heading's own text (case-insensitive substring; a repeated heading as "Participants [3/12]"), capped at max_chars, its subsections listed. query: passages holding every term, each a window of at most 1000 chars with its section, best first, at most max_hits; partial: true with missing_terms when no passage holds them all. section and query together: inside that section. A missing paper is added first (added: true).
| Parameter | Type | Description |
|---|---|---|
id * | string | ID as "type:value": a paper "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (a paper PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "dailymed… |
max_chars | integer | Cap for section text (default 6000); passages are capped at 1000 chars each regardless. |
max_hits | integer | Cap for query passages (default 5). |
query | string | Two or three distinctive terms the paper itself would use — a measure and a unit, an outcome and a group, a compound name — not the claim. Passages holding all of them are returned, else the best… |
section | string | Heading from the outline (case-insensitive substring). |
library_verify
Does one source state one finding of a review? claim: the finding as a complete statement (subject, intervention, outcome, number), without citations or the review's framing, and only what this source reports. id: one source the review cites for it — paper, drug label (dailymed:…) or trial record (nct:…); added first when missing. The server reads the stored text and asks a decision model; nothing enters your context. verdict: pass (score is the probability) | fail (the full text does not state it; or only the title is stored — reason says so) | unverifiable (only the abstract is store…
| Parameter | Type | Description |
|---|---|---|
claim * | string | One finding, verbatim from the review, without its citations. |
id * | string | ID as "type:value": a paper "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (a paper PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "dailymed… |
library_info
The whole library as JSON: library directory and host; entry count and size on disk; per type (pmid, doi, dailymed, nct) the entries by level (full_text, abstract, title) and retractions; counts of retracted and not-citable entries and of errata, expressions of concern and updates; the retrieval sources in run order and which are off (tiers); the download ladder with the browsers and the Playwright version they must run (download); the configuration and where each value came from — environment, .env or default, never the value (config); the decision model behind library_verify and whether it…
| Parameter | Type | Description |
|---|---|---|
ids | boolean | Also list every entry ID (type:value). |
get_version
Get the running ai4l-library MCP server's package name and version, and the resolved library directory. Useful to confirm which build is loaded.