How to Use FDA device UDI records in opencode
Returns GUDID device identification records, including brands, labelers, models, and reported premarket submission numbers. Use it to identify a particular product or model; GUDID does not store individual lot or serial numbers.
Prompts to try with FDA device UDI records in opencode
Copy an example into opencode, or ask in your own words.
Use FDA device UDI records to find Dexcom G7 records. Compare returned brands, companies, and models with our product catalog and report mismatches.
Use FDA device UDI records to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from FDA device UDI records and tell me what changed since last week.
Check FDA device UDI records and summarize what you find in three bullet points.
Pull the newest data from FDA device UDI records and give me the result as a table.
How to set up FDA device UDI records 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 FDA device UDI records
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": "fda-gov/devices/device_udi", "input": { "device_identifier": "<device_identifier>" } }'
Then paste one of the prompts above: opencode finds FDA device UDI records on Spiral, shows the price and runs it.
FDA device UDI records providers and prices
Spiral runs FDA device UDI records 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 |
|---|---|---|---|
| Skip | 0 to 25000 | 0 | skip |
| Limit | 1 to 50 | 10 | limit |
Every API field of FDA · Device udi is on its tool page: open its card above.
What can you do with FDA device UDI records in opencode?
Build a device research table that separates category information, labeled product identity, and PMA application history. A coding agent can compare FDA records with your project's catalog and produce a focused list of discrepancies.
Prepare a device category research brief
Explain a device category's classification, identify labeled products in that category, and summarize relevant PMA applications and supplements.
Review a manufacturer's public device records
Compare a company's labeled brands and models with its PMA application records, then explain the product categories associated with the returned codes.
Check a product research spreadsheet
Compare recorded device names, models, product codes, and PMA references against FDA records. Produce a discrepancy list for a researcher to review.
Build a device market comparison
Organize competing devices by FDA category, compare their labeled product identities, and summarize available PMA decision histories without treating those histories as market share.
Resolve a model from a device label
Look up a device identifier and compare the returned brand, company, and model with the label. Explain the meaning of its reported FDA product code.
More on FDA device UDI records and opencode
Overview
FDA device UDI records in other agents
Questions about FDA device UDI records in opencode
Can opencode use FDA device UDI records?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FDA device UDI records like any built-in tool.
How much does FDA device UDI records 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 FDA device UDI records in opencode?
No. Spiral runs FDA device UDI records on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up FDA device UDI records in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while FDA device UDI records runs?
FDA device UDI records runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What does an FDA device record identify?
Classification records describe a generic device category. UDI records identify labeled products and models, while PMA records describe premarket applications and supplements for Class III devices.
How often is the device data refreshed?
openFDA documents monthly updates for classification and PMA data, and weekly updates for UDI data. These are the API update schedules, so a recent source change may not appear immediately.
How far back does the data go?
openFDA lists 1976 as the earliest year for classification and PMA data, and 2013 for UDI data. Those dates describe dataset coverage, not a complete revision history for every record.
Can a product code identify one specific device?
A product code identifies a generic device category. Use a UDI record to distinguish a labeled brand or model, and a PMA record to investigate an application or supplement.
Can I reuse FDA device data commercially?
The classification and PMA datasets are marked public domain and CC0. GMDN content has separate restrictions: extracting it for specified commercial categorization, mapping, or AI training uses requires a GMDN Agency license.
Start using FDA device UDI records 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


