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.

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "get_bill_diff"
  }
}

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?

The readOnly and non-destructive annotations already establish safety. The description adds useful behavioral context beyond the annotations: diffs are precomputed and only available when multiple text versions exist, and it describes the shape of the returned diff data.

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 tight sentences, front-loaded with the core action and endpoint, followed by prerequisite lookup and availability condition. No sentence is redundant.

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 tool has three required parameters, no output schema, and read-only annotations. The description covers the action, endpoint, id sourcing, ordering semantics, output contents, and the key availability condition, leaving no important gap for correct invocation.

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?

The schema already documents all three parameters at 100% coverage. The description adds practical meaning by naming where the from and to ids come from and by clarifying the earlier/later ordering.

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: compare two versions of a bill's text via GET /v1/bills/{bill_id}/diff. It also distinguishes the output from sibling text tools by naming the unified diff, similarity metrics, and changed-section highlights.

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 explicitly explains how to obtain the required version ids using get_bill with include:['texts'], and states which id is the earlier baseline and which is the later version. It also gives a clear precondition: only bills with more than one text version return a diff.

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