Skip to main content
Glama

Avokata: Lithuanian law & court practice

Is it in force

check_validity
Read-onlyIdempotent

Is this act in force (galioja), and which consolidated version (suvestinė redakcija) governed on a given date. Pass on_date to ask about the past (įsigaliojimo data). Name the act with ONE of: document_id (the id of a search hit; an article id with # answers about its act) or act_number (the register number XII-2603, or a code abbreviation DK, CK). An act you know only by its title: search_law first and take the id. Validity is a property of the act, not of an article: for an article's wording on a date use read_paragraphs with on_date, for what changed use compare_provision_versions. A validity answer does not verify a quotation; use verify_citation for that. Example arguments: {"act_number": "DK", "on_date": "2024-01-15"}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_validity"
  }
}

Input Schema

NameRequiredDescriptionDefault
actsNoSeveral acts at once (an audit of a sector's acts): a list of document ids or act numbers, at most 25 per call. The answer is one compact row per act (`acts`: state, the edition in force and the ones ahead, the currency verdict, a possibly missing amendment, the repeal) instead of the full answer; `document_id`/`act_number` are then not needed.
detailNo`compact` (the default) lists each amending or related act's effective days once, with the kinds of evidence that date them and their links. `full` returns every source record behind each day.compact
on_dateNoThe date to test, `YYYY-MM-DD` - what governed THEN rather than now. Omit for today. The parameter is `on_date`: `as_of` and `date` are ignored.
act_numberNoAlternative to `document_id`: the act's official number as the register writes it, e.g. `XIII-2221`, or a code abbreviation the map knows (`DK`, `CK`, `CPK`). A number, never a title or an article (`DK 58` is the act `DK`; ask the article with read_paragraphs). One of the two is required.
document_idNoThe act to test, by the `id` of a search hit. An article id (containing `#`) is accepted and answers about its act, because validity is a property of the 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
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "compact",
      +  "description": "`compact` (the default) lists each amending or related act's effective days once, with the kinds of evidence that date them and their links. `full` returns every source record behind each day.",
      +  "enum": [
      +    "compact",
      +    "full"
      +  ],
      +  "title": "Detail",
      +  "type": "string"
      +}
  3. 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."
  4. Changed1 schema field changed
    • addedInput schema / properties / acts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Several acts at once (an audit of a sector's acts): a list of document ids or act numbers, at most 25 per call. The answer is one compact row per act (`acts`: state, the edition in force and the ones ahead, the currency verdict, a possibly missing amendment, the repeal) instead of the full answer; `document_id`/`act_number` are then not needed.",
      +  "title": "Acts"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / act_number / description
      Previous value: -"Alternative to `document_id`: the act's official number as the register writes it, e.g. `XIII-2221`. One of the two is required."New value: +"Alternative to `document_id`: the act's official number as the register writes it, e.g. `XIII-2221`, or a code abbreviation the map knows (`DK`, `CK`, `CPK`). A number, never a title or an article (`DK 58` is the act `DK`; ask the article with read_paragraphs). One of the two is required."
  6. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered; the description adds real behavioral context on top — that validity is a property of the act rather than the article (so an article id with '#' is silently widened), and that the answer explicitly does not verify a quotation. It stops short of stating what the single-act answer contains, and the 25-per-call limit lives in the schema rather than the description.

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 core question, then ordered identity resolution, then differentiation from siblings, then an example. It is dense and the parenthetical Lithuanian terms make some clauses heavy, but each sentence carries distinct routing or parameter information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter domain tool with no output schema, the description covers input resolution and sibling routing thoroughly but never says what a single-act answer returns (state, edition in force, currency verdict), leaving that partly inferable only from the sibling `acts` parameter description. The return-shape gap is the main omission.

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, but the description genuinely adds meaning: it explains the document_id/act_number trade-off, that an article id containing '#' resolves to its act, that act_number must never be a title or an article ('DK 58' is the act DK), and that as_of/date aliases are ignored in favor of on_date. The concrete example arguments further clarify expected shapes.

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+question: whether an act is in force and which consolidated version governed on a date. It immediately distinguishes itself from siblings by naming the act-level vs article-level distinction, so an agent can tell it apart from read_paragraphs and compare_provision_versions without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: search_law first if you only know the title; read_paragraphs with on_date for an article's wording on a date; compare_provision_versions for what changed; verify_citation if you need a quotation verified. It also states when to pass on_date (past) versus omit it (today), covering both the when and the when-not.

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