Skip to main content
Glama

Top sponsors in a session

get_session_sponsor_stats
Read-only

Legislators ranked by bills sponsored and passed in one session (GET /v1/sessions/{id}/sponsor-stats). Each row has bills_sponsored, bills_primary, bills_passed, bills_primary_passed and pass_rate (passed = status 4, 5 or 8). This is the one call for 'who is most active or effective this session' and 'which senator passed the most bills': set chamber and sort:'passed' (or 'primary_passed' to count only bills they carried). Committees filed as sponsors are excluded by default. Get session_id from list_sessions.

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": {
      "session_id": "<session_id>"
    },
    "name": "get_session_sponsor_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoRanking key (default sponsored).
limitNoMax rows (default 40).
partyNoRestrict to one party.
chamberNoRestrict to one chamber.
session_idYessession_id from list_sessions (filter by state).
include_committeesNoInclude committee sponsor rows (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds real substance: the exact row fields returned, the definition of "passed" as status 4, 5 or 8, and the default exclusion of committee sponsors. It stops short of covering pagination behavior or limits on total rows, but the notable behavioral traits are disclosed.

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-loaded with the core purpose and uses the intent quotes effectively to anchor selection. It is dense with parentheticals and slightly crowded, but virtually every clause carries information an agent needs.

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 no output schema, the description compensates by enumerating the returned columns and defining pass_rate, and it explains how to obtain the required session_id. Nothing essential for a correct call is missing.

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 would be 3, but the description adds semantic meaning the schema does not: why 'primary_passed' differs from 'passed' (counts only bills the legislator carried) and the practical combination of chamber with sort. That reduces the risk of a wrong enum choice.

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 resource (legislators) and measure (bills sponsored and passed in one session), plus the endpoint path. "This is the one call for 'who is most active or effective this session'" explicitly positions it against siblings like get_session_vote_participation and get_legislator_scorecard.

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

Usage Guidelines5/5

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

Gives concrete when-to-use phrasing tied to user intents and then prescribes how to satisfy them (set chamber and sort:'passed', or 'primary_passed' for carried bills). It also routes the agent to list_sessions for the required session_id and notes the default exclusion of committees.

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