Skip to main content
Glama

Openstates Get Bill

openstates_get_bill
Read-onlyIdempotent

Fetch a single bill with full detail: versions, sponsorships, related/companion bills, actions, and votes. Pass the OpenStates ID (e.g., "ocd-bill/abc...") or a state/session/identifier triple.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "openstates_id": "ocd-bill/ca20232024-ab-123"
    },
    "name": "openstates_get_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionNoSession ID, per state (Ohio "136", California "20252026"); a year or year range is resolved to the state's session. Use with jurisdiction + identifier.
identifierNoBill identifier within the session (e.g., "AB-123")
jurisdictionNoState code (use with session + identifier)
openstates_idNoOpenStates bill ID (preferred, e.g., "ocd-bill/...")

Output Schema

NameRequiredDescriptionDefault
titleNoBill title
votesNo
actionsNo
chamberNoChamber (upper/lower) or organization
sessionNoLegislative session
sourcesNoSource URLs
subjectNoSubject tags
sponsorsNo
versionsNo
identifierNoBill identifier
jurisdictionNoState or jurisdiction name
latest_actionNoDescription of latest action
openstates_idNoOpenStates bill ID
classificationNoBill type classifications
openstates_urlNoLink to OpenStates page
latest_action_dateNoDate of latest action

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description contributes the depth-of-record expectation (you get versions, sponsorships, votes in one call), but says nothing about authentication, rate limits, or failure modes for an unresolved ID.

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?

Two sentences, front-loaded with the payload description followed by the addressing instruction. No filler, no restatement of the title or of annotation-provided facts.

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?

An output schema exists, so the description needn't explain the return shape, and all four parameters are schema-documented. What's missing is only the edge-case behavior for an all-optional parameter set (neither an ID nor a full triple supplied), which for a read-only lookup tool is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the per-parameter semantics are already documented, including that openstates_id is preferred. The one thing the prose adds is framing the two addressing modes as alternatives (ID or jurisdiction+session+identifier), but it does not state precedence or the error case when both are omitted — baseline 3.

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?

Specific verb+resource ("Fetch a single bill") plus an enumeration of the included sub-resources: versions, sponsorships, related/companion bills, actions, votes. The word "single" implicitly contrasts with the sibling openstates_search_bills, but the contrast is never made explicit, so it stops short of a 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?

Usage is implied — reach for this when you already know which bill you want and need its full record rather than a list. There is no explicit when-not clause, no mention of when to prefer openstates_search_bills, and no statement about what happens if no addressing parameters are supplied (required is empty).

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.