Skip to main content
Glama

Get Bill Details

openstates.legislature.bill_detail
Read-onlyIdempotent

Get full details for a specific US state bill by jurisdiction, session, and bill identifier. Returns complete legislative history including all actions (committee referrals, readings, amendments, final votes), sponsor information, abstract/summary, and roll-call vote counts. Obtain jurisdiction and session from bills_search results. Example: jurisdiction="ca", session="20252026", bill_id="SB 700".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bill_idYesBill identifier within the session (e.g. "SB 700", "HB 1234", "SR 5"). Obtain from bills_search results.
sessionYesLegislative session identifier the bill belongs to (e.g. "20252026", "2024"). Obtain from bills_search results.
jurisdictionYesState abbreviation where the bill was introduced (e.g. "ca" for California, "ny" for New York).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint, and openWorldHint, covering the safety profile. The description adds value by detailing the return contents (legislative history, actions, sponsors, votes) and specifying input provenance, but doesn't discuss pagination or error behavior. Given the annotation coverage, this is solid but not maximal.

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: purpose, return contents, and input provenance with an example. Every sentence earns its place; the description is front-loaded and free of 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 3-parameter lookup with an output schema and safety annotations, the description covers what the tool returns, how to obtain inputs, and gives an example. It doesn't mention rate limits or not-found behavior, but those are minor given the output schema and annotation coverage.

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 baseline is 3. The description adds value by providing a concrete example (jurisdiction='ca', session='20252026', bill_id='SB 700') and explaining that parameters should come from bills_search results, which aids correct invocation.

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 ('Get'), a resource ('full details for a specific US state bill'), and the required identifiers (jurisdiction, session, bill_id). The description clearly differentiates from the sibling bills_search by focusing on retrieval of a known bill's complete details.

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

Usage Guidelines4/5

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

Explicitly instructs to obtain jurisdiction and session from bills_search results, which tells the agent when to use this tool (after search) and points to the alternative. However, it doesn't explicitly state a 'when not to use' condition or name other alternatives, so it's not a full 5.

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.