[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [CTIS clinical trial details](https://spiral.ai/integrations/opencode/ctis-clinical-trial-details)

# How to Use CTIS clinical trial details in opencode

Retrieve one CTIS trial’s country decisions, sites, medicines, eligibility, endpoints, safety notifications, and available results information. Use it to investigate a known trial or explain a search match.

|  |  |
| --- | --- |
| Model | CTIS clinical trial 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 CTIS clinical trial details in opencode

- Use CTIS clinical trial details for 2025-523379-41-00 and create a research page showing eligibility, endpoints, medicines, and trial sites.
- Use CTIS clinical trial details for 2025-524616-11-00 and populate this project’s trial comparison view with country decisions and recruitment statuses.
- Use CTIS clinical trial details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from CTIS clinical trial details and tell me what changed since last week.
- Check CTIS clinical trial details and summarize what you find in three bullet points.

## How to set up CTIS clinical trial 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 CTIS clinical trial 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": "euclinicaltrials-eu/clinical-trials/study",
    "input": {
      "eu_ct_number": "<eu_ct_number>"
    }
  }'
```

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

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

## CTIS clinical trial details tools and prices

- [EU Clinical Trials (CTIS) · Study](https://spiral.ai/tools/alexandria/euclinicaltrials-eu/clinical-trials/study) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | A euclinicaltrials.eu trial link: the portal's ?EUCT= link, /ctis-public/view/{EU CT number}, or the API record URL. |
| eu_ct_number |  | — | EU CT number, e.g. 2022-500744-38-00. Pass exactly one of eu_ct_number, url or secondary_id. |
| secondary_id |  | — | An NCT, EudraCT, ISRCTN or WHO UTN number the trial lists; matched exactly against the record. Fails with ambiguous_secondary_id when several trials list it. |

## What can you do with CTIS clinical trial details in opencode?

Build a trial comparison table with EU trial numbers, medicines, phases, and country statuses. Use CTIS records to add eligibility and endpoints to your project’s research views.

### Map a medicine’s European trial program

Find semaglutide trials, compare sponsors and phases, then examine the eligibility and endpoints of selected studies.

### Build a recruitment research brief

Find recruiting melanoma trials, then review country statuses, sites, and participation criteria for an institutional research brief.

### Compare sponsor activity

Identify Novo Nordisk’s registered trials and compare their medicines, phases, countries, and study designs.

### Follow country recruitment changes

Find relevant obesity trials and compare successive country statuses and site information to report changes observed between checks.

### Check public results availability

Identify ended trials for a medicine and examine their public results information to prepare a list for evidence review.

### Prepare an oncology trial comparison

Find pembrolizumab trials and compare their conditions, eligibility requirements, endpoints, and participating countries.

## Overview

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

## CTIS clinical trial details in other agents

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

## More opencode guides

- [CMS nursing homes](https://spiral.ai/integrations/opencode/cms-nursing-homes)
- [CTIS clinical trial search](https://spiral.ai/integrations/opencode/ctis-clinical-trial-search)
- [CMS nursing home details](https://spiral.ai/integrations/opencode/cms-nursing-home-details)
- [California HCAI drug WAC increases](https://spiral.ai/integrations/opencode/california-hcai-drug-wac-increases)
- [CMS hospitals](https://spiral.ai/integrations/opencode/cms-hospitals)
- [California HCAI drug launch reports](https://spiral.ai/integrations/opencode/california-hcai-drug-launch-reports)

## Questions about CTIS clinical trial details in opencode

**Can opencode use CTIS clinical trial details?**

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

**How much does CTIS clinical trial 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 CTIS clinical trial details in opencode?**

No. Spiral runs CTIS clinical trial 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 CTIS clinical trial details in opencode?**

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

**Does opencode wait while CTIS clinical trial details runs?**

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

**Does CTIS include observational studies and medical device trials?**

No. Its scope is trials of investigational medicinal products; observational trials and studies of medical devices are excluded.

**Does CTIS include trials that started before 2022?**

It includes older trials transferred into the current regulatory framework. From January 31, 2025, all ongoing EU trials should have been submitted to CTIS, so its coverage is not limited to newly started trials.

**How quickly do recruitment updates appear?**

Updates to trial and recruitment period notifications appear on the public website within 24 hours after submission. That window starts with the sponsor’s submission, so it does not guarantee that recruitment information reflects an event immediately.

**Do the dates describe the entire worldwide trial?**

CTIS search dates and locations refer to the EEA. A trial conducted outside the EEA can have different start dates, end dates, and locations there.

**Are participant counts actual enrollment?**

Counts labeled as planned enrollment are the expected number of participants. They should not be presented as the number already recruited.

