Versions between two dates
compare_provision_versionsWhat 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
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | `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. | |
| article | No | 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). | |
| to_date | Yes | The later date, `YYYY-MM-DD` (today, say). Must be on or after from_date. | |
| from_date | Yes | The earlier date, `YYYY-MM-DD` (a contract date, say). The version in force on it is the baseline; any date works. | |
| act_number | No | 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). | |
| amended_by | No | 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'. | |
| document_id | No | The act to compare, by search hit id. An article id (with `#`) resolves to its act. | |
| jurisdiction | No | Which jurisdiction the act belongs to, as a code. Held: `LT` (Lithuania), `EU` (European Union). Omit for the account's own. |