Skip to main content
Glama

List legislative sessions

list_sessions
Read-only

Legislative sessions (GET /v1/sessions): regular and special sessions with their years, start/sine-die dates and a session_id. Use this to resolve which session a bill belongs to, to find the current session for a state, or to pass session_id as a filter to search_bills. Omit state to list every jurisdiction's sessions. Corpus is 2026-forward only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNo2-letter postal code (e.g. FL), DC, or US for Congress.
max_itemsNoCap on rows returned (default 200).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare read-only, non-destructive, open-world behavior, so the bar is lower. The description adds genuinely non-obvious constraints: the corpus is 2026-forward only, omitting `state` fans out across all jurisdictions, and the payload shape is enumerated. It stops short of covering pagination or how max_items interacts with large result sets.

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?

Three sentences, front-loaded with the resource and endpoint, then use cases, then the scope caveat. Every sentence carries information; no restatement of the title or filler.

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?

For a two-parameter, zero-required listing tool with full schema coverage and no output schema, the description covers purpose, routing, returned fields, and the corpus horizon. Nothing needed to invoke it correctly 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 is 3, but the description adds meaning the schema does not: what omitting `state` actually does (all jurisdictions rather than an error or default state). That optionality semantics is the key decision an agent must make when calling this tool.

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?

The description names the specific resource (legislative sessions) and the fields it returns (years, start/sine-die dates, session_id), plus the underlying endpoint GET /v1/sessions. It is immediately distinguishable from siblings such as get_session_dashboard or list_session_legislators, which operate on a single session rather than enumerating sessions.

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?

It gives three concrete use cases (resolving a bill's session, finding a state's current session, obtaining a session_id for search_bills) and explicitly names the sibling that consumes the output. It also states the condition for the broadest query: omitting `state` lists every jurisdiction.

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