HLA-Verify
v1.0.1HLA nomenclature and match checks against a pinned IPD-IMGT/HLA release.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
verify_text
Scan HLA typing report text, or model output about HLA, for allele-shaped tokens and classify each one: valid / legacy spelling such as A*0201 or Cw*0702 (valid, with modern form and flag deprecated_name) / G-P group / deleted (with successor) / hallucinated (an invented name, never passed as real) / NMDP MAC code (seen, not expanded) / KIR name (out of scope, not checked); a valid token with fewer than four fields carries resolution, what that field count does and does not distinguish. Nomenclature checking against a pinned IPD-IMGT/HLA release, not interpretation of a case. Use on any AI-gen…
| Parameter | Type | Description |
|---|---|---|
text * | string | HLA typing report text, or model output about HLA typing, to scan for allele names. Send the HLA content only: strip patient names, medical record numbers, dates of birth, accession and case identifie… |
normalize_allele
Normalize one reported HLA allele name (any era or reporting shorthand: legacy A*0101, Cw*0702 or Cw*07:02, G/P group names, A*02:XX, two-field A*02:01g, optional HLA- prefix) to current 2-field form, with G group, P group, serologic equivalent, and flags. NMDP MAC codes (A*02:AB) are recognised but not expanded (flag mac_code). A name that does not exist comes back UNRESOLVABLE (flag nonexistent_allele), never corrected to a nearby real one.
| Parameter | Type | Description |
|---|---|---|
name * | string | One reported HLA allele name, any nomenclature era. An allele string only, never a patient name, medical record number or other identifier. |
allele_info
Look up one name in the pinned release and return what it is: assigned (G/P group, first release, confirmed status, WMDA serology, null flag), valid_prefix (member count and sample, plus resolution: what a name with fewer than four fields does and does not distinguish), group (a G or P group name: member count and sample), or deleted (successor). Reported shorthands are accepted as /v1/normalize accepts them — legacy spellings (A*0101, Cw*0702, Cw*07:02), the XX code (A*02:XX), two-field A*02:01g, an optional HLA- prefix — and answer with the facts of the name they stand for plus resolves_…
| Parameter | Type | Description |
|---|---|---|
name * | string | An HLA allele name of any era: exact name, lower-resolution prefix, deleted name, G/P group, legacy colon-less name, XX code or lg notation. An allele string only, never a patient name, medical record… |
match_score
Count a donor-recipient HLA match by the published counting rules (R1-R6): allele arithmetic over chromosomes, not a donor recommendation. recipient/donor: {"A": ["A*01:01","A*02:01"], "B": [...], ...} (two reported alleles per locus, any nomenclature era including G/P group names such as A*02:01:01G; allele strings only, no patient identifiers). framework: 6/6, 8/8, 10/10, 12/12, or antigen. Returns count, per-locus verdicts, GvH/HvG mismatch counts, and flags; unresolvable typing yields 'potential', never a confident count.
| Parameter | Type | Description |
|---|---|---|
donor * | object | locus -> up to 4 reported allele names. Allele strings only: never patient names, medical record numbers, dates of birth, or accession or case identifiers. |
recipient * | object | locus -> up to 4 reported allele names. Allele strings only: never patient names, medical record numbers, dates of birth, or accession or case identifiers. |
framework | string |
check_typing
QC-check one HLA typing (all loci) against the pinned release: resolves every reported allele, flags unresolvable/outdated/locus-mismatched/null alleles, flags too-many/single/homozygous per locus, computes the B-leader (-21 M/T) and KIR-ligand (C1/C2/Bw4) profile, and DRB3/4/5 expected-vs-reported. Nomenclature and internal-consistency checking of the report, not clinical interpretation. typing: {"A": ["A*01:01", "A*02:01"], "B": [...], "DRB1": [...], ...} (any nomenclature era, G/P group names, A*02:XX and two-field A*02:01g included; NMDP MAC codes are flagged, not expanded; allele strings…
| Parameter | Type | Description |
|---|---|---|
typing * | object | locus -> up to 4 reported allele names. Allele strings only: never patient names, medical record numbers, dates of birth, or accession or case identifiers. |
donor_compat
Donor/recipient immunogenetic compatibility under two published rule sets: HLA-B leader match (-21 M/T, Petersdorf 2020) for a single HLA-B mismatch, and KIR ligand (C1/C2/Bw4) class comparison, computed over each side's full typing QC. Rule checking against published frameworks; it does not rank or recommend a donor. recipient/donor: {"A": [...], "B": [...], "C": [...], "DRB1": [...], ...} (allele strings only, no patient identifiers). Decision support only; not a medical device.
| Parameter | Type | Description |
|---|---|---|
donor * | object | locus -> up to 4 reported allele names. Allele strings only: never patient names, medical record numbers, dates of birth, or accession or case identifiers. |
recipient * | object | locus -> up to 4 reported allele names. Allele strings only: never patient names, medical record numbers, dates of birth, or accession or case identifiers. |
validate_gl_string
Validate and normalize a GL String (Genotype List, ^ | + ~ / grammar): resolves every allele token, flags outdated/unresolvable names and structural problems (mixed loci within a slash-list, a repeated locus within a haplotype or across ^ blocks, more than two haplotypes, differing loci across a genotype or genotype list, empty elements), and returns the normalized string. Grammar and nomenclature checking only; send allele names, not patient identifiers.
| Parameter | Type | Description |
|---|---|---|
gl * | string | GL String to validate and normalize. Allele names and GL grammar only, never patient identifiers. |
pgx_lookup
Which drugs an HLA typing carries a published pharmacogenomic association for. Looks each allele up in hla-pgx-open (CPIC guidelines + PharmGKB clinical annotations, CC BY-SA, snapshot date in every answer) after normalizing the name first, so any era or shorthand works (A*3101, B*5701, HLA-B*15:02:01G) and every conversion leaves a flag. Returns per allele the current name, the two-field form, the flags and the associations (source, drug, evidence level, CPIC testing recommendation, implication, recommendation, guideline or annotation URL, PMIDs), plus summary.actionable: the CPIC level-A, al…
| Parameter | Type | Description |
|---|---|---|
alleles | array | A flat list of reported allele names instead of a typing. Send exactly one of typing or alleles. |
typing | object | locus -> up to 4 reported allele names. Allele strings only: never patient names, medical record numbers, dates of birth, or accession or case identifiers. |
pgx_pair
For a donor-recipient pair, which genome carries each actionable HLA-drug association. Screens both typings as pgx_lookup does and marks every CPIC level-A, allele-positive association in_recipient, in_donor, discordant (present in exactly one) and whose_hla (both / recipient_only / donor_only). Guideline lookup over published CPIC and PharmGKB associations, keyed by two-field HLA allele. Decision support only; not a medical device. After an allogeneic transplant the recipient's blood carries the donor's genome, and which genome should drive an HLA-mediated drug alert is an open question (NCT0…
| Parameter | Type | Description |
|---|---|---|
donor * | object | Donor typing: {"typing": {...}} or {"alleles": [...]}. |
recipient * | object | Recipient typing: {"typing": {...}} or {"alleles": [...]}. |
translate_names
Translate HLA allele names from one IPD-IMGT/HLA release to another, through each allele's HLA ID, using the official Allelelist_history.txt (every release since 1.05.0). Give the names as they were written in release `from` (omit `from` to accept a name used in any release); `to` defaults to the current release. Each row says unchanged, renamed (to_name), deleted (reason, successor and its name in `to`), not_yet_named, not_in_from_release, ambiguous (each allele listed) or unknown. Use it when data typed under an older release has to be compared with or reported under a newer one. Lab shortha…
| Parameter | Type | Description |
|---|---|---|
names * | array | Allele names exactly as written in the `from` release. |
from | string | An IPD-IMGT/HLA release, like "3.40.0" (1.05.0 to the current one). |
to | string | An IPD-IMGT/HLA release, like "3.40.0" (1.05.0 to the current one). |
release_diff
Which HLA allele names were added, removed (with the deletion reason and successor) and renamed between two IPD-IMGT/HLA releases, optionally for one locus. Counts are complete; each list is cut at `limit` and `truncated` says so. Use it to see what a release update changes before re-running or re-reporting typings.
| Parameter | Type | Description |
|---|---|---|
from * | string | An IPD-IMGT/HLA release, like "3.40.0" (1.05.0 to the current one). |
to * | string | An IPD-IMGT/HLA release, like "3.40.0" (1.05.0 to the current one). |
limit | integer | Maximum items per list (default 500). |
locus | string | One locus, like "A" or "DRB1". |
allele_history
Every name the allele behind an HLA name has had, release by release since IPD-IMGT/HLA 1.05.0: its HLA ID, current name, the first and last release that used this name, the full timeline of names, and the deletion note if the name was retired. `as_of` adds what it was called in that release. Use it to answer when a name appeared, changed or disappeared; a retired name is answered with its deletion note, and a name that never existed is refused with an error result, not guessed at. An allele string only, no patient identifiers.
| Parameter | Type | Description |
|---|---|---|
name * | string | An allele name as written in any release, like "A*0101". |
as_of | string | An IPD-IMGT/HLA release, like "3.40.0" (1.05.0 to the current one). |
beta_signup
Put a user on the beta notification list: one email when anything about early access changes. Ask before calling: it records the address they give you. Re-signing the same address is safe (status already_recorded). Someone who needs a higher rate limit today should get a free key with research_access: it is issued instantly.
| Parameter | Type | Description |
|---|---|---|
email * | string | The user's email address. |
org | string | Lab, company or institution (optional). |
source | string | Where the signup came from, e.g. mcp (optional). |
use_case | string | What they would use the API for (optional). No patient details. |
research_access
Get the user a free HLA-Verify API key, instantly. HLA-Verify is free for anyone: the key comes back in this result (status issued, field key) with 1,000 calls/day, 250 typings per call and 60 requests/minute; the user sends it as the X-API-Key header (or connects this MCP server with it). Ask before calling: it stores the email address with the key, used for service notices only. The key is shown once: give it to the user straight away. One key per address; asking again returns already_issued and never the key (lost keys: hello@hlaverify.com). Disposable inboxes are refused. Verified labs tha…
| Parameter | Type | Description |
|---|---|---|
email * | string | The user's email address. Stored with the key; service notices only. |
expected_volume | string | Rough call or typing volume, e.g. 'about 20,000 typings a month' (optional). |
institution | string | Lab, hospital, university, registry or company (optional; required with tier lab). |
source | string | Where the request came from, e.g. mcp (optional). |
tier | string | Omit for a free key now. "lab" applies for the Lab tier instead (institution and use_case required). |
use_case | string | What the API would be used for (optional; required with tier lab, where the decision is made on it). No patient details. |
about
What this server is and is not, what to send it, benchmark evidence for why to use it, the beta state, and terms.