How to Use FDA warning letter search in VS Code
Returns warning letter listings with company names, subjects, issuing offices, and separate issue and posting dates. Use it to find relevant correspondence before examining a letter's full text.
Prompts to try with FDA warning letter search in VS Code
Copy an example into VS Code, or ask in your own words.
Use FDA warning letter search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from FDA warning letter search and tell me what changed since last week.
Check FDA warning letter search and summarize what you find in three bullet points.
Pull the newest data from FDA warning letter search and give me the result as a table.
Check FDA warning letter search every morning and tell me only when something changed.
How to set up FDA warning letter search in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - 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
- Send VS Code 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 warning letter 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": "fda-gov/records/warning_letters", "input": { "skip": 0 } }'
Then paste one of the prompts above: VS Code finds FDA warning letter search on Spiral, shows the price and runs it.
FDA warning letter search providers and prices
Spiral runs FDA warning letter search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Skip | 0 to 10000 | 0 | skip |
| Sort | posted_desc, issued_desc, or issued_asc | posted_desc | sort |
| Year | 1990 to 2100 | Letter issue year. | |
| Limit | 1 to 100 | 25 | limit |
| Issued within days | 7, 30, 60, or 90 | Letters issued in the last 7, 30, 60 or 90 days. | |
| Posted within days | 7, 30, 60, or 90 | Letters posted on fda.gov in the last 7, 30, 60 or 90 days. |
Every API field of FDA · Warning letters is on its tool page: open its card above.
What can you do with FDA warning letter search in VS Code?
Build an FDA research view that keeps supply records, product approvals, orphan programs, and compliance correspondence understandable. A coding agent can turn returned records into project tables and link individual findings to FDA documents.
Build an FDA research reference
Organize shortage presentations, food recall findings, approved drug records, orphan designations, and warning correspondence into a searchable internal reference with links to the original records.
Check claims before publication
Check a draft's statements about product availability, recalled lots, approved products, orphan status, or warning letter findings against the relevant FDA records.
Prepare an internal regulatory digest
Summarize newly retrieved FDA records for a research team, explaining whether each item concerns supply, a recall, an approved product, an orphan program, or compliance correspondence.
Prepare pharmacy supplier questions
Compare manufacturer and presentation availability, review approved drug product records, and read relevant manufacturing warning letters before drafting questions for suppliers.
Review food supplier records
Examine a food company's recall reasons, affected products, and lot information alongside relevant warning letter findings for an internal supplier review.
Study recurring compliance findings
Find warning letters about laboratory controls, manufacturing practices, or labeling, then read the cited requirements and requested responses to prepare staff training examples.
More on FDA warning letter search and VS Code
Overview
FDA warning letter search in other agents
Questions about FDA warning letter search in VS Code
Can VS Code use FDA warning letter search?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run FDA warning letter search like any built-in tool.
How much does FDA warning letter search 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 warning letter search in VS Code?
No. Spiral runs FDA warning letter 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 FDA warning letter search in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while FDA warning letter search runs?
FDA warning letter search runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
Do FDA records all update on the same schedule?
No. FDA describes daily updates for its shortage database, weekly Enforcement Reports, and monthly Orange Book API updates. Those schedules describe the source publications, not a guarantee that every individual record changes that often.
Does a record's status establish the current situation?
The meaning depends on the record. A resolved shortage can still have unavailable presentations, orphan designation is separate from approval, and later FDA correspondence can change the issues described in a warning letter.
Are these complete records of every product problem?
FDA's shortage program focuses on medically necessary products. Its warning letters describe identified concerns, while FDA cautions that subsequent interactions can change their regulatory status.
What date should I use when researching FDA actions?
Choose the event you mean. Warning letter issue dates and posting dates are separate, while orphan database date searches distinguish designation dates from approval dates for the orphan indication.
Can FDA material be reused in research and publications?
FDA says its website text and graphics are generally public domain unless otherwise noted. openFDA uses a CC0 dedication by default, with exceptions for identified third-party material.
Start using FDA warning letter search in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


