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}.

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>",
      "by": "<by>"
    },
    "name": "get_session_breakdown"
  }
}

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

A4.1/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 real domain context beyond that: the two endpoint routes and the aggregate bucket definitions (passed={4,5,8}, failed={6,7}, alive={1,2,3}), which tell the agent how the returned counts are grouped. It does not mention rate limits or pagination, but none appear relevant for a count endpoint.

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 operation and scoped by the parenthetical; the trailing status_id legend and bucket definitions are dense but each item is load-bearing for interpreting results. It reads as a run-on sentence rather than clearly separated parts, which costs a point.

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 compensates well by defining the status codes and aggregate buckets the response will use, and it names the prerequisite for session_id. It still leaves the literal shape of the response (keys, grouping object per subject) unspecified, so it is strong but not fully complete.

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, but the description goes further by mapping each 'by' value to a distinct endpoint and by enumerating what the status_id ladder means in the results. That gives the agent meaning the schema's one-line enum descriptions do not carry.

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 ('Bill count per status ... or per subject ... for one session') with scope limited to a single session, and names the two underlying endpoints, so an agent can distinguish it from get_weekly_stage_breakdown and get_session_dashboard without inspecting schemas.

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?

Gives a concrete prerequisite ('Get session_id from list_sessions') and explains what each 'by' value selects, but offers no guidance on when to prefer this over sibling breakdown tools such as get_weekly_stage_breakdown or get_session_dashboard. Usage is implied rather than stated.

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