Skip to main content
Glama

Compare a provision on two dates

compare_versions
Read-only

Show what changed in one provision of an act between two days: the version in force on each day and the changed words, removed as [-…-] and added as {+…+}. Use it for "what changed in § 4 EStG since 2020". Pass the kb address too.

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": {
      "kb": "<kb>",
      "act": "<act>",
      "path": "<path>",
      "from": "<from>"
    },
    "name": "compare_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
kbYesAddress of the knowledge base, "owner/name", from list_knowledge_bases.
toNoThe later day, YYYY-MM-DD (default: today).
actYesThe act: its abbreviation ("EStG"), words of its title, or its work_id (unit.work_id in search results, or from list_sources).
fromYesThe earlier day, YYYY-MM-DD.
pathYesThe unit, e.g. "§ 4", "§ 4a", "Art. 1 § 2", "Anl. 1". A paragraph or item ("§ 4 Abs. 2 Z 3") is answered with its whole unit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered upstream. The description's real contribution is disclosing the diff notation (removed as [-…-], added as {+…+}), which is behavioral output context not found in annotations. It says nothing about edge cases such as a provision absent on one of the dates or an empty diff.

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?

Three sentences, front-loaded with the core behavior, then output format, then an example. The trailing 'Pass the kb address too' is mildly redundant with the schema's kb description but is short and harmless.

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 usefully explains how the diff is rendered, and with full schema coverage the parameters need no elaboration. What remains thin is failure-mode behavior — whether the tool errors or returns partial output when the provision or one of the dates falls outside the act's history.

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 description coverage is 100%, so the schema already documents all five parameters including date formats and the act identifier options. The description reinforces the kb requirement ('Pass the kb address too') and the path style, but adds no meaning beyond what the schema states — baseline 3 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?

States a specific verb and resource — 'Show what changed in one provision of an act between two days' — and goes further by naming the two artifacts returned: the version in force on each day plus the changed words. That diff framing separates it from the sibling get_versions without needing to name it.

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?

Supplies an explicit usage cue with a worked example ('what changed in § 4 EStG since 2020'), so the agent knows the intended question shape. It stops short of naming alternatives or exclusions, e.g. when to reach for get_versions or get_provision instead of 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.