TARGET Checklist MCP

v0.2.0
com.blackswancausallabs/target-mcp Checked 3 days ago Published 3 months ago

Score how completely a target-trial-emulation study reports what the TARGET guideline requires.

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

get_checklist

Return the encoded TARGET checklist spec: 39 scoreable leaf subitems (grouped into the 21 published items) with intent, assessor notes, signal terms, pairing links, and applicability rules. Pass a version id to pin; omit for the current default. OPTIONAL in the review flow — introspection only. assess_manuscript already embeds the full per-leaf rubric (intents + verdict boundaries) in the prompt it returns, so calling both get_checklist and assess_manuscript for the same review duplicates the rubric payload. Use this when you want to inspect the spec on its o…

ParameterTypeDescription
versionstring

parse_manuscript

PRIMARY entry point: parse a manuscript into a SectionMap with character-offset, source-tagged section spans. PASS `citation=`: the manuscript's full bibliographic reference in APA style (authors, year, title, journal, volume(issue), pages, DOI). It is carried into the assessment and displayed on every rendered checklist so the assessed publication is unambiguous — without it, renders can only show the short manuscript_id. You have the paper in hand; format the reference from its title page. `document` is EITHER the raw manuscript text OR a file path — but…

ParameterTypeDescription
document *string
citationstring
manuscript_idstring
section_hints
supplement_statusstring
supplements

parse_pmcid

CONVENIENCE / BATCH entry point: retrieve an open-access article from Europe PMC by PMCID and parse it. Reach for this in the corpus/batch case (no file in hand) or to auto-fetch an open-access paper's supplement; for a single manuscript you were given, use parse_manuscript instead. Fetches JATS main text plus (if available) PMC-hosted supplementary files, merged into one source-tagged SectionMap. supplement_status is 'retrieved' when a supplement was obtained, else 'not_retrieved' (a supplement may still exist on the publisher site; absence of retrieval is not proo…

ParameterTypeDescription
pmcid *string
citationstring
include_supplementsboolean

assess_manuscript

Assess a manuscript against all applicable TARGET leaves in one batched pass. `document` is a path, raw text, or a text_sha256 returned by parse_manuscript. mode='scaffold' (default) is the path for reviewing a publication: you are the LLM in the loop, so the server returns the exact assessment prompt, the tool schema, and a prompt hash for YOU to execute — read the manuscript against the rubric, produce the verdicts, then call submit_scaffold_verdicts to validate them and get the stamped result (evidence resolved to spans, provenance, ready for render_checkl…

ParameterTypeDescription
document *string
manuscript_idstring
modestring
modelstring
spec_versionstring

submit_scaffold_verdicts

Scaffold-mode completion: validate verdicts produced by the calling agent (leaf coverage, verdict vocabulary, mandatory verbatim evidence quotes resolved to spans) and return the stamped assessment TOGETHER WITH the finished, rendered deliverable. `items` is the verdict array from the forced tool call — one object per leaf with `id`, `verdict`, `confidence`, `rationale`, and (for reported/partial) `evidence_quotes`. THE ARTIFACT OF RECORD is in the returned `report` (by default the HTML form), carrying a provenance `stamp` bound to the ingested text and prompt.…

ParameterTypeDescription
items *array
text_sha256 *string
documentstring
modelstring
renderboolean
report_formats
spec_versionstring

render_checklist

Render a finalized assessment as the completed TARGET checklist form: the 21 published items (39 leaf rows, in checklist order) with the published item wording and a Location-reported column derived from the resolved evidence spans. The default enriched view adds, per leaf, the instrument's verdict and the verbatim evidence quote that justifies the location; view='official' strips to the published form's columns (Item / Checklist item / Location reported). Returns structured rows, a completeness tally, and a ready-to-display Markdown table. Pass either a full `asses…

ParameterTypeDescription
assessment
manuscript_idstring
viewstring

render_checklist_docx

Write the completed TARGET checklist to a Word (.docx) file and return it. Same content as render_checklist (published item wording + a Location-reported column from the resolved evidence spans; enriched view adds verdict and evidence), serialized as a submission-ready landscape table, one per manuscript section. Pass a full `assessment` object or the `manuscript_id` of one assessed this session. view='official' strips to the published form's three columns. RETRIEVING THE FILE: the return carries the document bytes as base64 in `content_base64` (with `content_t…

ParameterTypeDescription
assessment
logoboolean
manuscript_idstring
pathstring
viewstring

render_checklist_html

Render the completed TARGET checklist as a self-contained HTML page — same content as render_checklist, styled to the Black Swan Causal Labs identity (canvas ground, one aligned table, verdict pills), viewable in any browser on any host. Returns the HTML string in `html` (show it inline or publish it as an artifact) and the same bytes as base64 in `content_base64` (decode and save as an .html file). Carries the provenance `stamp`. Pass a full `assessment` object or the `manuscript_id` of one assessed this session; view='official' strips to the published form's thr…

ParameterTypeDescription
assessment
manuscript_idstring
viewstring

aggregate_corpus

Roll up many assessments into per-item completeness rates plus coverage denominators (supplement-retrieval status, full-text availability, evidence- resolution rate). Pass an array of assessment objects as `assessments`, or use_session=true to aggregate every assessment produced this session. The completeness rates are only as valid as the sample and are not yet gold-standard calibrated.

ParameterTypeDescription
assessments
use_sessionboolean

build_coding_sheet

Emit blank per-paper coding sheets for human gold-standard coding: one row per applicable leaf with its intent and verdict boundaries and empty verdict/evidence/note fields. blind=true (default) withholds the instrument's verdict so coders are not anchored — use blind coding for the primary reference standard. Pass `assessments` or use_session=true.

ParameterTypeDescription
assessments
blindboolean
use_sessionboolean

validate_against_gold

Compute per-leaf agreement between instrument assessments and human gold-standard codings: raw agreement, Cohen's kappa, Gwet's AC1, and binary (reported-vs-rest) sensitivity/specificity with the human coding as the reference standard, plus a span-keyed disagreement list for adjudication. Agreement is reported PER LEAF; the pooled figure is orientation only. Both arguments are arrays of assessment/coding objects sharing manuscript ids and spec version.

ParameterTypeDescription
human_codings *array
instrument *array