Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LEGISCAN_API_KEYYesYour LegiScan API key obtained from https://legiscan.com/legiscan

Tools

Functions exposed to the LLM to take actions

NameDescription
legiscan_get_legislator_votes

Get how a legislator voted on specific bills. Reduces hundreds of API calls to one. Returns vote positions (Yea/Nay/NV/Absent) for each bill with roll call details.

legiscan_get_primary_authored

Get only bills where a legislator is the PRIMARY author (sponsor_order=1), not co-sponsor. Filters out co-sponsored bills automatically.

legiscan_find_legislator

Find a legislator's people_id by searching their name. Useful as a first step before other queries. Supports partial name matching.

legiscan_get_bill

Get detailed bill information including sponsors, full history, votes, texts, amendments, and supplements. This is the primary tool for bill research.

legiscan_get_roll_call

Get roll call vote details including individual legislator votes. Use roll_call_id from bill.votes[] array.

legiscan_find_bill_by_number

Find a bill by its number within a state's current session or specific session. Handles format variations (AB 858, AB858, AB-858). Returns bill summary if found, null if not.

legiscan_get_person

Get legislator information including party, role, district, and third-party IDs (VoteSmart, OpenSecrets, Ballotpedia, FollowTheMoney).

legiscan_get_session_people

Get all legislators active in a legislative session. Returns list of people with their roles, parties, and districts.

legiscan_search

Full-text search across bill texts. Returns 50 results per page with relevance scores, bill summaries, and URLs. Use for interactive searches.

legiscan_get_session_list

Get list of available legislative sessions. Returns sessions with session_id, years, and state info. Use session_id for subsequent bill lookups.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sh-patterson/legiscan-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server