Skip to main content
Glama

get_law_on_date

Retrieve a legal provision’s text as in force on a chosen date, including past dates, plus the law that last changed it and a link to the official source.

Instructions

A provision's text as in force on a date (also a past one), with the law that last changed it.

From Lexifina's global law record: a record of about 200 countries' law that keeps every change. Lexifina is not the official publisher and may lag it; the answer links the official page and says how far the record goes. For today's text from the official source, use get_legislation_provision where the jurisdiction has it.

Args: provision: a citation or name, e.g. "Art. 1 GG", "Equality Act 2010 s. 4" (with jurisdiction "gb"), "Article L3141-3 du code du travail", or a path from an earlier answer, e.g. "germany/bund/acts/grundgesetz/artikel/001.md". date: in-force date, YYYY-MM-DD, or "today" (default). jurisdiction: optional country to narrow a citation, e.g. "germany", "de", "France". max_chars: page size (default 60000, at most 100000). offset: character offset to continue from (from the note at the end of a long 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": {
      "provision": "<provision>"
    },
    "name": "get_law_on_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNotoday
offsetNo
max_charsNo
provisionYes
jurisdictionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.4

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does real work: it discloses that Lexifina is not the official publisher, may lag it, that answers link the official page and state coverage extent, and that long texts are paged via offset with a continuation note at the end. Auth, rate limits, and not-found behavior are unaddressed.

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?

Front-loaded with the return content and the sibling routing before the Args block, and the parameter documentation earns its length given zero schema coverage. A few clauses (the 200-countries remark, the repeated framing about the record's lag) could be tightened without losing meaning.

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?

For a 5-parameter read tool with no annotations and no schema descriptions, this covers everything needed: what is returned, the reliability caveat, pagination mechanics, all parameter formats, and the alternative for official current text. The existing output schema handles return-value structure, so nothing essential is missing.

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 Args block must compensate, and it does: provision is illustrated with four distinct citation/path formats, date is specified as YYYY-MM-DD or "today", jurisdiction shows country name and code forms, max_chars gives default and hard cap, and offset explains where the continuation value comes from.

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 with scope: a provision's text as in force on a given date, plus the law that last changed it. It also distinguishes itself from the sibling get_legislation_provision by source (Lexifina record vs official publisher), so an agent can choose 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?

Explicitly routes the agent to get_legislation_provision when today's official text is wanted and the jurisdiction has it, which is a concrete when-to-use-else instruction. It stops short of stating boundaries against other siblings or spelling out when this tool is the wrong choice for non-date queries.

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