Skip to main content
Glama

Laws a bill changes

get_bill_statutes
Read-only

The sections of existing law a bill amends, creates, repeals or cites (GET /v1/bills/{bill_id}/statutes), classified by how it touches each, with the current text of sections we hold. Use for 'what current law does this bill change'. Get bill_id from search_bills. Only states whose code is loaded resolve to section text (see list_statute_coverage); a link to a section we hold carries resolved:true and the text, otherwise just the citation as written.

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": {
      "bill_id": "<bill_id>"
    },
    "name": "get_bill_statutes"
  }
}

Input Schema

NameRequiredDescriptionDefault
bill_idYesNumeric bill_id from a search result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnly, openWorld, non-destructive), the description adds valuable behavioral context: it explains that results are classified by how the bill touches each section, that current text is included only for sections the service holds, and that resolution depends on the state's code being loaded. It also introduces the `resolved:true` flag for held sections. This goes well beyond the safety profile already provided by annotations.

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?

The description is front-loaded with the core purpose and efficiently packs the key behaviors (classification, resolution, coverage caveat) into a few sentences. It is slightly dense but avoids redundancy; the endpoint path is arguably extra but not harmful. Overall it is well-structured and wastes little space.

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 read-only, single-parameter tool with no output schema, the description provides everything an agent needs: what the tool returns (sections with classification and optional text), how to obtain the required parameter, the coverage limitation tied to list_statute_coverage, and the meaning of the resolved flag. No critical gaps remain.

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 description coverage is 100%, so the single parameter is fully documented in the schema. The description adds only a small hint ('Get bill_id from search_bills'), which is already implied by the schema text 'Numeric bill_id from a search result.' No additional syntax or format meaning is provided, so the baseline 3 applies.

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 states a specific verb and resource: 'The sections of existing law a bill amends, creates, repeals or cites'. It distinguishes the tool from siblings like get_bill_diff and search_statutes by focusing on statutory sections touched by a bill and including the endpoint. An agent can immediately tell what this tool returns.

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?

The description gives a clear when-to-use statement: 'Use for "what current law does this bill change"' and tells the agent where to get the required bill_id ('from search_bills'). It does not explicitly mention alternatives (e.g., get_bill_diff or get_statute) or when not to use this tool, which keeps it from a 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.

Resources