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

Codex · Public Records

How to Use New Hampshire bill search in Codex

Finds New Hampshire legislation by topic, bill number, or sponsor and returns matching bill records. Use it to assemble a reading list before investigating a bill's full docket.

Prompts to try with New Hampshire bill search in Codex

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

Use New Hampshire bill search to find education funding proposals and populate this project's bill index with the returned titles and statuses.

New Hampshire bill searchCodex
Try asking
  • Use New Hampshire bill search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from New Hampshire bill search and tell me what changed since last week.

  • Check New Hampshire bill search and summarize what you find in three bullet points.

  • Pull the newest data from New Hampshire bill search and give me the result as a table.

How to set up New Hampshire bill search 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 New Hampshire bill search

    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": "gc-nh-gov/legislation/search_bills",
        "input": {
          "limit": 25
        }
      }'

Then paste one of the prompts above: Codex finds New Hampshire bill search on Spiral, shows the price and runs it.

New Hampshire bill search providers and prices

Spiral runs New Hampshire bill search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 20025

limit

Chamberhouse, senate, or allall

Chamber the bill originated in.

Every API field of New Hampshire General Court (NH legislature) · Search bills is on its tool page: open its card above.

What can you do with New Hampshire bill search in Codex?

Build a New Hampshire legislative reference in your project that connects bill histories with public officials' sponsorship and voting records. Use the returned records to populate timelines, directories, or tables that retain the wording of each vote's motion.

Prepare a municipal policy brief

Find legislation about municipal taxation, identify the relevant officials and their committees, and connect sponsorship, docket actions, and recorded votes in a brief for a town administrator.

Build a school funding research packet

Locate education funding proposals, identify Education or Finance committee officials, and assemble their sponsorship records, bill histories, and motion-specific votes for a school board briefing.

Check a legislative news story

Find the bill behind a claim, identify the officials involved, and check their sponsorship and voting records against the docket before describing who proposed or supported a measure.

Research legislation affecting local businesses

Find employment or licensing proposals, identify sponsors and committee officials, and summarize their legislative work, the bills' progress, and recorded decisions for a business association.

Reconstruct a bill's path

Locate a proposal and turn its docket into a dated timeline of referrals, hearings, committee reports, and floor actions.

Create a classroom legislative case study

Choose a New Hampshire proposal and show how sponsorship, committee work, amendments, and recorded votes contributed to its legislative history.

Questions about New Hampshire bill search in Codex

Can Codex use New Hampshire bill search?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run New Hampshire bill search like any built-in tool.

How much does New Hampshire bill search 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 New Hampshire bill search in Codex?

No. Spiral runs New Hampshire bill search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up New Hampshire bill search in Codex?

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

Does Codex wait while New Hampshire bill search runs?

New Hampshire bill search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

Which legislative years does this data cover?

The documented coverage is New Hampshire's 2025–2026 biennium. Treat it as that legislative period rather than a complete historical archive.

How fresh are the underlying bill records?

The General Court says its current bill-status download refreshes on file access. That describes the source file's refresh behavior, not a guaranteed delay between legislative action and its appearance in a response.

Does a yes vote always mean support for passing the bill?

No. New Hampshire's records distinguish motions: HB292, for example, has separate floor-amendment and passage motions in the 2026 Senate voting record. Read the motion alongside the vote.

Are absences counted as no votes?

The source schema separates four tally categories: yeas, nays, present, and absent. Keep those categories separate when summarizing participation or vote totals.

Where can I obtain an official voting record?

The General Court directs readers to the House Clerk or Senate Clerk for official copies of legislators' voting records.

Get started

Start using New Hampshire bill search 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