Skip to main content
Glama

Get a legislator's scorecard

get_legislator_scorecard
Read-only

One-call voting and sponsorship profile for a legislator (GET /v1/legislators/{people_id}/scorecard): participation, party-line alignment, bills sponsored and passed, notable votes. This is the tool for 'how does X vote' or 'is X effective'. Get people_id from list_legislators (q=name).

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_scorecard"
  }
}

Input Schema

NameRequiredDescriptionDefault
people_idYespeople_id from list_legislators.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context beyond that: it is a single aggregated call rather than a raw fetch, and it discloses the underlying endpoint and the ID-provenance requirement. It does not mention result size, freshness/caching, or what happens when a legislator has too few votes to compute alignment.

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?

Three compact sentences, zero filler: purpose and payload first, then the differentiator/use case, then the dependency. Every clause carries information an agent needs before calling.

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 single-parameter read with no output schema, the description does the necessary work by naming the categories returned. It leaves the actual response shape (field names, nesting, empty-state behavior) unspecified, which is the main remaining gap for an aggregation endpoint.

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?

With one parameter at 100% schema description coverage, the baseline is 3, and the description exceeds it by explaining where people_id comes from (list_legislators with a name query), which the schema field text only repeats in shorthand. It adds no format guidance for the string-vs-integer union the schema allows.

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 pair ('One-call voting and sponsorship profile for a legislator') and enumerates exactly what the profile contains: participation, party-line alignment, bills sponsored and passed, notable votes. The endpoint path and the two exemplar questions ('how does X vote', 'is X effective') make it distinguishable from neighboring tools like get_legislator or get_session_vote_participation without opening a schema.

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?

Gives concrete trigger phrasing ('This is the tool for...') plus the prerequisite step: get people_id from list_legislators using q=name. That is real routing guidance rather than implied usage. It stops short of explicit exclusions, e.g. it never says to use get_legislator instead when only biographical data is needed.

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