Skip to main content
Glama

Get every text diff for a bill

get_bill_text_history
Read-only

Timeline of all computed diffs between successive text versions of one bill (GET /v1/bills/{bill_id}/changes): what changed, when, and how much. Use get_bill_diff for one specific pair of versions. Get bill_id from search_bills or semantic_search_bills.

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_text_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
bill_idYesbill_id from a search result.
include_whitespaceNoInclude whitespace-only changes (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/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 useful behavioral context about what the response contains (what changed, when, how much) and the endpoint path, but says nothing about pagination, response size, or what happens for bills with only one text version, which matters for a potentially long timeline.

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?

Two tight sentences: purpose and scope first, disambiguation and input sourcing second. No filler, though the endpoint path is somewhat redundant with the tool contract.

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 read-only timeline reader with no output schema, the description gives purpose, the alternative tool, input sourcing, and the shape of the returned data. It stops short of covering pagination or empty-timeline behavior, the main remaining 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 description coverage is 100%, including the include_whitespace default, so the schema carries the parameter burden. The description only adds that bill_id can be sourced from search_bills or semantic_search_bills, a small increment over the schema's 'bill_id from a search result'.

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 resource and scope: a timeline of all computed diffs between successive text versions of one bill, plus the underlying endpoint. An agent can immediately distinguish it from get_bill_diff or get_bill_text.

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?

Explicitly routes the agent to get_bill_diff for a single pair of versions, and tells where bill_id comes from (search_bills or semantic_search_bills). The condition that selects each tool is stated rather than inferred.

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