Skip to main content
Glama

Payments Law EU

Compare versions

compare_versions
Read-onlyIdempotent

What changed in this article between two texts of the same instrument? Serves the word-level comparison the build published: a pair is servable if and only if a diff artefact exists for it — the PSR and PSD3 proposal↔compromise pairs and nothing else. Every other pair, including every consolidated instrument's pinned as-adopted text, is refused with the URL where that text is published; this service never recomputes a comparison. Pairs match in either direction, and a reversed request is the same artefact with the ops inverted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
cursorNo
to_locatorNoThe article on the to side.
from_locatorNoThe article on the from side. Alignment is identity on the article number, so naming either side names both.
instrument_idYesRegistry id of the instrument, e.g. "psr".
to_version_idYesVersion id the other side.
from_version_idYesVersion id one side of the pair.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
errorYes
coverageYes
warningsYes
paginationYes
provenanceYes
derivationsYes
corpus_releaseYes

TDQS

A4.6/5.0
Behavior5/5

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

The description goes well beyond the readOnly/idempotent annotations: it discloses that the service never recomputes comparisons, refuses unsupported pairs by returning the published URL, and treats reversed requests as the same artefact with inverted operations. This gives the agent critical behavioral expectations not available from annotations alone.

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 dense and contains no filler; every clause conveys a constraint or behavior. It is somewhat run-on with heavy em-dash usage, which slightly reduces scanability, but it is still compact and information-rich.

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?

Given the output schema and annotations, the description provides everything an agent needs to decide whether to call this tool and what to expect: supported pairs, refusal behavior, no recomputation, direction symmetry, and the fact that it is a read-only idempotent operation. The unusual 'servable iff diff artefact exists' restriction is fully explained.

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 covers most parameter meanings, and the description adds useful semantic context: the two version ids must belong to the same instrument, and their order is reversible with the operation direction inverted. It does not describe pagination parameters, but those are adequately implied by limit/cursor and the existing output 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?

The description states a specific operation: returning a word-level comparison of an article between two versions of the same instrument. It also clearly delimits the scope to precomputed diff artefacts (PSR and PSD3 proposal↔compromise pairs), which distinguishes it from generic comparison or retrieval tools like list_version_changes or get_provision.

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 explicitly says a pair is servable if and only if a diff artefact exists, names the only supported pairs, and states that every other pair is refused. It gives a clear when-to-use rule and an explicit exclusion, though it does not name alternative sibling tools for the refused cases beyond pointing to the published URL.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct legal-research action: retrieval by anchor, full-text search, citation resolution, definition lookup, version diffing, and orientation. Even the paired simple/advanced tools (fetch vs get_provision, search vs search_legislation) explicitly direct agents to the fuller variant.

Naming Consistency4/5

The set is almost uniformly snake_case verb-object: get_*, list_*, search_*, compare_versions, resolve_citation. The bare-verb fetch and search are minor deviations from the verb-noun pattern but are recognizable and consistent in style.

Tool Count5/5

Thirteen tools is well-scoped for a legal corpus server: each tool represents a distinct mode of access or workflow stage, without redundant bulk. The count is comfortably within the ideal range and every tool appears to earn its place.

Completeness5/5

For a read-only legal research corpus, the surface is thorough: instrument and provision enumeration, full-text retrieval, citation resolution, definition lookup, version comparison, and guided orientation. There are no obvious dead ends; workflows are explicitly described for coverage questions.

Resources