Skip to main content
Glama

Compare dates

compare_dates
Read-onlyIdempotent

How a provision changed between two dates: a word-level diff of its text on date_a and its text on date_b, and the laws that took effect after date_a, up to and including date_b.

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": {
      "path": "<path>",
      "date_a": "<date_a>",
      "date_b": "<date_b>"
    },
    "name": "compare_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesA provision file, for example united-states/federal/usc/title-11/1182.md, from find_provision.
date_aYesAn in-force date, YYYY-MM-DD, or "today".
date_bYesAn in-force date, YYYY-MM-DD, or "today".
offsetNoWhere the part starts, in characters: the offset the previous part gave for the next one (default 0).
max_charsNoLongest part of the text in one answer (default 40000, at least 1000, at most 100000). A longer text comes in parts.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / date_a / description
      Previous value: -"An in-force date, YYYY-MM-DD, or \"today\". Defaults to today."New value: +"An in-force date, YYYY-MM-DD, or \"today\"."
    • changedInput schema / properties / date_b / description
      Previous value: -"An in-force date, YYYY-MM-DD, or \"today\". Defaults to today."New value: +"An in-force date, YYYY-MM-DD, or \"today\"."
    • changedInput schema / properties / path / description
      Previous value: -"A provision file, for example united-states/federal/usc/title-11/1182.md, germany/bund/acts/grundgesetz/artikel/016a.md or united-kingdom/uk/legislation/uksi/2014/1530/regulation/13.md. Use find_provision to look one up."New value: +"A provision file, for example united-states/federal/usc/title-11/1182.md, from find_provision."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world behavior, so the bar is lower. The description adds genuine context the annotations do not: output is a word-level diff plus the set of laws effective in the interval, and it specifies the half-open interval '(after date_a, up to and including date_b)', which changes how results should be interpreted.

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?

A single front-loaded sentence that defines the operation before its outputs, with no filler. It is dense but every clause carries information; a short structural split between the diff and the laws list would read slightly better.

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?

With an output schema present and 5 fully described parameters, the description needn't explain return shapes or pagination, and it correctly focuses on semantics. It is complete enough to call correctly, though it omits any guidance about when this is the right tool versus the history/change siblings.

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%, so every parameter is already documented, which sets the baseline at 3. The description does add interval semantics for date_a/date_b that the schema lacks (inclusive upper bound, exclusive lower bound), but says nothing about offset/max_chars pagination beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific operation (a word-level diff of one provision's text between two dates) and names the second output (laws taking effect in the interval). It is clearly more specific than a bare verb+resource, but it does not explicitly distinguish itself from plausible siblings such as changes_between or provision_history.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the described return content: use it to see how a single provision changed across two dates. There is no explicit when-to-use statement, no exclusion of alternative tools, and no stated preconditions (e.g., that dates must be in-force dates, which only the schema says).

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.