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

opencode · Public Records

How to Use New Hampshire election calendar in opencode

Returns published New Hampshire election dates, including town elections and state contests. Use it to put candidate documents, primary nominations, and results on the right election timeline.

Prompts to try with New Hampshire election calendar in opencode

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

Use New Hampshire election calendar to populate this project's election timeline with the published New Hampshire dates. Display the calendar's stated period beside the timeline.

New Hampshire election calendaropencode
Try asking
  • Use New Hampshire election calendar to look this up and give me the result as a table. Save the result in ./assets.

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

  • Check New Hampshire election calendar and summarize what you find in three bullet points.

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

How to set up New Hampshire election calendar 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 election calendar

    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": "sos-nh-gov/elections/election_calendar",
        "input": {}
      }'

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

New Hampshire election calendar providers and prices

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

AlexandriaPublic Records

What can you do with New Hampshire election calendar in opencode?

Build a New Hampshire election reference with official dates, candidate documents, nominees, and vote tallies. Turn the state's publications into linked reference pages and result tables in your project.

Prepare a local newsroom's election reference

Build a New Hampshire election reference with voting dates, official candidate publications, party nominees, available result files, and reported vote totals. Give reporters the source links needed to check each stage of the election.

Maintain a public library's election guide

Create a New Hampshire reference page that connects election dates to candidate documents and party nominees, then adds links and vote tallies as results are published.

Teach how a state election unfolds

Assemble a New Hampshire civics lesson using the election calendar, candidate publications, nomination lists, results directory, and vote tallies. Have students distinguish filing, nomination, and the general-election outcome.

Assemble an election-cycle archive

Preserve New Hampshire's published dates alongside an election year's candidate documents, nominees, results links, and tallies. Keep the calendar's stated period visible when it differs from the archived election year.

Plan election coverage assignments

Use New Hampshire's published election dates and candidate documents to plan reporting assignments. Attach the official candidate-list and filing-document links to the coverage brief.

Questions about New Hampshire election calendar in opencode

Can opencode use New Hampshire election calendar?

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

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

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

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

Does opencode wait while New Hampshire election calendar runs?

New Hampshire election calendar runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How far back do New Hampshire's published election archives go?

The Secretary of State's main elections page links six regular-election results archives spanning 2016 through 2026. That describes the linked archives, rather than a complete history of every election held in New Hampshire.

Does New Hampshire separate presidential primaries from state primaries?

Yes. The state's 2024 results directory has separate entries for the presidential primary and state primary, so a request for primary results needs that distinction.

Can published vote totals change?

Yes. The 2026 general-election results page says its tallies reflect clerks' reported returns and remain subject to amendments from those clerks.

Where does the state publish recount changes?

The 2026 election details page directs readers to the original tally sheets on the election results pages. Check those sheets when reconciling a recount with an earlier tally.

How detailed are the state's legislative results?

The 2024 general-election page lists State Senate districts 1 through 24 and organizes State Representative files by county. It also lists Executive Council districts 1 through 5.

Get started

Start using New Hampshire election calendar 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