gnomad-genetics-mcp-server: list gene variants
gnomad_list_gene_variantsList every gnomAD variant in a gene, transcript, or region with allele frequencies and predicted consequences, optionally filtered to one consequence class (lof, missense, synonymous, other) and/or a maximum allele frequency. The full result is staged on a DataCanvas table named gene_variants and an inline preview is returned alongside canvas_id and table_name — run gnomad_dataframe_query against them to rank by AF, count by consequence, or group across the complete set rather than the preview. When the canvas is disabled (CANVAS_PROVIDER_TYPE != duckdb) the tool returns a capped inline preview with spilled=false and canvas_id empty; the SQL path is then unavailable. Supply exactly one of gene, transcript_id, or region. Echoes the effective dataset and build. Data source: gnomAD (Broad Institute) — https://gnomad.broadinstitute.org/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gene | No | Gene — HGNC symbol (e.g. PCSK9) or Ensembl gene ID (e.g. ENSG00000169174). Obtain a stable ID from ensembl_lookup_gene. | |
| max_af | No | Keep only variants with allele frequency ≤ this value (0–1). Variants with null AF are always kept. | |
| region | No | Genomic region chrom-start-stop (1-based inclusive). Mutually exclusive with gene and transcript_id. | |
| dataset | No | gnomAD dataset: gnomad_r4 (GRCh38, default), gnomad_r3 (GRCh38), gnomad_r2_1 (GRCh37), exac (GRCh37). Echoed in output. | |
| canvas_id | No | Optional canvas ID from a prior call, to reuse the same canvas. Reusing it REPLACES (overwrites) the gene_variants table with this call's results — it does not append. Omit to start a fresh canvas; the response returns a new one. | |
| transcript_id | No | Ensembl transcript ID (e.g. ENST00000302118). Mutually exclusive with gene and region. | |
| reference_genome | No | Reference build. Derived from dataset when omitted (v4/v3=GRCh38, v2.1/ExAC=GRCh37). If supplied it must match the dataset, or the call is rejected. Keep aligned with ensembl coordinates. | |
| consequence_class | No | Keep only variants in this consequence class. Omit to return all classes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| total | No | Total matching variants (staged row count when spilled, else preview length). | |
| notice | No | Guidance when no variants matched, or when the canvas is disabled and the preview is capped. | |
| dataset | No | Effective gnomAD dataset. | |
| preview | No | Inline preview rows — the immediate answer. | |
| spilled | No | True when the full result was staged on the canvas beyond the preview. | |
| canvas_id | No | Canvas ID — pass to gnomad_dataframe_query. Empty string when canvas is disabled. | |
| table_name | No | Canvas table holding the full set (gene_variants); empty when not spilled. | |
| reference_genome | No | Effective reference build. |