Skip to main content
Glama

Avokata: Lithuanian law & court practice

Versions between two dates

compare_provision_versions
Read-onlyIdempotent

What changed in an act (or one article) between two dates: the version in force on from_date (the baseline) against the one on to_date, and every change that took effect in between, each with its own įsigaliojimo data. Any window works. Returns version metadata and register links. With article, held editions also supply its wording on both dates and a word-level redline; missing wording is reported as not held, never reconstructed from register notes.

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": {
      "from_date": "<from_date>",
      "to_date": "<to_date>"
    },
    "name": "compare_provision_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNo`compact` (the default for a list of articles or a whole act): per article whether it changed, both wordings' dates, the edits and the changed paragraphs - no whole wordings. `full` (the default for one article) adds each article's wording on both dates and the marked text.
articleNoOptional article (`1.125`, `57`, or `58 str. 3 d. 4 p.` for one point): its wording on both dates and a word-level redline (`[-deleted-]`, `{+inserted+}`) where the act's editions are held, plus its own changes in the window from the register's notes. A list (`['57','65','89']` or `57, 65, 89`, up to 25) answers each under `articles` in one call. Without `article` the answer lists EVERY article whose words changed in the window (`articles_changed`, with shortened redlines).
to_dateYesThe later date, `YYYY-MM-DD` (today, say). Must be on or after from_date.
from_dateYesThe earlier date, `YYYY-MM-DD` (a contract date, say). The version in force on it is the baseline; any date works.
act_numberNoAlternative to document_id: the act number or code (`VIII-1864`, `CK`). A list (`['DK','CK','XI-2159']` or `DK, CK, XI-2159`, up to 20) checks every act's window in one call, one compact row each under `acts` (no `article` then).
amended_byNoOptional amending act number (`XV-1058`): with no `article`, keep only the articles whose new wording the register credits to that act - 'what does this amendment change'.
document_idNoThe act to compare, by search hit id. An article id (with `#`) resolves to its act.
jurisdictionNoWhich jurisdiction the act belongs to, as a code. Held: `LT` (Lithuania), `EU` (European Union). Omit for the account's own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / session
      Removed value: -{
      -  "description": "The `session` value the sign-in returned. Pass it on every call in this conversation, so the sign-in survives however this client handles connections; omit it when the user connected with Sign in (OAuth) or a key.",
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • changedInput schema / properties / jurisdiction / description
      Previous value: -"Which jurisdiction the act belongs to (`LT`). Omit for the account's own."New value: +"Which jurisdiction the act belongs to, as a code. Held: `LT` (Lithuania), `EU` (European Union). Omit for the account's own."
  3. Changed1 schema field changed
    • changedInput schema / properties / act_number / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / act_number / description
      Previous value: -"Alternative to document_id: the act number or code (`VIII-1864`, `CK`)."New value: +"Alternative to document_id: the act number or code (`VIII-1864`, `CK`). A list (`['DK','CK','XI-2159']` or `DK, CK, XI-2159`, up to 20) checks every act's window in one call, one compact row each under `acts` (no `article` then)."
  5. Changed1 schema field changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "compact",
      +        "full"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "`compact` (the default for a list of articles or a whole act): per article whether it changed, both wordings' dates, the edits and the changed paragraphs - no whole wordings. `full` (the default for one article) adds each article's wording on both dates and the marked text.",
      +  "title": "Detail"
      +}
  6. Changed1 schema field changed
    • removedInput schema / properties / detail
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "enum": [
      -        "compact",
      -        "full"
      -      ],
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "`compact` (the default for a list of articles or a whole act): per article whether it changed, both wordings' dates, the edits and the changed paragraphs - no whole wordings. `full` (the default for one article) adds each article's wording on both dates and the marked text.",
      -  "title": "Detail"
      -}
  7. Changed1 schema field changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "compact",
      +        "full"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "`compact` (the default for a list of articles or a whole act): per article whether it changed, both wordings' dates, the edits and the changed paragraphs - no whole wordings. `full` (the default for one article) adds each article's wording on both dates and the marked text.",
      +  "title": "Detail"
      +}
  8. Changed3 schema fields changed
    • addedInput schema / properties / amended_by
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional amending act number (`XV-1058`): with no `article`, keep only the articles whose new wording the register credits to that act - 'what does this amendment change'.",
      +  "title": "Amended By"
      +}
    • changedInput schema / properties / article / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / article / description
      Previous value: -"Optional article (`1.125`, `57`, or `58 str. 3 d. 4 p.` for one point): its wording on both dates and a word-level redline (`[-deleted-]`, `{+inserted+}`) where the act's editions are held, plus its own changes in the window from the register's notes."New value: +"Optional article (`1.125`, `57`, or `58 str. 3 d. 4 p.` for one point): its wording on both dates and a word-level redline (`[-deleted-]`, `{+inserted+}`) where the act's editions are held, plus its own changes in the window from the register's notes. A list (`['57','65','89']` or `57, 65, 89`, up to 25) answers each under `articles` in one call. Without `article` the answer lists EVERY article whose words changed in the window (`articles_changed`, with shortened redlines)."
  9. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add behavioral context — and it does, notably the trust caveat that missing wording 'is reported as not held, never reconstructed from register notes', plus what is returned ('version metadata and register links'). It does not discuss pagination or cost of large windows, which keeps it below a 5.

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?

Two sentences, front-loaded with the core diff semantics and the baseline definition before the return shape and caveat. Slight deduction for the unexplained Lithuanian term 'įsigaliojimo data', which adds jargon an agent may not resolve without domain knowledge.

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?

For an 8-parameter tool with no output schema, the description covers the essential return surfaces (`articles`, `articles_changed`, `acts` rows, metadata and register links) and the key edge case of unheld wording. It leaves output field shapes and large-window behavior to inference, which is the main remaining gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still earns credit by clarifying cross-parameter behavior — that supplying `article` yields held-edition wordings and a redline, that omitting `article` returns `articles_changed` for EVERY changed article, and that `amended_by` is only meaningful without `article`. These interactions are semantic, not mere restatements of field descriptions.

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?

Opens with a specific verb+resource+scope: 'What changed in an act (or one article) between two dates', and immediately defines the comparison semantics (version in force on from_date as baseline vs. to_date, plus intervening changes). It is clearly distinguishable from sibling lookups like get_document or check_validity because it returns a diff, not a single snapshot or a validity verdict.

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 strong conditional guidance inside the definition: 'Any window works', `amended_by` is framed as 'what does this amendment change', `act_number` is presented as an alternative to `document_id`, and the default `detail` level is tied to whether you ask for a whole act/list or a single article. It does not name a sibling tool to use instead for adjacent tasks (e.g., validity checking), so it stops short of explicit when-not/alternatives routing.

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