Skip to main content
Glama

Get one legislator

get_legislator
Read-only

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "people_id": "<people_id>"
    },
    "name": "get_legislator"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows per included sub-resource (default 25).
includeNoSub-resources to merge in: votes, bills.
people_idYesNumeric people_id (int64 — many exceed int32).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare a safe read; the description adds real behavioral detail: sub-resources are merged in via include, votes come newest-first with position codes (1=Yea, 2=Nay, 3=Not Voting, 4=Absent), bills carry sponsor_type_id 1=primary/2=cosponsor, and results are limited per sub-resource. It also discloses a data-coverage boundary (2026-forward only) that no structured field conveys.

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

Conciseness4/5

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

Two sentences, front-loaded with the verb, id key, and endpoint, followed by the discovery route and corpus caveat. The middle sentence is dense with stacked parentheticals, which is efficient but makes it slightly harder to scan.

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

Completeness4/5

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

For a three-parameter read with no output schema, the description covers the optional-merge behavior, ordering, and code meanings well enough to predict the response shape. It stops short of describing the base profile fields returned when include is empty, which is the one remaining gap given there is no output schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks: the enum values "votes" and "bills" are explained in terms of what is actually merged in and how results are ordered, and the position/sponsor_type codes are decoded. It does not add anything for limit or the int64 caveat on people_id, which the schema already covers.

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 (fetch a legislator's profile by people_id) plus the concrete endpoint GET /v1/legislators/{people_id}, which pins down the unit of return. It is clearly distinguishable from list_legislators, which is named as the way to find the id.

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?

"Find a people_id with list_legislators or from a bill's sponsors" gives a concrete prerequisite and points at the alternative for discovery, and "Corpus is 2026-forward only" rules out out-of-scope queries. It does not explicitly state when to prefer the list tool over this one, but the single-record vs. list split is implied clearly.

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