Skip to main content
Glama

Pension Law Library

compare_versions

Read-only

What changed in a code section or regulation between two dates: changed, added and removed subsections with [-deleted-] and [+inserted+] text.

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": {
      "cite": "<cite>",
      "date1": "<date1>"
    },
    "name": "compare_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
citeYes
date1YesEarlier date YYYY-MM-DD
date2NoLater date YYYY-MM-DD (default today)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real value beyond that by disclosing the output convention: [-deleted-] and [+inserted-] inline markup plus the changed/added/removed categorization. It stops short of covering edge cases such as no-changes results or how large sections are truncated.

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?

A single sentence that front-loads the core question ('What changed...') and then specifies the return shape. No filler, no restatement of the name, and the markup convention is packed into the same sentence efficiently.

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 no output schema, the description carries the burden of explaining return values and does so adequately via the changed/added/removed categories and inline diff markup. The remaining gap is the undocumented 'cite' parameter, which is required and central to invoking the tool 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 67%: date1 and date2 are already documented in the schema, including the 'default today' behavior for date2. The description adds no date-format or semantics detail beyond that, and the required 'cite' parameter is left unexplained in both schema and description, so the mid-tier baseline applies.

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 names a specific operation (diffing a code section or regulation between two dates) and enumerates the result categories: changed, added, and removed subsections. The diff framing naturally separates it from retrieval siblings like get_section and from recency-oriented ones like recent_changes, so an agent can identify it without opening the schema.

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 implied by 'between two dates' — the agent can infer this is the tool for historical comparison rather than current-text lookup. However, there is no explicit when-to-use or when-not-to-use statement and no sibling is named as an alternative, leaving the agent to infer the boundary with recent_changes or get_section.

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