How to Use Health Canada drug search in opencode
Finds Canadian drug records by brand, ingredient, DIN, therapeutic class, ingredient group, or company. Use it to identify products and their DINs before checking individual product details.
Prompts to try with Health Canada drug search in opencode
Copy an example into opencode, or ask in your own words.
Use Health Canada drug search to find semaglutide products currently marketed in Canada, then create a CSV in this project with the returned product names, DINs, and companies.
Use Health Canada drug search to find atorvastatin calcium products from Apotex, then compare their returned DINs with the drug catalog in this repository.
Use Health Canada drug search to find products in ATC class L04AB04 and save a research table of the returned names, DINs, companies, and statuses.
Use Health Canada drug search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Health Canada drug search and tell me what changed since last week.
How to set up Health Canada drug search in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Health Canada drug 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": "health-products-canada-ca/products/search", "input": { "query": "<query>" } }'
Then paste one of the prompts above: opencode finds Health Canada drug search on Spiral, shows the price and runs it.
Health Canada drug search providers and prices
Spiral runs Health Canada drug search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 25 | 10 | Results per page. |
| Offset | a number from 0 | 0 |
|
| Status | any, active, marketed, approved, dormant, or cancelled | any |
|
Every API field of Health Canada Drug Product Database · Search is on its tool page: open its card above.
What can you do with Health Canada drug search in opencode?
Build a Canadian drug reference table keyed by DIN, with product identity and regulatory status kept together. Use Health Canada records to check catalog entries and review changes in your project's drug data.
Check a Canadian drug catalog
Find products by brand or ingredient, then verify each DIN's strength, dosage form, route, and status before adding it to a reference catalog.
Compare company portfolios
Identify drug records associated with Apotex or Pfizer Canada and inspect selected products to compare ingredients, formulations, and regulatory status.
Research a therapeutic class
Find Canadian products within an ATC class, then review individual records for strengths, routes, and companies. Build a product comparison for market research.
Monitor regulatory status changes
Repeat an ingredient search or revisit selected DINs on a schedule. Compare saved results to identify newly observed records and changes between approved, marketed, dormant, and cancelled status.
Check product documentation links
Locate the Canadian products discussed in a drug reference article and inspect their records for available product monograph links.
Reconcile brand and ingredient names
Search a brand such as Ozempic and compare its records with an ingredient search for semaglutide. Use DINs and product details to keep distinct formulations separate.
Review older product records
Locate older products and inspect their original market dates and current status. Flag pre-September 1996 records whose December 31 dates may represent only a year.
More on Health Canada drug search and opencode
Overview
Health Canada drug search in other agents
Questions about Health Canada drug search in opencode
Can opencode use Health Canada drug search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Health Canada drug search like any built-in tool.
How much does Health Canada drug 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 Health Canada drug search in opencode?
No. Spiral runs Health Canada drug 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 Health Canada drug search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Health Canada drug search runs?
Health Canada drug search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does the database cover only human medicines?
No. Health Canada's database also covers veterinary drugs, disinfectants, and radiopharmaceuticals, with records for approved, marketed, dormant, and cancelled products.
How often does Health Canada update the data?
Health Canada updates the Drug Product Database nightly. It is not a live feed of individual pharmacy inventory.
What is the difference between approved, marketed, and dormant?
Approved means authorized for sale but not yet marketed; marketed means currently sold in Canada. Dormant follows at least 12 consecutive months without manufacturer sales and processing of the required notification, while authorization remains in place.
How precise are historical market dates?
For products marketed before September 1996, December 31 can be a default date added during migration. In those records, the year can be meaningful even when the month and day are not.
Does every product have a public monograph?
No. Health Canada explicitly distinguishes records with and without attached documents, and its Product Monograph label can also refer to prescribing information or veterinary labeling.
Start using Health Canada drug search in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


