[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [EMA medicine details](https://spiral.ai/integrations/opencode/ema-medicine-details)

# How to Use EMA medicine details in opencode

Returns medicine records from EMA's centralized procedure, including active substances, indications, authorization status, and applicant or authorization holder. Use it to establish a product's regulatory identity and current recorded status.

|  |  |
| --- | --- |
| Model | EMA medicine details |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with EMA medicine details in opencode

- Use EMA medicine details to look up natalizumab and add a table to this project showing medicine names, product numbers, authorization status, and authorization holders.
- Use EMA medicine details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from EMA medicine details and tell me what changed since last week.
- Check EMA medicine details and summarize what you find in three bullet points.
- Pull the newest data from EMA medicine details and give me the result as a table.

## How to set up EMA medicine details 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run EMA medicine details**: One request; the result comes back by polling or a webhook.

```bash
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": "ema-europa-eu/records/medicines",
    "input": {
      "limit": 10
    }
  }'
```

Then paste one of the prompts above: opencode finds EMA medicine details on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## EMA medicine details tools and prices

- [European Medicines Agency · Medicines](https://spiral.ai/tools/alexandria/ema-europa-eu/records/medicines) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 25 | 10 | limit |
| query |  | — | Words that must all appear, case-insensitive, in the medicine name, product number, INN, active substance, therapeutic area, ATC code or marketing authorisation holder, e.g. natalizumab. |
| cursor |  | — | next_cursor from a previous page with the same filters. Pattern: ^[0-9]{1,6}$. |
| status |  | — | Exact medicine_status, case-insensitive, e.g. Authorised, Withdrawn, Refused, Lapsed, Expired, Revoked, Opinion, Application withdrawn. |
| category | Human, Veterinary | — | category |
| ema_product_number |  | — | Exact EMA product number, e.g. EMEA/H/C/000603. No match is not_found. Pattern: ^EMEA/[HV]/C/[0-9]{6}$. |

## What can you do with EMA medicine details in opencode?

Build a regulatory research view that connects EMA records by medicine, substance, or product number. A coding agent can turn returned statuses, dates, and source links into searchable tables in your project.

### Prepare a monthly regulatory briefing

Summarize new applications, scientific opinions, medicine status changes, revised documents, orphan designations, and EMA-assessed shortages. Give each development its own source link and regulatory stage.

### Map a rare disease treatment landscape

Build a condition-specific research table covering designated substances, applications under evaluation, scientific outcomes, authorized products, supporting documents, and reported supply issues.

### Check a pharmaceutical portfolio before a partnership review

Research a public list of products and substances for pending evaluations, committee outcomes, authorization records, orphan status, assessment documents, and published shortage notices.

### Populate a medicine research portal

Create separate views for the application pipeline, scientific opinions, medicine records, documents, orphan designations, and shortages. Link related records by product number where supplied and retain each source's status wording.

### Review changes to product information

Find revised product information and assessment reports for a medicine, then review the corresponding regulatory record and available opinions before updating an internal reference.

### Prepare a supply issue briefing

Collect EMA shortage notices for a public medicine watchlist, including affected presentations and reported alternatives. Add medicine records and product information links for the procurement team's review.

### Assemble a regulatory evidence packet

Collect a medicine's regulatory details, committee outcomes, assessment reports, and orphan designation records for a documented research review.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## EMA medicine details in other agents

- [Amp](https://spiral.ai/integrations/amp/ema-medicine-details)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/ema-medicine-details)
- [Claude](https://spiral.ai/integrations/claude-desktop/ema-medicine-details)
- [Claude Code](https://spiral.ai/integrations/claude-code/ema-medicine-details)
- [Cline](https://spiral.ai/integrations/cline/ema-medicine-details)
- [Codex](https://spiral.ai/integrations/codex/ema-medicine-details)
- [Cursor](https://spiral.ai/integrations/cursor/ema-medicine-details)
- [Devin](https://spiral.ai/integrations/devin/ema-medicine-details)
- [dots](https://spiral.ai/integrations/dots/ema-medicine-details)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/ema-medicine-details)
- [Gemini](https://spiral.ai/integrations/gemini/ema-medicine-details)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/ema-medicine-details)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/ema-medicine-details)
- [goose](https://spiral.ai/integrations/goose/ema-medicine-details)
- [Grok](https://spiral.ai/integrations/grok/ema-medicine-details)
- [Grok Build](https://spiral.ai/integrations/grok-build/ema-medicine-details)
- [Hermes](https://spiral.ai/integrations/hermes/ema-medicine-details)
- [Instinct](https://spiral.ai/integrations/instinct/ema-medicine-details)
- [Manus](https://spiral.ai/integrations/manus/ema-medicine-details)
- [Muse](https://spiral.ai/integrations/muse/ema-medicine-details)
- [Muse Code](https://spiral.ai/integrations/muse-code/ema-medicine-details)
- [n8n](https://spiral.ai/integrations/n8n/ema-medicine-details)
- [Notion](https://spiral.ai/integrations/notion/ema-medicine-details)
- [OpenClaw](https://spiral.ai/integrations/openclaw/ema-medicine-details)
- [Perplexity](https://spiral.ai/integrations/perplexity/ema-medicine-details)
- [Raycast](https://spiral.ai/integrations/raycast/ema-medicine-details)
- [VS Code](https://spiral.ai/integrations/vscode/ema-medicine-details)
- [Windsurf](https://spiral.ai/integrations/windsurf/ema-medicine-details)
- [Zapier](https://spiral.ai/integrations/zapier/ema-medicine-details)

## More opencode guides

- [ClinicalTrials.gov trial search](https://spiral.ai/integrations/opencode/clinicaltrials-gov-trial-search)
- [EMA medicine documents](https://spiral.ai/integrations/opencode/ema-medicine-documents)
- [ClinicalTrials.gov study details](https://spiral.ai/integrations/opencode/clinicaltrials-gov-study-details)
- [EMA medicine opinions](https://spiral.ai/integrations/opencode/ema-medicine-opinions)
- [ClinicalTrials.gov study dates](https://spiral.ai/integrations/opencode/clinicaltrials-gov-study-dates)
- [EMA medicine shortages](https://spiral.ai/integrations/opencode/ema-medicine-shortages)

## Questions about EMA medicine details in opencode

**Can opencode use EMA medicine details?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run EMA medicine details like any built-in tool.

**How much does EMA medicine details 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 EMA medicine details in opencode?**

No. Spiral runs EMA medicine 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 EMA medicine details in opencode?**

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

**Does opencode wait while EMA medicine details runs?**

EMA medicine details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does EMA cover every medicine sold in Europe?**

The medicine export covers applications submitted through EMA's centralized procedure. Its shortage catalog covers EMA-assessed shortages, while national authorities also maintain country-specific shortage information.

**How often does EMA publish updated data?**

EMA rebuilds its website JSON exports at 06:00 and 18:00 Amsterdam time, while its list of human medicines under evaluation is monthly. Those source schedules do not establish when an endpoint refreshes its copy.

**Does an EMA record mean a medicine is authorized?**

No. EMA retains refused and withdrawn records, and a scientific opinion precedes the European Commission's legally binding authorization decision.

**Are all EMA documents available in every EU language?**

EMA publishes the public summary and product information in all official EU languages. That commitment does not extend to every document type, and the document export supplies translation links where available.

**Can EMA material be reused in a commercial report?**

EMA allows commercial and noncommercial reproduction of its material when EMA is acknowledged in each copy. Third-party content requires permission from its copyright holder.

