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

opencode · Health

How to Use FDA food recall records in opencode

Returns food recall enforcement records with affected products, recalling firms, hazard classifications, recall reasons, and lot information. Use it for retrospective product and supplier research.

Prompts to try with FDA food recall records in opencode

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

Use FDA food recall records to retrieve peanut-related reports from 2024 and create a research table in this project with products, firms, recall reasons, classifications, and lot information.

FDA food recall recordsopencode
Try asking
  • Use FDA food recall records to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from FDA food recall records and tell me what changed since last week.

  • Check FDA food recall records and summarize what you find in three bullet points.

  • Pull the newest data from FDA food recall records and give me the result as a table.

How to set up FDA food recall records in opencode

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

Use Spiral's MCP server

  1. 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
  2. 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
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 FDA food recall 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/records/food_recalls",
        "input": {
          "skip": 0
        }
      }'

Then paste one of the prompts above: opencode finds FDA food recall records on Spiral, shows the price and runs it.

FDA food recall records providers and prices

Spiral runs FDA food recall records through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
FDA · Food recalls
fda-gov/records/food_recalls

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Skip0 to 250000

skip

Limit1 to 105

limit

Every API field of FDA · Food recalls is on its tool page: open its card above.

What can you do with FDA food recall records in opencode?

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.

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.

Research food recall patterns

Compare historical recall reasons and affected product descriptions for an ingredient such as peanut or sesame, retaining lot and distribution details for each result.

Questions about FDA food recall records in opencode

Can opencode use FDA food recall records?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FDA food recall records like any built-in tool.

How much does FDA food recall 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 food recall records in opencode?

No. Spiral runs FDA food recall 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 food recall records in opencode?

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

Does opencode wait while FDA food recall records runs?

FDA food recall records runs in the background. opencode 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.

Get started

Start using FDA food recall records in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options