Spiral gives your agent every tool with one account. Browse the tools →

Codex · Health

How to Use dbSNP SNP details in Codex

Returns a full RefSNP record with sequence placements, gene and protein annotations, study frequencies, ClinVar assertions, and publication references where available. Use it to investigate an rsID beyond its population frequency.

Prompts to try with dbSNP SNP details in Codex

Copy an example into Codex, or ask in your own words.

Use dbSNP SNP details for rs334 and rs6025, then add their returned alleles, gene annotations, and sequence placements to this project's research fixtures.

dbSNP SNP detailsCodex
Try asking
  • Use dbSNP SNP details for rs429358 and rs7412 to check whether our parser preserves separate transcript and protein annotations.

  • Use dbSNP SNP details for rs1801133 and compare its study frequency annotations with the rows produced by our annotation script.

  • Use dbSNP SNP details to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from dbSNP SNP details and tell me what changed since last week.

How to set up dbSNP SNP details in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run dbSNP SNP details

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "snp-ncbi-nlm-nih-gov/variants/get",
        "input": {
          "rsid": "<rsid>"
        }
      }'

Then paste one of the prompts above: Codex finds dbSNP SNP details on Spiral, shows the price and runs it.

dbSNP SNP details providers and prices

Spiral runs dbSNP SNP details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
dbSNP (NCBI) · Get
snp-ncbi-nlm-nih-gov/variants/get

What can you do with dbSNP SNP details in Codex?

Build research tables that join public rsIDs to dbSNP alleles and frequency evidence. A coding agent can add those lookups to an annotation script and check its output against NCBI records.

Add frequency context to a research shortlist

Look up public rsIDs from a paper and add the available study or population frequencies to a comparison table.

Screen a public SNP panel by frequency

Apply a research frequency threshold to a supplied list of rsIDs, keeping each allele tied to its reported study or population.

Prepare a genetics teaching exercise

Use public rsIDs such as rs334 and rs4988235 to build exercises comparing alleles and their reported frequencies.

Check a frequency annotation pipeline

Compare a pipeline's frequency output with NCBI records for a fixed set of public rsIDs, checking allele identity and study or population labels.

Review changes between retrieved records

Refresh a public research panel periodically and report changes in its returned allele frequencies or counts.

Prepare a manuscript frequency table

Create an allele frequency table for specified rsIDs, separating results by study or population so readers can compare the evidence.

Investigate sequence consequences

Inspect an rsID's genomic, transcript, and protein placements alongside available ClinVar assertions and publication references.

Questions about dbSNP SNP details in Codex

Can Codex use dbSNP SNP details?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run dbSNP SNP details like any built-in tool.

How much does dbSNP SNP details cost in Codex?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Alexandria account to use dbSNP SNP details in Codex?

No. Spiral runs dbSNP SNP details on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up dbSNP SNP details in Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while dbSNP SNP details runs?

dbSNP SNP details runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

Does dbSNP cover species other than humans?

The current dbSNP resource covers human genetic changes, including single nucleotide changes, microsatellites, and small insertions and deletions. Its scope extends beyond single nucleotide SNPs.

How many populations does ALFA cover?

ALFA assigns sample ancestries to 12 population categories, including European, Hispanic, African, and Asian categories. These are study ancestry categories rather than country-by-country coverage.

How often does dbSNP publish updated records?

NCBI describes new and updated RefSNP records as becoming public with dbSNP builds about once per quarter. That is a publication cadence, not a promise that each rsID changes every quarter.

Does ALFA include every submitted genetic site?

ALFA excludes sites and subjects with call rates below 95%. Its frequency data therefore reflects quality-filtered input rather than every submitted observation.

Can I retrieve an individual's genotype from ALFA?

ALFA provides pooled population frequency data. Individual-level genotypes and associated data require authorized access through dbGaP.

Get started

Start using dbSNP SNP details in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options