Skip to main content
Glama

Search legislators

list_legislators
Read-only

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.

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": "list_legislators"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoName search.
limitNoMax rows to return (default 50).
partyNoParty filter.
stateNo2-letter postal code (e.g. FL), DC, or US for Congress.
offsetNoPagination offset.
chamberNoChamber filter, e.g. House or Senate.
districtNoDistrict identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds that filters combine with AND, which is real behavioral context, but says nothing about result completeness (e.g. whether 50 is a truncated page) or how to page through results beyond what the schema's limit/offset fields imply.

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 tight sentences: purpose and filters first, then the concrete downstream use. Nothing redundant, no filler, and the actionable routing hint comes early enough to be read.

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

Completeness3/5

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

For a 7-parameter read-only search with no output schema, the definition covers purpose and filter combination but leaves the returned record shape and pagination strategy unstated. An agent knows how to call it, but not what fields to expect back or when to stop paging.

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 coverage is 100%, so each parameter's meaning is already documented (state formats, limit default 50, offset). The description's only addition is 'Filters combine with AND', which is useful interaction semantics but a small increment over the schema.

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

Purpose4/5

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

States a specific verb and resource ('Search or list legislators') plus the backing endpoint (GET /v1/legislators) and the filter axes. It distinguishes itself implicitly from get_legislator by describing the lookup role, but never mentions list_session_legislators, the closest overlapping sibling.

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?

Explicitly routes the agent: 'This is how you turn a name into the people_id that get_legislator needs' tells when to call this before the detail tool. It gives no exclusions or guidance on when the session-scoped sibling should be preferred instead.

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