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

opencode · Lead Gen

How to Use U.S. House representative voting history in opencode

Returns a current representative’s recent roll call positions from the House Clerk. Use it to review recent voting activity, with 10 rows per page and additional pages available.

Prompts to try with U.S. House representative voting history in opencode

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

Use U.S. House representative voting history for Pete Aguilar, Bioguide ID A000371, and build a table of his latest 30 returned voting records in this project.

U.S. House representative voting historyopencode
Try asking
  • Use U.S. House representative voting history to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from U.S. House representative voting history and tell me what changed since last week.

  • Check U.S. House representative voting history and summarize what you find in three bullet points.

  • Pull the newest data from U.S. House representative voting history and give me the result as a table.

How to set up U.S. House representative voting history 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 U.S. House representative voting history

    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": "clerk-house-gov/legislative-votes/member_votes",
        "input": {
          "bioguide_id": "<bioguide_id>"
        }
      }'

Then paste one of the prompts above: opencode finds U.S. House representative voting history on Spiral, shows the price and runs it.

U.S. House representative voting history providers and prices

Spiral runs U.S. House representative voting history through Alexandria. Open a card for today's price, with every fee included.

AlexandriaLead Gen
U.S. House Clerk roll call votes and members · Member votes
clerk-house-gov/legislative-votes/member_votes

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 1000

Page of 10 rows, 1 by default. The continuation cursor is the next page number.

Every API field of U.S. House Clerk roll call votes and members · Member votes is on its tool page: open its card above.

What can you do with U.S. House representative voting history in opencode?

Build a House voting dashboard that connects roll call results with current representatives and their districts. Coding agents can turn the Clerk’s records into searchable tables and links between a representative’s position and the complete vote.

Local newsroom delegation coverage

Identify a state’s current delegation, add district and committee context, and review recent voting activity. Find the relevant roll calls, check individual positions, and explain the chamber’s result in a local legislative report.

Trade association legislative briefing

Prepare a factual briefing on House action affecting an industry. Combine the relevant delegation and committee assignments with recent voting records, bill roll calls, individual positions, and overall results.

Civics lesson with actual House records

Build a lesson around a state delegation and a real bill. Introduce the representatives and their committee work, review recent activity, then compare a specific representative’s position with the complete roll call.

Public legislative reporting dashboard

Populate a dashboard with a current delegation directory, representative profiles, recent voting records, searchable roll calls, and detailed results. Let readers move from a representative’s recorded position to the chamber-wide vote.

Recent voting activity digest

Summarize recent roll call positions for a current delegation. Add the full vote result when readers need to understand how an individual position compared with the chamber.

Questions about U.S. House representative voting history in opencode

Can opencode use U.S. House representative voting history?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run U.S. House representative voting history like any built-in tool.

How much does U.S. House representative voting history 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 U.S. House representative voting history in opencode?

No. Spiral runs U.S. House representative voting history on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up U.S. House representative voting history in opencode?

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

Does opencode wait while U.S. House representative voting history runs?

U.S. House representative voting history runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How far back do the House Clerk’s online voting records go?

The online roll call archive begins in 1990, the second session of the 101st Congress. That historical coverage differs from the current roster and recent voting records.

How quickly does the House publish vote results?

House roll call tallies are posted online directly following the vote. This describes the House’s publication timing, not a guaranteed refresh interval for an API response.

Does the representative directory include historical rosters?

The documented roster covers current representatives. Use the roll call archive for historical votes rather than treating today’s roster as the House’s composition in an earlier Congress.

How many voting records appear on one page?

U.S. House roll call search returns 10 results per page. U.S. House representative voting history also returns 10 rows per page and continues with the next page number.

Why can a search for H.R. 1 return other bills?

The Clerk’s bill search matches prefixes. HR1 can also match HR1366, so check the complete bill number before using a result.

Get started

Start using U.S. House representative voting history 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