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

opencode · Public Records

How to Use New Hampshire legislator search in opencode

Finds New Hampshire legislators and returns identifying, district, party, committee, and public contact information. Use it to identify officials representing a House district or serving on a committee.

Prompts to try with New Hampshire legislator search in opencode

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

Use New Hampshire legislator search to find House representatives for Manchester and add their names, districts, and parties to the project's public directory.

New Hampshire legislator searchopencode
Try asking
  • Use New Hampshire legislator 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 legislator search and tell me what changed since last week.

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

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

How to set up New Hampshire legislator search 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 New Hampshire legislator 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_legislators",
        "input": {
          "name": "<name>"
        }
      }'

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

New Hampshire legislator search providers and prices

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

AlexandriaPublic Records

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 45050

limit

Chamberhouse, senate, or allall

chamber

Include formeron or off

Also list members the roster marks former (left office during the term).

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

What can you do with New Hampshire legislator search in opencode?

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.

Explain an official's legislative record

Resolve a public official's identity, review sponsored legislation and committee assignments, and explain recorded votes using each motion's wording.

Questions about New Hampshire legislator search in opencode

Can opencode use New Hampshire legislator search?

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

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

No. Spiral runs New Hampshire legislator 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 legislator search in opencode?

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

Does opencode wait while New Hampshire legislator search runs?

New Hampshire legislator search runs in the background. opencode 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 legislator search 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