Skip to main content
Glama

Bill counts by status or subject

get_session_breakdown

Bill count per status (by:'status', on the status_id ladder) or per subject (by:'subject') for one session (GET /v1/sessions/{id}/status-counts or /subject-counts). Get session_id from list_sessions. status_id values: 1=Introduced, 2=In Committee, 3=Passed One Chamber, 4=Passed Both Chambers, 5=Signed into Law, 6=Vetoed, 7=Failed/Dead, 8=Chaptered. Aggregate buckets: passed={4,5,8}, failed={6,7}, alive={1,2,3}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
byYesGroup by status or by subject.
session_idYessession_id from list_sessions (filter by state).

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?

With no annotations, the description carries the behavioral burden. It adds valuable detail about the status_id ladder and aggregate buckets (passed, failed, alive), which goes beyond the schema. However, it does not disclose the response shape, pagination, or how subject values are sourced, so transparency is incomplete.

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?

The description is dense but well-structured: main behavior first, then endpoint, prerequisite, status mapping, and aggregate buckets. Every sentence adds useful information with no filler or redundancy.

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 simple count tool with two required parameters, the description covers the main behavior, parameter semantics, and a prerequisite. It lacks an explicit output shape and subject-id source, but the tool's purpose is simple enough that an agent can call it correctly with the provided information.

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. The description adds meaning beyond the schema by mapping status_id values to labels and defining aggregate buckets, which helps an agent construct correct queries. It does not elaborate on subject parameter values, but the enum and endpoint hint are sufficient.

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?

The description clearly states the tool returns bill counts grouped by status or subject for a single session, with explicit endpoint paths. It is specific enough to distinguish from sibling tools like get_session_dashboard or get_weekly_stage_breakdown, though it does not name any alternative directly.

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

Usage Guidelines3/5

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

It provides a useful prerequisite ('Get session_id from list_sessions') and explains the two grouping modes, so an agent knows when this tool is relevant. However, it does not explicitly state when not to use it or which sibling tool might be preferred for other breakdowns, leaving some inference to the agent.

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