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

Codex · Public Records

How to Use Gov.br agency directory in Codex

Finds Brazilian federal agencies and their gov.br portal identifiers. Use it to identify the right publishing agency before looking for announcements.

Prompts to try with Gov.br agency directory in Codex

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

Use Gov.br agency directory to find Anvisa, ANPD, and Receita Federal, then add their returned portal identifiers to our project's agency selector.

Gov.br agency directoryCodex
Try asking
  • Use Gov.br agency directory to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Gov.br agency directory and tell me what changed since last week.

  • Check Gov.br agency directory and summarize what you find in three bullet points.

  • Pull the newest data from Gov.br agency directory and give me the result as a table.

How to set up Gov.br agency directory 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 Gov.br agency directory

    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": "gov-br/government-publications/list_agencies",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: Codex finds Gov.br agency directory on Spiral, shows the price and runs it.

Gov.br agency directory providers and prices

Spiral runs Gov.br agency directory through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
gov.br (Brazilian federal government portal) · List agencies
gov-br/government-publications/list_agencies

What can you do with Gov.br agency directory in Codex?

Build a Brazilian government news dashboard with agency links, announcements, and article details. A coding agent can turn the retrieved Gov.br material into a briefing view in your project.

Prepare a tax operations briefing

Identify Receita Federal's portal, collect recent announcements, and read relevant articles to summarize tax deadlines and operational changes for a business team.

Review health regulation announcements

Find Anvisa's portal, scan its news, and read selected announcements to prepare a review queue for a medical products team.

Build a privacy policy reading list

Locate ANPD, gather recent news links, and read relevant pages to assemble a reading list about data protection guidance and consultations.

Follow environmental agency publications

Identify Ibama's portal and review its announcements and article text for an environmental policy briefing.

Research public health communications

Find the Ministry of Health portal, collect relevant announcements, and read the original pages to compare campaign messages and publication dates.

Find government software documentation announcements

Locate Receita Federal, review news about technical documentation, and read the articles to identify the official documentation links they provide.

Questions about Gov.br agency directory in Codex

Can Codex use Gov.br agency directory?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Gov.br agency directory like any built-in tool.

How much does Gov.br agency directory 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 Gov.br agency directory in Codex?

No. Spiral runs Gov.br agency directory on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Gov.br agency directory in Codex?

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

Does Codex wait while Gov.br agency directory runs?

Gov.br agency directory runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

Which part of Brazil's government does Gov.br cover?

The institutional portal covers the federal executive administration, including ministries, autonomous agencies, and public foundations. Its founding scope does not establish comprehensive coverage of state governments, municipalities, courts, or Congress.

Who writes and maintains the information?

Each federal agency controls its own content production, editing, and publication. Gov.br centralizes access while the publishing agency remains responsible for the information.

Can a published announcement change later?

Yes. Receita Federal's November 18, 2026, Cash Out announcement shows publication at 07:13 and an update at 08:19, so publication and update times can differ even on the same day.

Does one news page contain the entire archive?

Receita Federal's news archive spans multiple pages, with numbered navigation and links to earlier and later pages. A single listing page therefore covers only part of that agency's archive.

Can I republish Gov.br content?

The government directory displays a CC BY-ND 3.0 license notice. That license requires attribution and a license link and prohibits distributing modified material under its terms; check the notice on the specific content you intend to reuse.

Get started

Start using Gov.br agency directory 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