Skip to main content
Glama

Bill counts by status or subject

get_session_breakdown
Read-only

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 (for a simple resolution, bill_type_id 2: Adopted, its final step), 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

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.9/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, and non-destructive behavior. The description adds endpoint paths and the full status_id ladder plus aggregate buckets (passed/failed/alive), which is real domain behavior beyond annotations. It does not discuss auth, rate limits, or response shape, but with annotations present this is solid.

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?

A single dense paragraph front-loads purpose, then endpoint, prerequisite, and domain mappings; every clause is useful for interpreting counts. There is no filler.

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 two-parameter count tool with no output schema, it explains grouping modes, status codes, and bucket semantics, which is enough to call and interpret. It stops short of describing exact response shape or subject identifiers, but those are minor gaps.

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 description coverage is 100%, so baseline is 3; the description adds meaning by explaining by='status' vs by='subject' and giving the full status_id mapping and aggregate buckets. It also tells where session_id comes from, exceeding the schema's terse descriptions.

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 states a specific verb ('Bill count') and resource ('per status ... or per subject') scoped to one session, and the title reinforces it. It does not differentiate from siblings such as get_session_dashboard or get_weekly_stage_breakdown, so 4 rather than 5.

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 gives the prerequisite 'Get session_id from list_sessions' and implies use for session-level bill counts, but never says when to choose this over get_session_dashboard, get_weekly_stage_breakdown, or list_bills_by_stage. No explicit exclusions or alternatives are provided.

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