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

opencode · Public Records

How to Use New Hampshire legislator profile in opencode

Returns a legislator's sponsored legislation, committee assignments, and public contact details. Use it to understand an official's legislative work before examining individual votes.

Prompts to try with New Hampshire legislator profile in opencode

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

Use New Hampshire legislator profile for Senator Sharon Carson and create a project data fixture with her committee assignments and sponsored legislation.

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

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

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

How to set up New Hampshire legislator profile 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 profile

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

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

New Hampshire legislator profile providers and prices

Spiral runs New Hampshire legislator profile 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
Chamberhouse, senate, or allall

chamber

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

What can you do with New Hampshire legislator profile 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.

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 legislator profile in opencode

Can opencode use New Hampshire legislator profile?

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

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

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

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

Does opencode wait while New Hampshire legislator profile runs?

New Hampshire legislator profile 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 profile 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