Skip to main content
Glama

NHLA Liberty Ratings

top_legislators

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
yearNothe rating year; defaults to the most recent session
limitNohow many to list; default 10, maximum 50. Legislators tied with the last one listed are always included
orderNo'highest' (the default) or 'lowest'
partyNolimit to one party: 'R', 'D', 'L' or 'I' (or the party's name)
chamberNo'house' or 'senate'; omit to rank both chambers together

Output Schema

NameRequiredDescriptionDefault
yearYes
notesYes
orderYes
partyNo
rankedYes
sourceYes
chamberNo
summaryNo
returnedYes
unrankedYes
legislatorsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description focuses on the non-obvious behavior: ties at the cutoff are all returned, meaning the result can exceed the requested limit. That is genuinely actionable behavior beyond the annotations, though it does not discuss result ordering details or empty-result handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no filler: the first defines the operation and scope, the second supplies intent-mapping examples, and a closing clause captures the tie caveat. Front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With all five parameters documented and an output schema present, the description needn't explain return values. Combined ranking when chamber is omitted and defaulting to the most recent session are both covered, leaving nothing an agent needs blocked.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and every parameter is already documented in the schema, so the baseline is 3. The description restates the tie behavior that the limit parameter already documents and adds no new syntax, default, or interaction semantics beyond it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Ranks legislators statewide by Liberty Rating score for one session') plus the two axes of variation (highest/lowest, chamber, party). The filtering/ranking framing clearly separates it from siblings like legislator_record and legislator_votes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Concrete natural-language examples ('who scored highest', 'the ten best senators', 'the lowest-rated Republicans') map directly onto parameter combinations, so an agent can recognize when to reach for this tool. It stops short of naming an alternative tool or stating when not to use it, which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources