Skip to main content
Glama

Diff two bill-text versions

get_bill_diff
Read-only

Compare two versions of a bill's text (GET /v1/bills/{bill_id}/diff): a unified diff plus similarity, added/removed line and character counts, and changed-section highlights. Get the two version ids from get_bill with include:['texts'] — each text row's text_id. Pass them as from (the earlier version) and to (the later version). Diffs are precomputed, so only bills that have more than one text version return one.

Input Schema

NameRequiredDescriptionDefault
toYesText-version id of the later version to compare against.
fromYesText-version id of the earlier version (the baseline).
bill_idYesbill_id the two texts belong to.

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?

While annotations confirm safety (readOnlyHint: true), the description adds vital behavioral context by specifying that the diff is precomputed. It sets expectations regarding availability, noting that the bill must have more than one text version to return a diff.

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?

The tool packs significant technical and workflow information—input source, parameter roles, and output format—into a concise, front-loaded paragraph without unnecessary 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?

The description is complete, providing all necessary context: how to acquire the input IDs, the roles of the parameters (`from` vs. `to`), and the specific types of analysis the tool performs.

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?

Since schema coverage is 100%, the description focuses on adding semantic context. It clarifies the necessary prerequisite workflow for obtaining the `from` and `to` parameter values, which is essential for agent execution.

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 is highly specific, stating that it compares two versions of a bill and listing the exact metrics provided in the output (unified diff, similarity, line/character counts, and highlights). It clearly distinguishes this function from simple text retrieval tools.

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 provides explicit workflow instructions, noting that the version IDs must first be retrieved from the `get_bill` tool with the `include:['texts']` flag. It also defines the temporal relationship between the `from` and `to` parameters.

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