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

Codex · Health

How to Use BDPM medicine search in Codex

Finds French medicine records by product name or active ingredient. Use it to identify matching products before examining their composition, packs, or HAS assessments in detail.

Prompts to try with BDPM medicine search in Codex

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

Use BDPM medicine search for sémaglutide and add the returned medicine names to a CSV in this project.

BDPM medicine searchCodex
Try asking
  • Use BDPM medicine search for paracétamol and build a selectable medicine list from the returned records.

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

  • Pull the latest numbers from BDPM medicine search and tell me what changed since last week.

  • Check BDPM medicine search and summarize what you find in three bullet points.

How to set up BDPM medicine search 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 BDPM medicine 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": "base-donnees-publique-medicaments-gouv-fr/medicines/search",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: Codex finds BDPM medicine search on Spiral, shows the price and runs it.

BDPM medicine search providers and prices

Spiral runs BDPM medicine search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
France public medicines database (BDPM) · Search
base-donnees-publique-medicaments-gouv-fr/medicines/search

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 5020

Results per page.

Offseta number from 00

next_offset from the previous page; repeat the same filters with it.

Marketed onlyon or off

Only medicines whose marketing status is Commercialisée.

Every API field of France public medicines database (BDPM) · Search is on its tool page: open its card above.

What can you do with BDPM medicine search in Codex?

Build a French medicine reference table in your project from BDPM product records and HAS opinions. Keep product composition and indication-specific assessment wording together so reviewers can inspect the evidence.

French medicine research brief

Identify products for an active ingredient, inspect their records, and summarize the associated HAS assessments for a research brief.

Product comparison

Build a comparison of French products using their composition, packs, prescribing conditions, and indication-specific assessment wording.

Assessment review list

Collect HAS opinions for a research period, identify the medicines concerned, and attach product records for reviewers.

Medicine reference library

Create reference entries that connect medicine names and active ingredients to product details and HAS opinion links.

Pack and composition review

Find products containing an active ingredient and examine the composition and pack information of each selected medicine.

Questions about BDPM medicine search in Codex

Can Codex use BDPM medicine search?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run BDPM medicine search like any built-in tool.

How much does BDPM medicine search 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 BDPM medicine search in Codex?

No. Spiral runs BDPM medicine 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 BDPM medicine search in Codex?

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

Does Codex wait while BDPM medicine search runs?

BDPM medicine search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

Does BDPM cover medicines outside France?

BDPM covers medicines marketed in France. Its homepage describes a three-year historical window, while its help page says five years, so the published retention guidance is inconsistent.

How often does BDPM change?

BDPM states that the database is updated monthly. Important-information downloads are generated when requested because those notices can change more frequently.

Are the medicine records and assessments in English?

Alexandria preserves BDPM's French text. Statuses and SMR/ASMR levels include English explanations, but the assessment wording remains French.

Does one HAS assessment apply to every use of a medicine?

HAS evaluates medicines indication by indication. A medicine can have an indication supported for reimbursement and another that is not.

Does every medicine have SMR and ASMR ratings?

No. BDPM specifically says that generic medicines do not systematically receive SMR and ASMR assessments.

Get started

Start using BDPM medicine search 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