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

Codex · Maps & Reviews

How to Use State Department country information in Codex

Returns practical destination guidance covering entry requirements, safety, local laws, health, transportation, and embassy contacts. Use it to prepare a departure checklist or travel briefing.

Prompts to try with State Department country information in Codex

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

Use State Department country information to create a Germany departure checklist in this project's docs, covering entry requirements, local laws, transportation, and embassy contacts.

State Department country informationCodex
Try asking
  • Use State Department country information to look this up and give me the result as a table. Save the result in ./assets.

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

  • Check State Department country information and summarize what you find in three bullet points.

  • Pull the newest data from State Department country information and give me the result as a table.

How to set up State Department country information in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 country information

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

Then paste one of the prompts above: Codex finds State Department country information on Spiral, shows the price and runs it.

State Department country information providers and prices

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

AlexandriaMaps & Reviews
U.S. State Department Travel Advisories (travel.state.gov) · Country information
travel-state-gov/travel-advisories/country_information

What can you do with State Department country information in Codex?

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.

Departure checklist

Turn Germany's published entry requirements, local-law guidance, health information, and embassy contacts into a checklist for U.S. travelers.

Questions about State Department country information in Codex

Can Codex use State Department country information?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run State Department country information like any built-in tool.

How much does State Department country information cost in Codex?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Alexandria account to use State Department country information in Codex?

No. Spiral runs State Department country information 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 country information in Codex?

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

Does Codex wait while State Department country information runs?

State Department country information runs in the background. Codex 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 country information in Codex

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

Paste this into Codex:

Set up Codex

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