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

opencode · Maps & Reviews

How to Use State Department destination advisory in opencode

Returns one destination's advisory level, narrative advice, publication and update dates, and source link. Use it to explain the risks behind a country's rating before reviewing an itinerary.

Prompts to try with State Department destination advisory in opencode

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

Use State Department destination advisory for Germany and update this project's Germany briefing with the returned risk explanation and advisory dates.

State Department destination advisoryopencode
Try asking
  • Use State Department destination advisory for Türkiye and add a regional-warnings section to this project's itinerary review page using the places named in the returned advice.

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

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

  • Check State Department destination advisory and summarize what you find in three bullet points.

How to set up State Department destination advisory 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 destination advisory

    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/advisory",
        "input": {
          "url": "<url>"
        }
      }'

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

State Department destination advisory providers and prices

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

AlexandriaMaps & Reviews

What can you do with State Department destination advisory 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 destination advisory in opencode

Can opencode use State Department destination advisory?

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

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

No. Spiral runs State Department destination advisory 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 destination advisory in opencode?

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

Does opencode wait while State Department destination advisory runs?

State Department destination advisory 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 destination advisory 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