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

VS Code · Public Records

How to Use Citizens Count candidate profile in VS Code

Fetch a New Hampshire candidate’s background and issue positions from Citizens Count. Use it to examine a named candidate’s record and views after finding the relevant race or profile.

Prompts to try with Citizens Count candidate profile in VS Code

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

Use Citizens Count candidate profile for Kelly Ayotte. Add her published background and school-funding positions to my local research view, preserving any No Response labels.

Citizens Count candidate profileVS Code
Try asking
  • Use Citizens Count candidate profile to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Citizens Count candidate profile and tell me what changed since last week.

  • Check Citizens Count candidate profile and summarize what you find in three bullet points.

  • Pull the newest data from Citizens Count candidate profile and give me the result as a table.

How to set up Citizens Count candidate profile in VS Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code 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 Citizens Count candidate 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": "citizenscount-org/elections/get_candidate",
        "input": {
          "candidate": "<candidate>"
        }
      }'

Then paste one of the prompts above: VS Code finds Citizens Count candidate profile on Spiral, shows the price and runs it.

Citizens Count candidate profile providers and prices

Spiral runs Citizens Count candidate profile through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records

What can you do with Citizens Count candidate profile in VS Code?

Build a New Hampshire civic research view that connects towns, districts, election contests, and candidate profiles. Your coding agent can organize the returned records in your project and preserve Citizens Count's published issue labels.

Prepare a personal town voter guide

Start with the election directory and Hanover's town information, identify the relevant districts and races, then resolve candidate names and read their profiles. Assemble a private reading guide organized by office.

Study how representation connects to elections

Use Concord Ward 1 for a personal civics exercise. Find its representatives and districts, locate their election contests, resolve the candidates' profiles, and compare their published backgrounds and positions.

Understand an election transition

Find the races relevant to Manchester Ward 5 and compare published outcomes with the officials still listed for its districts. Resolve the winners' profiles and prepare private notes that distinguish winning an election from currently holding office.

Prepare questions for a candidate forum

Identify Hanover's races and districts, find the candidates, and resolve their profiles. Use the published issue positions to draft questions that ask each candidate to explain the same policy choices.

Compare candidates on a specific issue

Retrieve a New Hampshire governor contest, find each candidate's profile, and compare published positions on school funding. Keep survey responses, researched statements, and No Response labels distinct.

Questions about Citizens Count candidate profile in VS Code

Can VS Code use Citizens Count candidate profile?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Citizens Count candidate profile like any built-in tool.

How much does Citizens Count candidate profile cost in VS Code?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

Do I need an Alexandria account to use Citizens Count candidate profile in VS Code?

No. Spiral runs Citizens Count candidate 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 Citizens Count candidate profile in VS Code?

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

Does VS Code wait while Citizens Count candidate profile runs?

Citizens Count candidate profile runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

Which elections does Citizens Count cover?

The provider documents New Hampshire races for governor, U.S. Senate, U.S. House, Executive Council, state Senate, and state House. It includes primary and general election results for those offices.

Can I look up a whole city, or do I need a ward?

Larger New Hampshire municipalities are divided into voting wards, so a ward can be needed to identify the relevant representation. Citizens Count's directory covers a state with 221 towns and 13 cities.

Where do candidate issue positions come from?

Candidate surveys are the primary source. When candidates do not respond, Citizens Count staff research published positions in sources such as newspapers and Facebook posts.

Does every candidate complete the survey?

No. Citizens Count reports that roughly two-thirds of state Senate and Executive Council candidates responded in 2022, along with over half of state representative candidates.

Can election results change after they appear?

Yes. Citizens Count says it uses Secretary of State results and updates races as recounts are completed.

Get started

Start using Citizens Count candidate profile in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options