[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [FDA device UDI records](https://spiral.ai/integrations/vscode/fda-device-udi-records)

# How to Use FDA device UDI records in VS Code

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.

|  |  |
| --- | --- |
| Model | FDA device UDI records |
| 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 FDA device UDI records in VS Code

- 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 VS Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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 FDA device UDI records**: 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": "fda-gov/devices/device_udi",
    "input": {
      "device_identifier": "<device_identifier>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds FDA device UDI records on Spiral, shows the price and runs it.

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

## FDA device UDI records tools and prices

- [FDA · Device udi](https://spiral.ai/tools/alexandria/fda-gov/devices/device_udi) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| skip | 0 to 25000 | 0 | skip |
| brand |  | — | Brand name words, matched as a phrase, e.g. Dexcom G7. |
| limit | 1 to 50 | 10 | limit |
| model |  | — | Version or model number, e.g. 9500-161. |
| company |  | — | Labeler company words, e.g. Dexcom. |
| product_code |  | — | Three-letter FDA product code, e.g. QBJ. Pattern: ^ *[A-Za-z]{3} *$. |

## What can you do with FDA device UDI records in VS Code?

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.

## Overview

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

## FDA device UDI records in other agents

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

## More VS Code guides

- [FDA device PMA approvals](https://spiral.ai/integrations/vscode/fda-device-pma-approvals)
- [FDA drug adverse event reports](https://spiral.ai/integrations/vscode/fda-drug-adverse-event-reports)
- [FDA device 510(k) decisions](https://spiral.ai/integrations/vscode/fda-device-510-k-decisions)
- [FDA drug application records](https://spiral.ai/integrations/vscode/fda-drug-application-records)
- [FDA complete response letter search](https://spiral.ai/integrations/vscode/fda-complete-response-letter-search)
- [FDA drug approval documents](https://spiral.ai/integrations/vscode/fda-drug-approval-documents)

## Questions about FDA device UDI records in VS Code

**Can VS Code use FDA device UDI records?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run FDA device UDI records like any built-in tool.

**How much does FDA device UDI records cost in VS Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

**Do I need an Alexandria account to use FDA device UDI records in VS Code?**

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 VS Code?**

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

**Does VS Code wait while FDA device UDI records runs?**

FDA device UDI records runs in the background. VS Code 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.

