[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Citizens Count candidate search](https://spiral.ai/integrations/gemini-cli/citizens-count-candidate-search)

# How to Use Citizens Count candidate search in Gemini CLI

Find Citizens Count candidate and officeholder profiles by name. Use it to resolve a public official such as Kelly Ayotte to the right profile before requesting background and issue positions.

|  |  |
| --- | --- |
| Model | Citizens Count candidate search |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Citizens Count candidate search in Gemini CLI

- Use Citizens Count candidate search to find Kelly Ayotte and Cinde Warmington. Add the returned profile references to my project's candidate lookup.
- Use Citizens Count candidate search 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 search and tell me what changed since last week.
- Check Citizens Count candidate search and summarize what you find in three bullet points.
- Pull the newest data from Citizens Count candidate search and give me the result as a table.

## How to set up Citizens Count candidate search in Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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.

```bash
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 search**: One request; the result comes back by polling or a webhook.

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

Then paste one of the prompts above: Gemini CLI finds Citizens Count candidate search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## Citizens Count candidate search tools and prices

- [Citizens Count New Hampshire candidates, elections and officials · Search candidates](https://spiral.ai/tools/alexandria/citizenscount-org/elections/search_candidates) (Alexandria): $0.00873 per call.

## What can you do with Citizens Count candidate search in Gemini CLI?

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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## Citizens Count candidate search in other agents

- [Amp](https://spiral.ai/integrations/amp/citizens-count-candidate-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/citizens-count-candidate-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/citizens-count-candidate-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/citizens-count-candidate-search)
- [Cline](https://spiral.ai/integrations/cline/citizens-count-candidate-search)
- [Codex](https://spiral.ai/integrations/codex/citizens-count-candidate-search)
- [Cursor](https://spiral.ai/integrations/cursor/citizens-count-candidate-search)
- [Devin](https://spiral.ai/integrations/devin/citizens-count-candidate-search)
- [dots](https://spiral.ai/integrations/dots/citizens-count-candidate-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/citizens-count-candidate-search)
- [Gemini](https://spiral.ai/integrations/gemini/citizens-count-candidate-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/citizens-count-candidate-search)
- [goose](https://spiral.ai/integrations/goose/citizens-count-candidate-search)
- [Grok](https://spiral.ai/integrations/grok/citizens-count-candidate-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/citizens-count-candidate-search)
- [Hermes](https://spiral.ai/integrations/hermes/citizens-count-candidate-search)
- [Instinct](https://spiral.ai/integrations/instinct/citizens-count-candidate-search)
- [Manus](https://spiral.ai/integrations/manus/citizens-count-candidate-search)
- [Muse](https://spiral.ai/integrations/muse/citizens-count-candidate-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/citizens-count-candidate-search)
- [n8n](https://spiral.ai/integrations/n8n/citizens-count-candidate-search)
- [Notion](https://spiral.ai/integrations/notion/citizens-count-candidate-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/citizens-count-candidate-search)
- [opencode](https://spiral.ai/integrations/opencode/citizens-count-candidate-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/citizens-count-candidate-search)
- [Raycast](https://spiral.ai/integrations/raycast/citizens-count-candidate-search)
- [VS Code](https://spiral.ai/integrations/vscode/citizens-count-candidate-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/citizens-count-candidate-search)
- [Zapier](https://spiral.ai/integrations/zapier/citizens-count-candidate-search)

## More Gemini CLI guides

- [Citizens Count candidate profile](https://spiral.ai/integrations/gemini-cli/citizens-count-candidate-profile)
- [Citizens Count district representatives and candidates](https://spiral.ai/integrations/gemini-cli/citizens-count-district-representatives-and-candidates)
- [Census variable lookup](https://spiral.ai/integrations/gemini-cli/census-variable-lookup)
- [Citizens Count election candidates and results](https://spiral.ai/integrations/gemini-cli/citizens-count-election-candidates-and-results)
- [Census statistical data](https://spiral.ai/integrations/gemini-cli/census-statistical-data)
- [Citizens Count election directory](https://spiral.ai/integrations/gemini-cli/citizens-count-election-directory)

## Questions about Citizens Count candidate search in Gemini CLI

**Can Gemini CLI use Citizens Count candidate search?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Citizens Count candidate search like any built-in tool.

**How much does Citizens Count candidate search cost in Gemini CLI?**

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

**Do I need an Alexandria account to use Citizens Count candidate search in Gemini CLI?**

No. Spiral runs Citizens Count candidate 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 Citizens Count candidate search in Gemini CLI?**

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

**Does Gemini CLI wait while Citizens Count candidate search runs?**

Citizens Count candidate search runs in the background. Gemini CLI 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.

