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

opencode · Maps & Reviews

How to Use State Department travel advisories in opencode

Returns destination advisories with risk levels, advice, dates, and source links. Use it to compare destinations or build a travel risk watchlist.

Prompts to try with State Department travel advisories in opencode

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

Use State Department travel advisories to fetch Germany and Japan, then add a comparison table to this project's travel page with each destination's rating, advice, dates, and source link.

State Department travel advisoriesopencode
Try asking
  • Use State Department travel advisories to build a current destination risk table for this project, keeping the published advice and source links beside each rating.

  • Use State Department travel advisories to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from State Department travel advisories and tell me what changed since last week.

  • Check State Department travel advisories and summarize what you find in three bullet points.

How to set up State Department travel advisories 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 State Department travel advisories

    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": "travel-state-gov/travel-advisories/advisories",
        "input": {
          "level": 1
        }
      }'

Then paste one of the prompts above: opencode finds State Department travel advisories on Spiral, shows the price and runs it.

State Department travel advisories providers and prices

Spiral runs State Department travel advisories through Alexandria. Open a card for today's price, with every fee included.

AlexandriaMaps & Reviews

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Level1 to 4

Keep only advisories at this level: 1 exercise normal precautions, 2 exercise increased caution, 3 reconsider travel, 4 do not travel.

Every API field of U.S. State Department Travel Advisories (travel.state.gov) · Advisories is on its tool page: open its card above.

What can you do with State Department travel advisories in opencode?

Add State Department destination advice to a travel planning app, with the risk explanation beside practical country guidance. A coding agent can turn the returned levels, narrative advice, dates, and embassy information into readable destination pages.

Business trip review

Prepare a Germany travel review with the current advisory, the reasons behind it, and a separate checklist of entry requirements and embassy contacts.

Study abroad destination brief

Compare Japan and Germany for a university program, then prepare destination briefs that separate advisory risks from entry rules, health guidance, and local laws.

Tour itinerary review

Review a Türkiye itinerary using the country rating, warnings for specific areas, and transportation guidance. Identify itinerary stops that need a closer review.

Destination briefing updates

Maintain travel briefings for Germany, Japan, and Türkiye. Compare each new retrieval with the previous one and flag changes to advisory advice or practical destination guidance.

Travel risk desk digest

Create a digest of destinations carrying the strongest travel warnings, with advisory dates and summaries explaining the reasons for each rating.

Questions about State Department travel advisories in opencode

Can opencode use State Department travel advisories?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run State Department travel advisories like any built-in tool.

How much does State Department travel advisories 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 State Department travel advisories in opencode?

No. Spiral runs State Department travel advisories on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up State Department travel advisories in opencode?

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

Does opencode wait while State Department travel advisories runs?

State Department travel advisories runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How broad is the State Department's advisory coverage?

The State Department issues an overall advisory for every country, using a scale from 1 through 4. That describes the source's coverage; it does not establish a fixed number of returned records.

How often are travel advisories reviewed?

Level 1 and 2 advisories are reviewed every 12 months. Level 3 and 4 advisories are reviewed at least every six months.

Whose travel needs does this information address?

The Consular Information Program provides advice for U.S. citizens overseas. Its published information includes travel advisories, alerts, and country information pages.

Does one country rating describe every region?

Regional warnings can be stricter than the overall rating. For example, Türkiye's advisory warns against travel within 10 kilometers of its borders with Syria or Iraq.

What practical information accompanies the risk advice?

Country information covers entry requirements, safety, local laws, health, transportation, and embassy contacts. These subjects support departure planning beyond the four-level advisory scale.

Get started

Start using State Department travel advisories 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