Skip to main content
Glama

Generate Precision Medicine Variant Report

generate_variant_clinical_report
Read-onlyIdempotent

Cross-reference an HGVS variant across up to seven biomedical databases to generate a structured research report that separates source classifications from computational observations.

Instructions

Generate a multi-source variant interpretation report.

Cross-references evidence from up to seven upstream databases for a single HGVS variant into one structured research report. It preserves source classifications and computational observations separately; it does not assign an independent clinical tier or establish ACMG criteria.

  1. Ensembl VEP — functional consequence, VEP's protein-level HGVS (hgvsp), SIFT and PolyPhen predictions

  2. ClinVar — clinical pathogenicity classifications and review status

  3. gnomAD v4 — population allele frequencies (gnomAD v4, ~807k individuals)

  4. AlphaMissense — deep-learning missense pathogenicity (Cheng et al. 2023)

  5. Open Targets — disease-gene evidence scores

  6. DisGeNET — curated gene-disease association scores

  7. ChEMBL — approved drugs acting on the gene product

The report includes unassessed ACMG-related computational signals, sequence consequences, and gene-level drug context. It does not compute variant-specific three-dimensional structural impact.

gnomAD is queried only when the input pins one genomic allele: a versioned RefSeq coding (NM_…:c.) or genomic (NC_…:g.) expression that Ensembl VEP maps to a single GRCh38 single-nucleotide change or simple insertion/deletion, or a chrom-pos-ref-alt variant ID. unassessed_evidence.population_frequency gives the looked-up variant ID, the per-cohort (exome, genome) counts and an explicit lookup_status; a variant without a gnomAD record is never reported as allele frequency 0. Allele frequency and predictor scores (AlphaMissense, SIFT, PolyPhen) are returned as observations: BA1, BS1, PM2, PP3 and BP4 are NOT_ASSESSED. CADD is not retrieved: cadd_phred is always null. functional_consequence.hgvsp is VEP's protein-level HGVS expression for the canonical Ensembl transcript, such as ENSP00000350283.3:p.Cys61Gly (p.Thr125= for a synonymous change). It is empty when VEP reports none, as for an intronic or splice-site change.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "params": "<params>"
    },
    "name": "generate_variant_clinical_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.9
    • changedInput schema / properties / params / properties / hgvs / description
      Previous value: -"HGVS expression — gene-relative (preferred): 'BRCA1:c.181T>G'; or RefSeq-based: 'NM_007294.3:c.181T>G'."New value: +"HGVS expression. Gene-relative 'BRCA1:c.181T>G' is candidate discovery only; a versioned transcript such as 'NM_007294.4:c.181T>G' permits exact transcript-text matching, not an independent clinical allele validation."
  2. Changed3 schema fields changedv1.5.2
    • addedInput schema / properties / params / properties / include_literature_evidence
      Added value: +{
      +  "default": false,
      +  "description": "Opt in to source-attributed PDBe/IUCr text-mined evidence at an explicit UniProt coordinate.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / params / properties / literature_uniprot_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^(?:[OPQ][0-9][A-Z0-9]{3}[0-9]|[A-NR-Z][0-9](?:[A-Z][A-Z0-9]{2}[0-9]){1,2})$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "UniProt accession of the explicit residue query; not inferred from HGVS."
      +}
    • addedInput schema / properties / params / properties / literature_uniprot_residue
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "One-based UniProt reference residue; not a PDB or model-local index."
      +}
  3. First observedv1.1.8

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say read-only/open-world/idempotent; the description adds substantial behavior: allele frequency and predictor scores are observations with BA1/BS1/PM2/PP3/BP4 marked NOT_ASSESSED, CADD is never retrieved and `cadd_phred` is always null, a variant without a gnomAD record is never reported as AF 0, and `hgvsp` semantics including empty cases for intronic/splice-site changes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the one-line purpose before the numbered source list, and the caveats are grouped into coherent paragraphs. It is long, and some of the return-field detail (NOT_ASSESSED flag names, hgvsp examples) could be trimmed given an output schema exists, but each paragraph carries non-redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, multi-source aggregation tool with a nested params object and an output schema, the definition covers what is aggregated, what is deliberately excluded (ACMG tiering, structural impact, CADD), and the precise conditions under which optional sections appear — enough for an agent to call it correctly without further inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though the reported coverage is low, the description supplies the decisive semantic link between the `hgvs` format and whether population frequency is queried at all, plus the distinction that the UniProt accession/residue are an explicit residue query 'not inferred from HGVS' and that drug context is gene-level. It does not restate the individual booleans' defaults, leaving that to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and artifact ('Generate a multi-source variant interpretation report') for a single HGVS variant, enumerates the seven upstream sources, and explicitly bounds scope against the sibling `classify_variant_acmg` by declaring it does not assign an independent clinical tier or establish ACMG criteria.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear conditional guidance: gnomAD is queried only when the input pins a single genomic allele (versioned NM_/NC_ mapped to one GRCh38 change) or a chrom-pos-ref-alt ID, and literature evidence is an explicit opt-in at a UniProt coordinate. It implies but never directly names the alternative tool an agent should pick when it wants ACMG tiering, so it stops short of a full when/when-not routing statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.