top_legislators
Ranks legislators statewide by Liberty Rating score for one session: the highest or the lowest scorers, in the House, the Senate or both, optionally within one party. Use this for "who scored highest", "the ten best senators" or "the lowest-rated Republicans". Legislators tied at the cut are all returned.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "top_legislators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | the rating year; defaults to the most recent session | |
| limit | No | how many to list; default 10, maximum 50. Legislators tied with the last one listed are always included | |
| order | No | 'highest' (the default) or 'lowest' | |
| party | No | limit to one party: 'R', 'D', 'L' or 'I' (or the party's name) | |
| chamber | No | 'house' or 'senate'; omit to rank both chambers together |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| notes | Yes | ||
| order | Yes | ||
| party | No | ||
| ranked | Yes | ||
| source | Yes | ||
| chamber | No | ||
| summary | No | ||
| returned | Yes | ||
| unranked | Yes | ||
| legislators | Yes |