Search Legislators
search_legislatorsFind state legislators. Filter by jurisdiction, name, chamber (upper/lower), party, or district. Returns name, current/prior roles, party, contact details, OpenStates IDs.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"jurisdiction": "CA"
},
"name": "search_legislators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name fragment | |
| page | No | 1-based page | |
| party | No | Party name (e.g., "Democratic", "Republican") | |
| district | No | District identifier | |
| per_page | No | 1-20 (default 20), OpenStates rejects anything above 20 with a 400; a higher value is clamped to 20 and the response says so. Use `page` for more results. | |
| jurisdiction | No | 2-letter state code or name | |
| org_classification | No | upper | lower | legislature |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Current page number | |
| total | Yes | Total matching legislators | |
| returned | Yes | Number of legislators in response | |
| legislators | Yes | ||
| total_pages | Yes | Total number of pages |