Legislation

U.S. bills, roll-call votes, legislators and 2026 elections for all 50 states, D.C. and Congress.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
87%
Naming quality
99%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~8,579Tokens (tool definitions)
~1.5 KBTypical response size
Significant attention impact (6.70% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "legislation": {
      "url": "https://mcp.delilahusa.com/"
    }
  }
}

Remote endpoints

https://mcp.delilahusa.com/streamable-http

What it can do

Tool inventory

Tools (36)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢search_bills(state, q, topic, subject, sponsor_last_name, ...)

Search or list legislation with structured filters (GET /v1/bills). Use this when you know the jurisdiction, sponsor, topic, or status you want. Every filter is optional and they combine with AND. A bill number typed into q (e.g. 'HB 1', 'SB0002') matches that bill directly. Returns bill summaries plus pagination; call get_bill for the full record. Corpus is 2026-forward only. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers, 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "2-letter postal code (e.g. FL), DC, or US for Congress.",
      "type": "string"
    },
    "q": {
      "description": "Free-text search across title, description, and subject names.",
      "type": "string"
    },
    "topic": {
      "description": "Canonical topic slug, e.g. 'healthcare'. See list_topics.",
      "type": "string"
    },
    "subject": {
      "description": "Raw subject name (ILIKE match).",
      "type": "string"
    },
    "sponsor_last_name": {
      "description": "Last name of a bill sponsor.",
      "type": "string"
    },
    "bill_number": {
      "description": "Bill number, compact (HB1) or padded (HB0001).",
      "type": "string"
    },
    "session_id": {
      "description": "Narrow to one session.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "status_id": {
      "description": "Filter by status. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers, 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "title_contains": {
      "description": "Substring match against the bill title only.",
      "type": "string"
    },
    "updated_since": {
      "description": "ISO-8601 date or timestamp; only bills changed since then.",
      "type": "string"
    },
    "include_sponsors": {
      "description": "Attach a sponsors array (people_id, name, party, district, sponsor_type) to every bill. Use this whenever the answer needs to name who sponsored the bills.",
      "type": "boolean"
    },
    "limit": {
      "description": "Max rows to return (default 25).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "offset": {
      "description": "Pagination offset.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢semantic_search_bills(query, state, limit, threshold)

Vector search over the full text of every bill (GET /v1/search/semantic): describe what you want in plain English — 'protecting kids from social media', 'limits on rent increases' — and get the closest bills with a match_score. Prefer this over search_bills for questions and topics; prefer search_bills for a known bill number, sponsor, or status filter, and keyword_search_bills for exact terms that must all appear. Returns bill_id, bill_number, title, description, state_abbr, status_id. Corpus is 2026-forward only. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers, 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "The question or description, in plain English."
    },
    "state": {
      "description": "Restrict to these jurisdictions (postal codes, DC, US). Omit for all.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 2
      }
    },
    "limit": {
      "description": "Max rows (default 25).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "threshold": {
      "description": "Minimum similarity 0-1 (default 0.3). Lower it to widen the net.",
      "type": "number",
      "minimum": 0,
      "maximum": 1
    }
  },
  "required": [
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_bill(bill_id, include, max_items, detail)

Fetch a single bill by its numeric bill_id (GET /v1/bills/{bill_id}), optionally merging in sub-resources: votes (roll calls with tallies), sponsors, history (action timeline), texts (version metadata), amendments, subjects, analyses (staff analyses), calendar (scheduled events), citations (statutes the bill touches), referrals (committee referrals), sast (same-as / similar-to companion bills in the other chamber or other states), supplements (fiscal notes and summaries). analyses and citations are populated only for the deeper-coverage states. Each include is a separate API call, so ask only for what you need. Pass detail:true to get everything in one round trip instead. Get a bill_id from search_bills or semantic_search_bills. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers, 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.

Input Schema

{
  "type": "object",
  "properties": {
    "bill_id": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Numeric bill_id from a search result."
    },
    "include": {
      "description": "Sub-resources to merge into the result: votes, sponsors, history, texts, amendments, subjects, analyses, calendar, citations, referrals, sast, supplements.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "votes",
          "sponsors",
          "history",
          "texts",
          "amendments",
          "subjects",
          "analyses",
          "calendar",
          "citations",
          "referrals",
          "sast",
          "supplements"
        ]
      }
    },
    "max_items": {
      "description": "Cap on items per included list (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "detail": {
      "description": "true = one request to /v1/bills/{id}/detail with every sub-resource merged (the cheapest way to get everything). Ignores include.",
      "type": "boolean"
    }
  },
  "required": [
    "bill_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_bill_diff(bill_id, from, to)

Compare two versions of a bill's text (GET /v1/bills/{bill_id}/diff): a unified diff plus similarity, added/removed line and character counts, and changed-section highlights. Get the two version ids from get_bill with include:['texts'] — each text row's `text_id`. Pass them as `from` (the earlier version) and `to` (the later version). Diffs are precomputed, so only bills that have more than one text version return one.

Input Schema

{
  "type": "object",
  "properties": {
    "bill_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "bill_id the two texts belong to."
    },
    "from": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "Text-version id of the earlier version (the baseline)."
    },
    "to": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "Text-version id of the later version to compare against."
    }
  },
  "required": [
    "bill_id",
    "from",
    "to"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢keyword_search_bills(keywords, state, limit, offset)

Keyword search where EVERY term must appear (GET /v1/search/bills). Use when the user gives specific words that all have to be present, e.g. ['short-term rental', 'tax']. Prefer semantic_search_bills for questions and search_bills for structured filters. Up to 10 terms. Returns bill summaries plus pagination. Corpus is 2026-forward only.

Input Schema

{
  "type": "object",
  "properties": {
    "keywords": {
      "minItems": 1,
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "Terms that must all match."
    },
    "state": {
      "description": "Jurisdictions (postal codes, DC, US). Omit for all.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 2
      }
    },
    "limit": {
      "description": "Max rows (default 25).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "offset": {
      "description": "Pagination offset.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "keywords"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_bill_text(text_id)

The cleaned plain text of one bill-text version (GET /v1/texts/{text_id}), entities decoded, ready to quote or summarize. Get text_id from get_bill with include:['texts'] (each version has a date and type). Texts longer than 40,000 characters are clipped with a '[truncated]' marker.

Input Schema

{
  "type": "object",
  "properties": {
    "text_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "text_id from get_bill include:['texts']."
    }
  },
  "required": [
    "text_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_bill_text_history(bill_id, include_whitespace)

Timeline of all computed diffs between successive text versions of one bill (GET /v1/bills/{bill_id}/changes): what changed, when, and how much. Use get_bill_diff for one specific pair of versions. Get bill_id from search_bills or semantic_search_bills.

Input Schema

{
  "type": "object",
  "properties": {
    "bill_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "bill_id from a search result."
    },
    "include_whitespace": {
      "description": "Include whitespace-only changes (default false).",
      "type": "boolean"
    }
  },
  "required": [
    "bill_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_legislators(state, q, party, chamber, district, ...)

Search or list legislators (GET /v1/legislators) by jurisdiction, chamber, party, district, or name. This is how you turn a name into the people_id that get_legislator needs. Filters combine with AND.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "2-letter postal code (e.g. FL), DC, or US for Congress.",
      "type": "string"
    },
    "q": {
      "description": "Name search.",
      "type": "string"
    },
    "party": {
      "description": "Party filter.",
      "type": "string"
    },
    "chamber": {
      "description": "Chamber filter, e.g. House or Senate.",
      "type": "string"
    },
    "district": {
      "description": "District identifier.",
      "type": "string"
    },
    "limit": {
      "description": "Max rows to return (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "offset": {
      "description": "Pagination offset.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_legislator(people_id, include, limit)

Fetch a legislator's profile by people_id (GET /v1/legislators/{people_id}), optionally merging in votes (every roll call they are recorded on, newest first, with their individual position: 1=Yea, 2=Nay, 3=Not Voting, 4=Absent) and bills (legislation they sponsor, with sponsor_type_id 1=primary, 2=cosponsor). Find a people_id with list_legislators or from a bill's sponsors. Corpus is 2026-forward only.

Input Schema

{
  "type": "object",
  "properties": {
    "people_id": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Numeric people_id (int64 — many exceed int32)."
    },
    "include": {
      "description": "Sub-resources to merge in: votes, bills.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "votes",
          "bills"
        ]
      }
    },
    "limit": {
      "description": "Rows per included sub-resource (default 25).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "people_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟡get_roll_call(roll_call_id, include, max_items)

Fetch a roll call by roll_call_id (GET /v1/votes/{roll_call_id}): the motion, chamber, date and yea/nay/absent tallies. Add include:['details'] to also pull how every individual member voted (vote_id 1=Yea, 2=Nay, 3=Not Voting, 4=Absent) — this is the tool for 'how did each legislator vote on this'. Get a roll_call_id from get_bill with include:['votes'].

Input Schema

{
  "type": "object",
  "properties": {
    "roll_call_id": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Numeric roll_call_id (int64 — may exceed int32)."
    },
    "include": {
      "description": "Add 'details' for individual member positions.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "details"
        ]
      }
    },
    "max_items": {
      "description": "Cap on member rows returned (default 200 — enough for any single chamber).",
      "type": "integer",
      "minimum": 1,
      "maximum": 500
    }
  },
  "required": [
    "roll_call_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_legislator_scorecard(people_id)

One-call voting and sponsorship profile for a legislator (GET /v1/legislators/{people_id}/scorecard): participation, party-line alignment, bills sponsored and passed, notable votes. This is the tool for 'how does X vote' or 'is X effective'. Get people_id from list_legislators (q=name).

Input Schema

{
  "type": "object",
  "properties": {
    "people_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "people_id from list_legislators."
    }
  },
  "required": [
    "people_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_committees(state, chamber, q, limit)

List legislative committees (GET /v1/committees), filterable by jurisdiction, chamber, or name search. Returns the committee_id values that get_committee needs.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "2-letter postal code (e.g. FL), DC, or US for Congress.",
      "type": "string"
    },
    "chamber": {
      "description": "Chamber filter, e.g. House or Senate.",
      "type": "string"
    },
    "q": {
      "description": "Name search.",
      "type": "string"
    },
    "limit": {
      "description": "Max rows to return (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_committee(committee_id, include, max_items)

Fetch a committee by committee_id (GET /v1/committees/{committee_id}), optionally merging in members (its roster, with roles) and hearings (its scheduled meetings). Find a committee_id with list_committees.

Input Schema

{
  "type": "object",
  "properties": {
    "committee_id": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Numeric committee_id."
    },
    "include": {
      "description": "Sub-resources to merge in: members, hearings.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "members",
          "hearings"
        ]
      }
    },
    "max_items": {
      "description": "Cap on items per included list (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "required": [
    "committee_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_hearings(state, since, limit)

Scheduled committee hearings across committees (GET /v1/hearings), filterable by jurisdiction and start date. Use this to answer 'what is being heard this week' or to track when a committee next meets. For hearings on one specific committee use get_committee with include:['hearings']; for one specific bill use get_bill with include:['calendar'].

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "2-letter postal code (e.g. FL), DC, or US for Congress.",
      "type": "string"
    },
    "since": {
      "description": "ISO-8601 date or timestamp; only hearings on or after it.",
      "type": "string"
    },
    "limit": {
      "description": "Max rows to return (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_changes(since, state, reason, limit)

Near-real-time feed of what changed (GET /v1/changes). Poll with since=<ISO timestamp> to get everything newer than your cursor; with no since it defaults to the last hour. Reason types include NewBill, StatusChange, Text, Vote and Amendment. Use this for monitoring and incremental sync — 'what moved in Florida since yesterday' — rather than re-scanning search_bills.

Input Schema

{
  "type": "object",
  "properties": {
    "since": {
      "description": "ISO-8601 cursor. Omit for the last hour. Pass the newest timestamp you have already seen.",
      "type": "string"
    },
    "state": {
      "description": "2-letter postal code (e.g. FL), DC, or US for Congress.",
      "type": "string"
    },
    "reason": {
      "description": "Restrict to one change type, e.g. NewBill, StatusChange, Text, Vote, Amendment.",
      "type": "string"
    },
    "limit": {
      "description": "Max rows to return (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_topics(slug, max_items)

The canonical topic taxonomy with per-topic bill counts (GET /v1/topics). Call this first to find the right slug for the topic filter on search_bills, instead of guessing one. Pass a slug to get that topic's detail and a sample of the raw subject names folded into it (GET /v1/topics/{slug}); to get the topic's actual bills, use search_bills with topic=<slug>.

Input Schema

{
  "type": "object",
  "properties": {
    "slug": {
      "description": "Optional topic slug, e.g. 'healthcare'. Omit to list the whole taxonomy.",
      "type": "string"
    },
    "max_items": {
      "description": "Cap on rows returned (default 200).",
      "type": "integer",
      "minimum": 1,
      "maximum": 500
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_subjects(state, q, max_items)

The raw subject taxonomy with per-subject bill counts (GET /v1/subjects). Subjects are the fine-grained categories the legislatures themselves assign to bills — narrower and more numerous than the curated topic slugs from list_topics. Use this to find a subject_id to filter search_bills by, or to gauge what a jurisdiction is legislating on. Scope with `state` and narrow with `q`.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "2-letter postal code (e.g. FL), DC, or US for Congress.",
      "type": "string"
    },
    "q": {
      "description": "Case-insensitive subject-name search.",
      "type": "string"
    },
    "max_items": {
      "description": "Cap on rows returned (default 200).",
      "type": "integer",
      "minimum": 1,
      "maximum": 500
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_sessions(state, max_items)

Legislative sessions (GET /v1/sessions): regular and special sessions with their years, start/sine-die dates and a session_id. Use this to resolve which session a bill belongs to, to find the current session for a state, or to pass session_id as a filter to search_bills. Omit `state` to list every jurisdiction's sessions. Corpus is 2026-forward only.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "2-letter postal code (e.g. FL), DC, or US for Congress.",
      "type": "string"
    },
    "max_items": {
      "description": "Cap on rows returned (default 200).",
      "type": "integer",
      "minimum": 1,
      "maximum": 500
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_session_dashboard(session_id)

Headline counts for one legislative session (GET /v1/sessions/{id}/dashboard): bills filed, passed, signed, vetoed, roll calls, active legislators. Start here for 'how is the 2026 Florida session going'. Get session_id from list_sessions.

Input Schema

{
  "type": "object",
  "properties": {
    "session_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "session_id from list_sessions (filter by state)."
    }
  },
  "required": [
    "session_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟡get_session_sponsor_stats(session_id, chamber, party, sort, include_committees, ...)

Legislators ranked by bills sponsored and passed in one session (GET /v1/sessions/{id}/sponsor-stats). Each row has bills_sponsored, bills_primary, bills_passed, bills_primary_passed and pass_rate (passed = status 4, 5 or 8). This is the one call for 'who is most active or effective this session' and 'which senator passed the most bills': set chamber and sort:'passed' (or 'primary_passed' to count only bills they carried). Committees filed as sponsors are excluded by default. Get session_id from list_sessions.

Input Schema

{
  "type": "object",
  "properties": {
    "session_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "session_id from list_sessions (filter by state)."
    },
    "chamber": {
      "description": "Restrict to one chamber.",
      "type": "string",
      "enum": [
        "senate",
        "house"
      ]
    },
    "party": {
      "description": "Restrict to one party.",
      "type": "string",
      "enum": [
        "D",
        "R"
      ]
    },
    "sort": {
      "description": "Ranking key (default sponsored).",
      "type": "string",
      "enum": [
        "sponsored",
        "passed",
        "primary_passed",
        "pass_rate"
      ]
    },
    "include_committees": {
      "description": "Include committee sponsor rows (default false).",
      "type": "boolean"
    },
    "limit": {
      "description": "Max rows (default 40).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "required": [
    "session_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_session_vote_participation(session_id, limit)

How many roll calls each legislator voted in versus missed during one session (GET /v1/sessions/{id}/vote-participation). Use for attendance questions. Get session_id from list_sessions.

Input Schema

{
  "type": "object",
  "properties": {
    "session_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "session_id from list_sessions (filter by state)."
    },
    "limit": {
      "description": "Max rows (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 500
    }
  },
  "required": [
    "session_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_session_legislators(session_id)

Every legislator who served in one session (GET /v1/sessions/{id}/legislators), with people_id. Use list_legislators for the current roster by state; use this for a specific past or special session. Get session_id from list_sessions.

Input Schema

{
  "type": "object",
  "properties": {
    "session_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "session_id from list_sessions (filter by state)."
    }
  },
  "required": [
    "session_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_session_breakdown(session_id, by)

Bill count per status (by:'status', on the status_id ladder) or per subject (by:'subject') for one session (GET /v1/sessions/{id}/status-counts or /subject-counts). Get session_id from list_sessions. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers, 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.

Input Schema

{
  "type": "object",
  "properties": {
    "session_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "session_id from list_sessions (filter by state)."
    },
    "by": {
      "type": "string",
      "enum": [
        "status",
        "subject"
      ],
      "description": "Group by status or by subject."
    }
  },
  "required": [
    "session_id",
    "by"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_states

The jurisdiction directory (GET /v1/states): the 50 states, D.C. and the U.S. Congress with their state_id, 2-letter code and full name. Returns the full list (52 rows) so you can resolve a name to a code or enumerate everything the corpus covers. For how COMPLETE each jurisdiction's data is, use get_coverage instead.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_coverage(max_items)

Per-state depth snapshot (GET /v1/coverage): how COMPLETE each jurisdiction's data is — bill counts, the share of bills holding at least one vote, text or sponsor, and whether the legislature is currently in session. Use it before drawing conclusions from a thin result set, to tell 'no such bills' apart from 'this state is thinly covered'. Read the completeness ratios rather than the raw percentages: most bills die in committee without ever getting a roll call, so a low pct_with_votes usually reflects the legislature, not a gap in the data. Served from a materialised snapshot; `computed_at` gives its age.

Input Schema

{
  "type": "object",
  "properties": {
    "max_items": {
      "description": "Cap on rows returned (default 60 — all jurisdictions).",
      "type": "integer",
      "minimum": 1,
      "maximum": 60
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_trending_bills(state, days, limit)

Bills with the most news coverage in the window (GET /v1/trending), optionally for one state. Use for 'what's in the news' or 'hot bills right now'. Returns bill summaries with mention counts; call get_bill for detail.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "Postal code, DC, or US. Omit for all.",
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "days": {
      "description": "Look-back window in days (default 7).",
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    },
    "limit": {
      "description": "Max rows (default 20).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_bills_by_stage(stage, days, limit)

Bills whose LATEST action in the window falls in a stage (GET /v1/bills-by-stage): introduced, committee, passed, executive (with the governor, signed, or vetoed), amendments, other. Fleet-wide across all jurisdictions — there is no state filter, so filter the rows by state_id or state_name yourself. Classified from the action text, not status_id. Use for 'what passed this week' or 'what reached the governor'. Stage values are lowercase.

Input Schema

{
  "type": "object",
  "properties": {
    "stage": {
      "type": "string",
      "enum": [
        "introduced",
        "committee",
        "passed",
        "executive",
        "amendments",
        "other"
      ],
      "description": "Lowercase stage name."
    },
    "days": {
      "description": "Look-back window in days (default 7).",
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    },
    "limit": {
      "description": "Max rows (default 100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "required": [
    "stage"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_weekly_stage_breakdown(days)

One row per stage with the number of bills whose latest action landed there in the window (GET /v1/bills-weekly-breakdown). All jurisdictions combined. Use for a national 'how much moved this week' number; use get_session_dashboard for one state.

Input Schema

{
  "type": "object",
  "properties": {
    "days": {
      "description": "Look-back window in days (default 7).",
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢list_candidates(state, office, cycle, bioguide, fec_id, ...)

Search the election-candidate directory (GET /v1/candidates): people running for office. Filters combine with AND. Roughly a third carry an FEC filer id and sitting members of Congress carry a Bioguide id; both are null otherwise. Rows also carry people_id where the person has a legislative voting record — pass it to get_legislator / get_legislator_scorecard to go from candidate to voting history in one hop. Covers STATE and federal candidates. Pass a candidate id to get_candidate for the full record.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "2-letter postal code filter.",
      "type": "string"
    },
    "office": {
      "description": "Office filter: H, S, P, House, Senate, President, or a whole word from a state office name (min 3 chars; unknown short values are rejected).",
      "type": "string"
    },
    "cycle": {
      "description": "Election cycle / year filter, e.g. 2026.",
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ]
    },
    "bioguide": {
      "description": "Filter by federal Bioguide id.",
      "type": "string"
    },
    "fec_id": {
      "description": "Filter by FEC filer id.",
      "type": "string"
    },
    "limit": {
      "description": "Max rows to return (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "offset": {
      "description": "Pagination offset.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_candidate(id)

Fetch one election candidate by id (GET /v1/candidates/{id}): their party, office, district and cycle, plus an FEC filer id where the campaign has filed and a Bioguide id for sitting members of Congress. When people_id is set, the candidate has a legislative voting record — pass it to get_legislator or get_legislator_scorecard to go from candidate to voting history in one hop. Get an id from list_candidates.

Input Schema

{
  "type": "object",
  "properties": {
    "id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "Candidate id from list_candidates or get_midterms."
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_midterms(state, level, chamber, q, year, ...)

The election slate for 2026-11-03 (GET /v1/midterms): races, candidates and ballot measures per state, with official results where available. All data is official state election-office and FEC content collected by Delilah — no third-party attribution is required. live_results carries ONE ENTRY PER CONTEST, each with `contest` (e.g. primary:DEM, runoff:REP) and `party`: a closed primary returns each party separately and vote_pct is the share of THAT party's ballot, so never compare or rank candidates across two contests. Use for 'who is running for X' and results questions. Never call or project a race; report counts exactly as reported.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "Postal code. Omit for all states.",
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "level": {
      "description": "federal | governor | state_executive | state_legislative",
      "type": "string",
      "enum": [
        "federal",
        "governor",
        "state_executive",
        "state_legislative"
      ]
    },
    "chamber": {
      "description": "House | Senate",
      "type": "string"
    },
    "q": {
      "description": "Candidate or race name search.",
      "type": "string"
    },
    "year": {
      "description": "Election year (default 2026).",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "limit": {
      "description": "Max rows (default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "offset": {
      "description": "Pagination offset.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_ballot_measure(state, number, type, q, limit, ...)

Ballot measures (GET /v1/measures): the list for a state, or one measure by its number (e.g. 'Amendment 1') with full text, summary and official source URL. Use for 'what's on the ballot in X' and 'what does Amendment N do'.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "description": "Postal code."
    },
    "number": {
      "description": "Exact measure number (e.g. 'Amendment 1') to fetch one measure.",
      "type": "string"
    },
    "type": {
      "description": "Measure type filter.",
      "type": "string"
    },
    "q": {
      "description": "Title search.",
      "type": "string"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "state"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟡list_districts(state, type, district_id, boundary, simplify, ...)

District metadata by state and type (GET /v1/districts): congressional, state senate, state house. Pass district_id with boundary:true to get the polygon as GeoJSON (GET /v1/districts/{id}/boundary) — it is large, so set simplify (degrees, e.g. 0.01) to shrink it. Match districts NUMERICALLY (district_number), never by label text.

Input Schema

{
  "type": "object",
  "properties": {
    "state": {
      "description": "Postal code.",
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "type": {
      "description": "congressional | sldu (state senate/upper) | sldl (state house/lower)",
      "type": "string",
      "enum": [
        "congressional",
        "sldu",
        "sldl"
      ]
    },
    "district_id": {
      "description": "A district id from a previous list call (for boundary:true).",
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ]
    },
    "boundary": {
      "description": "true = return the GeoJSON polygon for district_id.",
      "type": "boolean"
    },
    "simplify": {
      "description": "Simplification tolerance in degrees.",
      "type": "number",
      "minimum": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_candidate_photo(candidate_id)

The URL of a candidate's official portrait (GET /v1/photos/{candidate_id} returns the image bytes). Sources are official state-legislature and congressional portraits, public-domain and licensed images only — never a third party's photo library — and each carries a license and attribution string that MUST be shown when the license requires it (Wikimedia CC BY). Returns null when the candidate has no accepted portrait — which is the COMMON case: only about a tenth of the 2026 field has one (11%), so design for an initials-avatar default. Candidate rows from list_candidates and get_midterms already include photo_url, so call this only when you have just an id.

Input Schema

{
  "type": "object",
  "properties": {
    "candidate_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "string"
        }
      ],
      "description": "Candidate id."
    }
  },
  "required": [
    "candidate_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢get_usage

The current key's tier, monthly cap, requests used and remaining, and when the period resets (GET /v1/_meta/usage). Call this when a request is rate-limited (HTTP 429) or the user asks about their plan.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟡manage_webhooks(action, webhook_url, events, states, subjects, ...)

Manage the key's webhook subscriptions (/v1/webhooks). action:'list' is read-only. 'create' REGISTERS a URL that Delilah will POST to on the chosen events — it changes the account, so it requires confirm:true and the user's explicit go-ahead. 'test' queues a sample delivery to an existing subscription. 'delete' removes one (confirm:true). Events: bill_introduced, status_change, vote_recorded, text_updated, passed, vetoed, signed, amendment_added. Optional filters: states (postal codes), subjects.

Input Schema

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "list",
        "create",
        "test",
        "delete"
      ]
    },
    "webhook_url": {
      "description": "create: HTTPS URL to deliver to.",
      "type": "string",
      "format": "uri"
    },
    "events": {
      "description": "create: at least one event type.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "bill_introduced",
          "status_change",
          "vote_recorded",
          "text_updated",
          "passed",
          "vetoed",
          "signed",
          "amendment_added"
        ]
      }
    },
    "states": {
      "description": "create: only fire for these jurisdictions.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 2
      }
    },
    "subjects": {
      "description": "create: only fire for these subjects.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "webhook_id": {
      "description": "test/delete: the subscription id from list.",
      "type": "string"
    },
    "confirm": {
      "description": "Required true for create and delete.",
      "type": "boolean"
    }
  },
  "required": [
    "action"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded36 tools