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

opencode · Health

How to Use Orphanet rare disease search in opencode

Returns rare disease identities, definitions, synonyms, and mappings to medical terminologies and databases. Use it to resolve a disease name or code before comparing epidemiology or gene associations.

Prompts to try with Orphanet rare disease search in opencode

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

Use Orphanet rare disease search for Pompe disease and add its preferred name, synonyms, definition, and returned terminology mappings to our project's disease reference table.

Orphanet rare disease searchopencode
Try asking
  • Use Orphanet rare disease search for alpha-mannosidosis and compare the returned name, synonyms, and codes with our project's existing terminology entry.

  • Use Orphanet rare disease search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Orphanet rare disease search and tell me what changed since last week.

  • Check Orphanet rare disease search and summarize what you find in three bullet points.

How to set up Orphanet rare disease search in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 Orphanet rare disease search

    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": "orphadata-com/rare-diseases/search",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: opencode finds Orphanet rare disease search on Spiral, shows the price and runs it.

Orphanet rare disease search providers and prices

Spiral runs Orphanet rare disease search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 5010

Results per page.

Offset0 to 10000

Results to skip.

Every API field of Orphanet (Orphadata): rare disease prevalence, codes and genes · Search is on its tool page: open its card above.

What can you do with Orphanet rare disease search in opencode?

Build a rare disease reference feature that connects Orphanet identities, epidemiology records, and gene associations. Use the returned terminology and genetic database identifiers to connect those records to the project's existing research tables.

Prepare a disease research brief

Build a Pompe disease brief with the preferred name and codes, published frequency estimates, and associated genes. Give reviewers a terminology table, an epidemiology table, and links through the returned gene identifiers.

Compare research indications

Compare Fabry disease, Pompe disease, and Gaucher disease using their resolved disease identities, available prevalence records, and gene associations. Keep different population estimates and association types visible in the comparison.

Enrich a research knowledge base

Add Orphanet identities, terminology references, epidemiology records, and gene links to a rare disease knowledge base. Use the disease codes to connect the sections of each research entry.

Draft grant background tables

Prepare background tables for a rare disease research proposal: accepted terminology, published disease frequency, and associated genes. Include the returned epidemiology references so the proposal writer can inspect the underlying publications.

Review a disease education page

Check a public education page about cystic fibrosis against Orphanet's disease name, definition, terminology mappings, frequency records, and gene associations. Produce an editorial checklist of statements that need revision or source review.

Review changes after a data release

Compare newly retrieved disease identities, epidemiology records, and gene associations with a previous research snapshot. Prepare a review queue for changed terminology, frequency estimates, and gene links after the July and December releases.

Questions about Orphanet rare disease search in opencode

Can opencode use Orphanet rare disease search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Orphanet rare disease search like any built-in tool.

How much does Orphanet rare disease search cost in opencode?

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

Do I need an Alexandria account to use Orphanet rare disease search in opencode?

No. Spiral runs Orphanet rare disease search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Orphanet rare disease search in opencode?

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

Does opencode wait while Orphanet rare disease search runs?

Orphanet rare disease search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What counts as a rare disease in Orphanet?

Orphanet's nomenclature uses the European threshold of fewer than five affected people per 10,000. Rarity in another country alone does not establish that a condition meets this definition.

How often does Orphadata update?

The current Orphadata API documentation specifies two updates each year, in July and December.

Does an ORPHAcode always identify one disease?

An ORPHAcode identifies a clinical entity, which can be a disorder, a group of disorders, or a subtype. Check that level before comparing records under similar names.

Are Orphanet's terminology mappings exact matches?

Orphanet distinguishes exact mappings from mappings between broader and narrower concepts. A mapped ICD or OMIM reference should therefore be read with its relationship qualification.

Where can I find older Orphadata releases?

Orphadata directs users to its GitHub archive for dataset versions since April 2020. Earlier versions are available on request; this is a source archive rather than a promise of historical queries through these endpoints.

Get started

Start using Orphanet rare disease search in opencode

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

Paste this into opencode:

Set up opencode

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