Skip to main content
Glama

Member Legislative Stats

member_legislative_stats
Read-onlyIdempotent

ANSWERS "how many bills has Rep. X sponsored", "how bipartisan is Senator Y", "what share of X's bills have other-party cosponsors", legislative activity statistics for ONE member of Congress in one Congress, computed from congress.gov records: bills sponsored, bills cosponsored, sponsored bills that became law, and how many of the member's sponsored bills drew at least one cosponsor from the other major party (checked on the newest bills_analysed of them). These are our own computed counts, not an official score, and not GovTrack's ranked report-card metrics (no percentile/rank is computed). Requires an API key (see get_bill).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "congress": 118,
      "bioguide_id": "R000603"
    },
    "name": "member_legislative_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
congressNoCongress number, e.g. 118 for 2023-2024 (default: the current Congress).
bioguide_idYesThe member's bioguide id, e.g. "R000603" (get_members returns them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds real context beyond that: counts are self-computed rather than official, no percentile/rank, an API key is required, and bipartisan cosponsor checks are sampled over 'the newest bills_analysed'. That sampling caveat is valuable but the description does not explain the return shape or failure modes.

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?

Front-loads the concrete questions the tool answers, then adds the caveats about computed counts and API key. Dense but every clause carries information; the single long sentence is slightly heavy but not padded.

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?

With no output schema, the description carries the burden of describing return values, and it does list the computed metrics (sponsored, cosponsored, became law, bipartisan cosponsor counts). It is complete enough to call correctly, though it omits the exact response structure and the meaning of 'bills_analysed'.

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 both parameters (congress, bioguide_id) are already documented with examples and defaults. The description reinforces the 'one Congress' scoping but adds no syntax or format detail beyond the schema, so baseline 3 applies.

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 ('legislative activity statistics for ONE member of Congress in one Congress') and enumerates the exact questions it answers, plus explicitly distinguishes itself from GovTrack's ranked report-card metrics. An agent can tell precisely what it computes.

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?

The question phrasings ('how many bills has Rep. X sponsored', 'how bipartisan is Senator Y') give clear usage context, and it explicitly excludes the ranked-metric use case. It does not name a sibling alternative for related lookups, so it stops short of full when/when-not routing.

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.