Skip to main content
Glama

Check & Vote: French and EU parliaments

Compare two versions of a bill's text

compare_texts
Read-onlyIdempotent

Paragraph-level comparison between a text and another version of the same bill, always from the older to the newer. Use it to see what an amendment process or a Senate reading changed. Without 'otherTextId' the previous version of the procedure is used; an error says when no comparison is possible. Long comparisons are cut: the 'truncated' field says so.

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": {
      "textId": "<textId>"
    },
    "name": "compare_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
textIdYesText identifier, from get_bill ('texts') or get_vote ('textId').
otherTextIdNoIdentifier of the version to compare with. Must be one of the 'comparableVersions' of get_text. Default: the previous version.

Output Schema

NameRequiredDescriptionDefault
addedNoNumber of added segments.
afterNoThe newer version.
beforeNoThe older version.
removedNoNumber of removed segments.
modifiedNoNumber of modified segments.
segmentsNoThe segments, in reading order.
alignmentNoHow the two were aligned.
identicalNoTrue when the two versions are identical.
truncatedNoPresent when this answer was shortened to stay short: says what was cut and how to get the rest.
unchangedNoNumber of unchanged segments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses that comparison direction is always older to newer, that a default version is substituted, that an error is raised when no comparison is possible, and that long results are cut with a 'truncated' flag. These are failure modes and output caveats that structured fields do not convey.

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?

Four short sentences, each carrying distinct information, with the core purpose and direction front-loaded before defaults and truncation caveats.

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?

A two-parameter read tool with an output schema and full annotations; the description covers scope, defaults, error conditions, and truncation, which is everything an agent needs to invoke it correctly.

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 coverage is 100% and the schema itself documents both parameters, including the default for 'otherTextId'. The description restates that default and adds the ordinal-direction framing, but contributes essentially no new syntax or constraint detail beyond the schema.

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 and resource ('Paragraph-level comparison between a text and another version of the same bill') plus the fixed direction of comparison. An agent can distinguish this from get_text or search_texts without opening any schema.

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?

Gives concrete when-to-use context ('to see what an amendment process or a Senate reading changed') and explains the default behavior when 'otherTextId' is omitted. It does not explicitly name an alternative tool or state when not to use it, so it stops short of 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