lookup_cpic

read-onlyidempotent

Look up CPIC gene-drug reference tables (global reference data).

CPIC (Clinical Pharmacogenetics Implementation Consortium) publishes public gene-drug guidance tables and genotype/phenotype mappings. This tool mirrors reference knowledge — it is not specific to any sample and does not make prescribing recommendations. To connect it to authorized data, first retrieve the relevant genotype with query_variants, then look up the matching gene/drug record here for educational, research, or wellness context.

Parameters

diplotype
string | null
optional

Diplotype filter (e.g. "*1/*2"). Valid for "diplotypes".

drug
string | null
optional

Drug name filter. Valid for "recommendations" and "pairs".

gene
string | null
optional

Gene symbol filter (e.g. "CYP2C19"). Valid for every kind.

kind
string
optional, default "recommendations"

Which CPIC table to read. "recommendations" (default) — public gene/drug guidance tables (filter by gene and/or drug). "diplotypes" — diplotype → phenotype / activity-score mappings (filter by gene and/or diplotype). "pairs" — curated gene–drug pairs with their CPIC evidence level (filter by gene, drug, and/or level).

One of: "recommendations", "diplotypes", "pairs"

level
string | null
optional

CPIC evidence level filter (e.g. "A"). Valid for "pairs".

limit
integer
optional, default 20

Page size (default 20, capped at 50).

offset
integer
optional, default 0

Page offset for paging through total_count.

order
string | null
optional

Sort direction, "asc" or "desc" (default "desc").

sort
string | null
optional

Column to sort by (free string; the sortable columns differ per kind, e.g. "gene", "drug", "level"). Paired with order.

Response

items
object[]
required
limit
integer
required
offset
integer
required
total_count
integer
required

Matches across all pages, not only this one.