Skip to main content
Glama

Batch Fetch Variant Annotations

myvariant.variants.batch
Read-onlyIdempotent

Retrieve annotations for up to 1000 genetic variants in a single request by providing a comma-separated list of dbSNP rsIDs or HGVS variant IDs. Returns ClinVar significance, CADD scores, gnomAD allele frequencies, and functional consequence predictions for each variant in one call. Ideal for annotating VCF files, enriching GWAS hit lists, building polygenic risk score pipelines, or bulk pharmacogenomics analysis. Variants not found in the database are marked with found=false. Mix rsIDs from different chromosomes freely — no grouping by position required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesComma-separated list of variant identifiers to retrieve in a single request. Accepts dbSNP rsIDs (e.g. "rs58991260,rs671,rs1801133") or HGVS genomic IDs. Mix of rsIDs is supported. Maximum 1000 IDs per call. Returns annotation for each variant including ClinVar significance, CADD score, gnomAD allele frequencies, and functional consequences.
fieldsNoComma-separated annotation fields to return for each variant. Default: dbsnp,clinvar,cadd,gnomad_exome,gnomad_genome,snpeff,vcf,chrom,hg19. Limit fields for large batches to reduce response size.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully covered. The description adds genuine behavioral value beyond annotations: the 'Variants not found in the database are marked with found=false' disclosure tells agents how missing data is signaled, and the chromosome-mixing note clarifies no position grouping is required. No contradictions with annotations.

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

Conciseness5/5

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

Four dense sentences, each earning its place: purpose and inputs, return payload, use cases, then behavioral notes. The main action is front-loaded in the first sentence, and no word is wasted. It is compact yet information-rich.

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

Completeness4/5

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

For a batch tool with a 1000-ID limit, two accepted ID formats, and field selection, the description covers inputs, outputs, error signaling (found=false), and flexibility constraints. An output schema exists so return-value details are covered elsewhere. The only gap is explicit routing to or away from sibling tools (single-variant lookup versus this batch endpoint), which is implied by the title but never stated.

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

Parameters3/5

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

Schema description coverage is 100%, and both the ids and fields parameters already carry rich descriptions including accepted ID formats, the 1000-ID maximum, default field list, and response-size guidance. The tool description reinforces this same information (formats, max limit, return fields) without adding new parameter semantics, so the baseline 3 applies.

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?

The description opens with a specific verb and resource: 'Retrieve annotations for up to 1000 genetic variants in a single request.' It clearly distinguishes this batch tool from the myvariant.variants.search, .info, and .metadata siblings by its batch scope, ID-based input, and 1000-variant limit. An agent can tell exactly what this tool does and how it differs from the single-query variants.

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?

The description gives concrete use cases ('annotating VCF files, enriching GWAS hit lists, building polygenic risk score pipelines, or bulk pharmacogenomics analysis') and the 'Mix rsIDs from different chromosomes freely — no grouping by position required' line removes a common preprocessing concern. It does not explicitly name sibling alternatives or state when NOT to use it (e.g., for a single variant call), which keeps it from a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.