Skip to main content
Glama

get_law_history

Trace how a legal provision changed: list every law that amended it, or compare word-by-word differences between two dates.

Instructions

How a provision changed: every law that changed it, or the word-by-word change between two dates.

From Lexifina's global law record (not the official publisher, and it may lag it; see get_law_on_date).

Args: provision: a citation or name ("Art. 1 GG", "11 U.S.C. 1182") or a path from an earlier answer. jurisdiction: optional country to narrow a citation, e.g. "germany", "us". date_a, date_b: give both (YYYY-MM-DD or "today") for the changes between those dates, word by word. Without them: the list of every law that changed it.

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": {
      "provision": "<provision>"
    },
    "name": "get_law_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
date_aNo
date_bNo
provisionYes
jurisdictionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.4

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the source is Lexifina's global law record rather than the official publisher and that it may lag behind, which is exactly the kind of provenance caveat an agent needs before citing results. It does not mention permissions, rate limits, or explicitly state that the operation is read-only, and the output schema means return shape need not be described.

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 lead sentence is front-loaded and captures both modes before any detail, and the Args block is terse and scannable. A few words could be trimmed (the parenthetical about the official publisher repeats the lag caveat in spirit), but nothing is wasted or buried.

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?

Covers the mode switch, data provenance, and every parameter for a four-parameter tool with an output schema. The remaining gap is edge behavior: it never says what happens if only one of date_a/date_b is supplied, which is a realistic agent mistake given both are optional and independent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate entirely, and it does: provision accepts a citation, a name, or a path from an earlier answer, with two concrete examples ('Art. 1 GG', '11 U.S.C. 1182'); jurisdiction is an optional country narrowing with examples; date_a/date_b specify both accepted formats (YYYY-MM-DD or 'today') and the behavioral effect of supplying both versus neither. This adds meaning no structured field provides.

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 ('How a provision changed') and spells out the two distinct result modes: a list of every law that changed the provision, or a word-by-word diff between two dates. The closing parenthetical explicitly routes to the sibling get_law_on_date for point-in-time text, so an agent can tell the tools apart without opening either 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 a clear rule for selecting between the tool's own two modes: supply both date_a and date_b for a word-by-word diff, omit them for the full list of amending laws. Also names get_law_on_date as the place to go for the official/point-in-time text. It stops short of stating when not to use this tool at all (e.g. for original enactment text, which get_legislation_text may cover).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.