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

opencode · Lead Gen

How to Use FMCSA SAFER carrier snapshot in opencode

Get a carrier’s registration, fleet size, cargo, inspection summary, crash counts, and safety rating when available. Use it to check company identity and registration alongside its safety record.

Prompts to try with FMCSA SAFER carrier snapshot in opencode

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

Use FMCSA SAFER carrier snapshot for USDOT 264184 and build a registration summary component using the returned fleet, cargo, and safety information.

FMCSA SAFER carrier snapshotopencode
Try asking
  • Use FMCSA SAFER carrier snapshot to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from FMCSA SAFER carrier snapshot and tell me what changed since last week.

  • Check FMCSA SAFER carrier snapshot and summarize what you find in three bullet points.

  • Pull the newest data from FMCSA SAFER carrier snapshot and give me the result as a table.

How to set up FMCSA SAFER carrier snapshot 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 FMCSA SAFER carrier snapshot

    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": "safer-fmcsa-dot-gov/carriers/get_carrier_snapshot",
        "input": {
          "mc_mx_number": "<mc_mx_number>"
        }
      }'

Then paste one of the prompts above: opencode finds FMCSA SAFER carrier snapshot on Spiral, shows the price and runs it.

FMCSA SAFER carrier snapshot providers and prices

Spiral runs FMCSA SAFER carrier snapshot through Alexandria. Open a card for today's price, with every fee included.

AlexandriaLead Gen
FMCSA SAFER and SMS carrier registry · Get carrier snapshot
safer-fmcsa-dot-gov/carriers/get_carrier_snapshot

What can you do with FMCSA SAFER carrier snapshot in opencode?

Build a carrier review table that connects company identity, fleet size, and public safety evidence by USDOT number. Use name lookups to resolve business records before adding SAFER snapshots and SMS summaries to the project.

Prepare a carrier onboarding review

Resolve a proposed carrier’s name with SMS suggestions and SAFER search, compare the SMS listing, and assemble its registration snapshot, safety overview, and supporting records for review.

Compare carriers bidding for freight

Match bidder names to registered businesses, compare fleet sizes and public safety summaries, and examine records behind questions raised during the bid review.

Separate similarly named transportation companies

Collect recognized name spellings and search matches, distinguish businesses by location and USDOT identifier, and prepare separate registration and safety reviews for each candidate.

Review a changing carrier shortlist

Resolve names as businesses enter a procurement shortlist, then refresh their registration and public safety reviews. Inspect underlying events when a carrier’s summary changes.

Correct a business carrier directory

Use name suggestions and search results to reconcile trade names, legal names, locations, and registered company profiles in a transportation business directory.

Explain the evidence behind a carrier review

Pair the registration and safety summaries with supporting inspection, violation, and crash records so a reviewer can see which events prompted follow-up questions.

Research fleet service prospects

Resolve public transportation business names, compare fleet sizes in SMS listings, and review registered cargo and operations information to identify companies relevant to a fleet service.

Questions about FMCSA SAFER carrier snapshot in opencode

Can opencode use FMCSA SAFER carrier snapshot?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FMCSA SAFER carrier snapshot like any built-in tool.

How much does FMCSA SAFER carrier snapshot 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 FMCSA SAFER carrier snapshot in opencode?

No. Spiral runs FMCSA SAFER carrier snapshot on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up FMCSA SAFER carrier snapshot in opencode?

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

Does opencode wait while FMCSA SAFER carrier snapshot runs?

FMCSA SAFER carrier snapshot runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How often does FMCSA update the data?

FMCSA documents daily updates for the SAFER Company Snapshot and monthly updates for SMS. SMS search results and safety summaries therefore reflect a monthly snapshot.

How much safety history does SMS summarize?

The SMS overview summarizes 24 months of inspections and crash history. It also lists the five most recent investigations.

Are all property-carrier safety results public?

No. The Crash Indicator and Hazardous Materials Compliance BASICs remain hidden from the public property-carrier view.

Why might a broad carrier-name search miss a company?

SAFER returns a maximum of 500 name matches. If results are truncated, narrow the company name and search again.

Do listed crashes establish that the carrier was responsible?

No. SAFER reports a carrier’s involvement in reportable crashes without determining responsibility.

Get started

Start using FMCSA SAFER carrier snapshot 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