[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Clarity election list](https://spiral.ai/integrations/muse-code/clarity-election-list)

# How to Use Clarity election list in Muse Code

Clarity election list identifies the elections a jurisdiction publishes on Clarity. Use it to locate the election you need before requesting vote totals or geographic breakdowns.

|  |  |
| --- | --- |
| Model | Clarity election list |
| 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 Clarity election list in Muse Code

- Use Clarity election list for Cumberland County, New Jersey, and populate this project's election selector with the published elections.
- Use Clarity election list to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Clarity election list and tell me what changed since last week.
- Check Clarity election list and summarize what you find in three bullet points.
- Pull the newest data from Clarity election list and give me the result as a table.

## How to set up Clarity election list in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

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

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Clarity election list**: 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": "results-enr-clarityelections-com/elections/list_elections",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Clarity election list on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Clarity election list tools and prices

- [Clarity Elections ENR official election results · List elections](https://spiral.ai/tools/alexandria/results-enr-clarityelections-com/elections/list_elections) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | A pasted results.enr.clarityelections.com URL such as https://results.enr.clarityelections.com/NJ/Cumberland/127562/web.345435/#/summary; state, county and election id are read from its path. Takes precedence over state and county. |
| state |  | — | Two-letter US state code of the Clarity site, e.g. IA (a state site) or NJ with county Cumberland (a county site). Case-insensitive. Pattern: ^[A-Za-z]{2}$. |
| county |  | — | County path segment exactly as the site writes it after the state (case-sensitive), e.g. Cumberland, Black_Hawk; spaces become underscores. Omit for a state-level site. |

## What can you do with Clarity election list in Muse Code?

Build a results explorer that connects published elections to contest totals and geographic vote tables. Coding agents can use Clarity data to populate election selectors, race summaries, and precinct or county comparisons.

### Prepare a county election brief

Locate the published election, summarize contest totals, and add precinct comparisons for races that need more explanation.

### Build a municipal results archive

Find available elections, collect municipal contest totals, and attach published precinct breakdowns so readers can examine local voting patterns.

### Compare counties in a statewide race

Locate a state election, retrieve statewide contest totals, and compare the published county breakdown for the selected race.

### Create a civic results explorer

Let readers choose a published election, browse contests, and open geographic vote tables for a race they want to understand.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Clarity election list in other agents

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

## More Muse Code guides

- [Clarity contest details](https://spiral.ai/integrations/muse-code/clarity-contest-details)
- [Clarity election results](https://spiral.ai/integrations/muse-code/clarity-election-results)
- [Citizens Count town voting information](https://spiral.ai/integrations/muse-code/citizens-count-town-voting-information)
- [Cornell LII U.S. Code section](https://spiral.ai/integrations/muse-code/cornell-lii-u-s-code-section)
- [Citizens Count election directory](https://spiral.ai/integrations/muse-code/citizens-count-election-directory)
- [Cornell LII federal regulation](https://spiral.ai/integrations/muse-code/cornell-lii-federal-regulation)

## Questions about Clarity election list in Muse Code

**Can Muse Code use Clarity election list?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Clarity election list like any built-in tool.

**How much does Clarity election list cost in Muse 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 Muse Code plan is separate.

**Do I need an Alexandria account to use Clarity election list in Muse Code?**

No. Spiral runs Clarity election list on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Clarity election list in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Clarity election list runs?**

Clarity election list runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**How far back do Clarity election archives go?**

History depends on the jurisdiction. York County, Pennsylvania, began using Scytl for the 2020 general election; its guide directs readers to separate PDF reports for earlier elections.

**How quickly do Clarity results change?**

Results follow officials' publication process. South Carolina documents periodic election-night uploads from county voting systems, so changes arrive in published batches.

**Are results official as soon as they appear?**

Election-night publication does not establish certification. Burlington County, New Jersey, explicitly changes results from unofficial to official after its Board of Elections certifies the election.

**Does every jurisdiction publish equally complete data?**

No. The Parsons documentation for Clarity notes that values remain unpopulated when the election administrator does not provide them, so the available detail varies by jurisdiction.

**How geographically detailed are the public results?**

Contest breakdowns use precincts on county sites and counties on state sites. York County, Pennsylvania, identifies the precinct as the smallest unit recorded in its Scytl results.

