Skip to main content
Glama

Avokata: Lithuanian law & court practice

Search the law

search_law
Read-onlyIdempotent

Find the statutory provision (teisės akto straipsnis) that governs a question. PASS THE QUERY IN THE LANGUAGE THE LAW IS WRITTEN IN. Lithuanian law: in Lithuanian. An English query is not translated for you and does not work - measured 2026-08-28 on 23 questions a lawyer had answered from the corpus, Lithuanian found the confirmed article for 10 of them and English for 0, and the English attempts did not come back empty, they came back wrong. If the user writes in another language, translate INTO Lithuanian and use the term of art a Lithuanian lawyer would type: ieškinio senaties terminas, darbo sutarties nutraukimas, nuomos sutartis, servitutas, juridinio asmens pertvarkymas. EU and international acts: Lithuanian where a Lithuanian text is held, else the source language; every result says its lang, and a translation you give the user is labelled as yours with its source. Searches acts and codes (įstatymai ir kodeksai) in the consolidated version in force now. Returns pinpoints (article numbers), not summaries. Follow up with read_paragraphs to read the text, or cited_by to see how the courts have read it. jurisdictions accepts several for a matter that spans countries. codes names the code the question belongs to (CPK, BPK, ABTĮ, CK, DK) and you should pass it for anything PROCEDURAL. Every procedural code has articles with the same headings, different numbers and different time limits, so an answer from the wrong one looks exactly like an answer from the right one: measured 2026-08-28, four of ten procedural questions returned their top hit from the wrong code, including a civil cassation deadline answered from the criminal procedure code. jurisdictions selects the law's scope, not the user's language; there is no separate language argument. For an article's wording on a past date, find its id here and use read_paragraphs with on_date. The complete search answer obeys max_chars; response_budget identifies deferred metadata and its recovery. An answer that holds only part of the ranked results carries paging.next: the same call for the next page, ready to run (the cursor in it keeps the same ranking, so no result comes twice and none is skipped). Call it when the answer you need is not among the rows shown; offset jumps to a position. Draft legal acts are held too: a draft answers in its own drafts section, never among the acts in force, and describe names which drafts are held and how often they refresh. Example arguments: {"query": "ieškinio senaties terminas", "jurisdictions": ["LT"], "codes": ["CK"], "limit": 5}.

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": {
      "query": "<query>"
    },
    "name": "search_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
alsoNoOther phrasings of the SAME question, each fused as its own ranking - up to 4. Pass one only when it is a genuinely DIFFERENT ANGLE: the legal term of art, or the noun phrase a provision heading would be written in. Do NOT pass the same sentence reworded, which was measured to make results worse (hit@5 12 to 10). You are the one who knows what a different angle on this question is, which is why this is offered rather than applied automatically.
codesNoRestrict to named codes by their short form (`CK`, `CPK`, `BK`, `DK`). The fastest way to ask 'what does the Civil Code say about this'.
limitNoHow many passages to return, default 10. Each carries its own pinpoint, so a larger number is more context rather than more documents.
queryYesThe question or the provision, in the language of the law asked about: IN LITHUANIAN for Lithuanian law (an English query returns unrelated results rather than none); EU or international material in Lithuanian where it has a Lithuanian text, else in its source language (English, French). Both forms work: a citation (`CK 6.217`) or a phrase (`esminis sutarties pažeidimas`). There is no separate article filter, and no date filter: this tool answers about law in force NOW.
cursorNoThe `cursor` from the previous answer's `paging.next`, with the same query and filters: the next page of the SAME ranking (no result twice, none skipped, the rows the size cap left out first). Omit for the first page.
detailNo`compact` (the default) returns each passage with its pinpoint and an excerpt of up to ~250 characters around your terms (narrower, never below a sentence piece of ~130, when many rows share max_chars), plus `text_chars`; read the whole text with read_paragraphs(document_id=<row id>). `full` returns the whole text of every row.compact
offsetNoStart the page at this position of the ranking (0 = the first result). Usually not needed: an answer that holds only part of the ranked results carries `paging.next`, the same call for the next page, ready to run.
in_forceNoTrue (the default) searches only acts in force. Set false to include repealed ones - which is a different question from what governed on a past date; for that, find the act and ask `check_validity` with `on_date`.
act_typesNoNarrow by the register's own type of act, e.g. `Įstatymas`, `Kodeksas`, `Nutarimas`. Omit to search every type.
max_charsNoA hard cap on the answer's size in characters, default 15000. Every row is first narrowed (a ~150-character excerpt), then rows are dropped from the end (the lowest-ranked) to fit, and `truncated` says how many and how to get them; data_as_of, notes and caveats are never cut.
act_numberNoSearch inside ONE act by its official register number (`XII-2603`), a Government resolution's or an order's number (`496`, `Nr. 496`, with its year to choose among resolutions of other years: `2017 m. birželio 21 d. nutarimas Nr. 496`) or a code abbreviation the map knows (`DK`, `CK`, `CPK`). Lawyers search by Nr.; this is how you restrict to that act without naming every article. A number or an abbreviation only: an act you know by its title goes in `query`.
document_idNoThe act to search, by the `id` a search hit carries (`lt.e-tar:TAR...`). It is the act selector for `occurrences=True` and scopes a plain search to that one act; with `occurrences=True`, two or more ids separated by commas name a set of acts, each read whole. A register number carried by several acts is not an id: the answer then lists the acts that carry it and names none of them as the act meant - pass one of those ids, or name the act's adoption date beside its number. The id of an article (`...#15`) is accepted by read_paragraphs, not here.
occurrencesNoTrue lists EVERY place a phrase is said, in any inflection (each word by its stem; `taisykl*` names a stem), with a count and the forms found - a reading, not a ranking. One act as `document_id`, `act_number` or a single `codes` entry gives that act's exhaustive list, in the shape it always had. Two or more acts - a comma-separated `document_id` list or several `codes` - gives every provision of each, with `occurrences.per_act` ordered by `total` descending then `document_id` ascending; with no act named the phrase is looked for across the jurisdiction, the first 3 acts the phrase index nominates are read whole (`occurrences.candidate_bound`), and the answer says it is not exhaustive and how to widen it. Use it to check "X is mentioned only in articles ...".
jurisdictionsNoWhich jurisdictions to search, as codes. Held: `LT` (Lithuania), `EU` (European Union). Omit it and only the account's main jurisdiction is searched: a jurisdiction the service adds later never changes such a call. A list is searched exactly as given, so name the main one too when the question spans it. Where EU law applies directly (data protection, VAT, consumer protection, competition and the other EU-governed areas), add `EU`; an answer whose question touches EU law says so in `eu_relevance`, with the acts and the call to make. Adding a country you do not hold does not fail; the answer names what was unavailable.
include_amending_actsNoFalse (the default) leaves out amending acts (`... pakeitimo įstatymas`): an amending act says what changed, not what the law is, and this tool answers which provision governs. The answer says how many it left out. Set true to date a change or read the amendment itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / document_id / description
      Previous value: -"The act to search, by the `id` a search hit carries (`lt.e-tar:TAR...`). It is the act selector for `occurrences=True` and scopes a plain search to that one act. A register number carried by several acts is not an id: the answer then lists the acts that carry it and names none of them as the act meant - pass one of those ids, or name the act's adoption date beside its number. The id of an article (`...#15`) is accepted by read_paragraphs, not here."New value: +"The act to search, by the `id` a search hit carries (`lt.e-tar:TAR...`). It is the act selector for `occurrences=True` and scopes a plain search to that one act; with `occurrences=True`, two or more ids separated by commas name a set of acts, each read whole. A register number carried by several acts is not an id: the answer then lists the acts that carry it and names none of them as the act meant - pass one of those ids, or name the act's adoption date beside its number. The id of an article (`...#15`) is accepted by read_paragraphs, not here."
    • changedInput schema / properties / occurrences / description
      Previous value: -"True lists EVERY provision of one act whose words hold the phrase in `query`, in any inflection (each word by its stem; `taisykl*` names a stem), with a count and the forms found - an exhaustive list, not a ranking. Needs the act as `document_id` or `act_number` (or one `codes` entry). Use it to check \"X is mentioned only in articles ...\"."New value: +"True lists EVERY place a phrase is said, in any inflection (each word by its stem; `taisykl*` names a stem), with a count and the forms found - a reading, not a ranking. One act as `document_id`, `act_number` or a single `codes` entry gives that act's exhaustive list, in the shape it always had. Two or more acts - a comma-separated `document_id` list or several `codes` - gives every provision of each, with `occurrences.per_act` ordered by `total` descending then `document_id` ascending; with no act named the phrase is looked for across the jurisdiction, the first 3 acts the phrase index nominates are read whole (`occurrences.candidate_bound`), and the answer says it is not exhaustive and how to widen it. Use it to check \"X is mentioned only in articles ...\"."
  2. 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"
      -}
  3. Changed2 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The `cursor` from the previous answer's `paging.next`, with the same query and filters: the next page of the SAME ranking (no result twice, none skipped, the rows the size cap left out first). Omit for the first page.",
      +  "title": "Cursor"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Start the page at this position of the ranking (0 = the first result). Usually not needed: an answer that holds only part of the ranked results carries `paging.next`, the same call for the next page, ready to run.",
      +  "title": "Offset"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / jurisdictions / description
      Previous value: -"Which jurisdictions to search, as codes. Held: `LT` (Lithuania), `EU` (European Union). Omit to search only the account's own; name every one the question needs. Adding a country you do not hold does not fail; the answer names what was unavailable."New value: +"Which jurisdictions to search, as codes. Held: `LT` (Lithuania), `EU` (European Union). Omit it and only the account's main jurisdiction is searched: a jurisdiction the service adds later never changes such a call. A list is searched exactly as given, so name the main one too when the question spans it. Where EU law applies directly (data protection, VAT, consumer protection, competition and the other EU-governed areas), add `EU`; an answer whose question touches EU law says so in `eu_relevance`, with the acts and the call to make. Adding a country you do not hold does not fail; the answer names what was unavailable."
  5. Changed1 schema field changed
    • changedInput schema / properties / jurisdictions / description
      Previous value: -"Which jurisdictions to search, as codes (`LT`). Omit for the account's own. Adding a country you do not hold does not fail; the answer names what was unavailable."New value: +"Which jurisdictions to search, as codes. Held: `LT` (Lithuania), `EU` (European Union). Omit to search only the account's own; name every one the question needs. Adding a country you do not hold does not fail; the answer names what was unavailable."
  6. Changed2 schema fields changed
    • addedInput schema / properties / document_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The act to search, by the `id` a search hit carries (`lt.e-tar:TAR...`). It is the act selector for `occurrences=True` and scopes a plain search to that one act. A register number carried by several acts is not an id: the answer then lists the acts that carry it and names none of them as the act meant - pass one of those ids, or name the act's adoption date beside its number. The id of an article (`...#15`) is accepted by read_paragraphs, not here.",
      +  "title": "Document Id"
      +}
    • changedInput schema / properties / occurrences / description
      Previous value: -"True lists EVERY provision of one act whose words hold the phrase in `query`, in any inflection (each word by its stem; `taisykl*` names a stem), with a count and the forms found - an exhaustive list, not a ranking. Needs the act as `act_number` (or one `codes` entry). Use it to check \"X is mentioned only in articles ...\"."New value: +"True lists EVERY provision of one act whose words hold the phrase in `query`, in any inflection (each word by its stem; `taisykl*` names a stem), with a count and the forms found - an exhaustive list, not a ranking. Needs the act as `document_id` or `act_number` (or one `codes` entry). Use it to check \"X is mentioned only in articles ...\"."
  7. Changed1 schema field changed
    • changedInput schema / properties / detail / description
      Previous value: -"`compact` (the default) returns each passage with its pinpoint and a ~250-character excerpt around your terms, plus `text_chars`; read the whole text with read_paragraphs(document_id=<row id>). `full` returns the whole text of every row."New value: +"`compact` (the default) returns each passage with its pinpoint and an excerpt of up to ~250 characters around your terms (narrower, never below a sentence piece of ~130, when many rows share max_chars), plus `text_chars`; read the whole text with read_paragraphs(document_id=<row id>). `full` returns the whole text of every row."
  8. Changed1 schema field changed
    • addedInput schema / properties / occurrences
      Added value: +{
      +  "default": false,
      +  "description": "True lists EVERY provision of one act whose words hold the phrase in `query`, in any inflection (each word by its stem; `taisykl*` names a stem), with a count and the forms found - an exhaustive list, not a ranking. Needs the act as `act_number` (or one `codes` entry). Use it to check \"X is mentioned only in articles ...\".",
      +  "title": "Occurrences",
      +  "type": "boolean"
      +}
  9. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"The question or the provision, IN LITHUANIAN - the corpus is Lithuanian and an English query returns unrelated results rather than none. Both forms work: a citation (`CK 6.217`) or a phrase (`esminis sutarties pažeidimas`). There is no separate article filter, and no date filter: this tool answers about law in force NOW."New value: +"The question or the provision, in the language of the law asked about: IN LITHUANIAN for Lithuanian law (an English query returns unrelated results rather than none); EU or international material in Lithuanian where it has a Lithuanian text, else in its source language (English, French). Both forms work: a citation (`CK 6.217`) or a phrase (`esminis sutarties pažeidimas`). There is no separate article filter, and no date filter: this tool answers about law in force NOW."
  10. Changed1 schema field changed
    • changedInput schema / properties / act_number / description
      Previous value: -"Search inside ONE act by its official register number (`XII-2603`), a Government resolution's or an order's number (`496`, `Nr. 496`, with its year to choose among resolutions of other years: `2017 m. birželio 21 d. nutarimas Nr. 496`) or a code abbreviation the map knows (`DK`, `CK`, `CPK`). Lawyers search by Nr.; this is how you restrict to that act without naming every article."New value: +"Search inside ONE act by its official register number (`XII-2603`), a Government resolution's or an order's number (`496`, `Nr. 496`, with its year to choose among resolutions of other years: `2017 m. birželio 21 d. nutarimas Nr. 496`) or a code abbreviation the map knows (`DK`, `CK`, `CPK`). Lawyers search by Nr.; this is how you restrict to that act without naming every article. A number or an abbreviation only: an act you know by its title goes in `query`."
  11. Changed1 schema field changed
    • changedInput schema / properties / act_number / description
      Previous value: -"Search inside ONE act by its official register number (`XII-2603`) or a code abbreviation the map knows (`DK`, `CK`, `CPK`). Lawyers search by Nr.; this is how you restrict to that act without naming every article."New value: +"Search inside ONE act by its official register number (`XII-2603`), a Government resolution's or an order's number (`496`, `Nr. 496`, with its year to choose among resolutions of other years: `2017 m. birželio 21 d. nutarimas Nr. 496`) or a code abbreviation the map knows (`DK`, `CK`, `CPK`). Lawyers search by Nr.; this is how you restrict to that act without naming every article."
  12. Changed1 schema field changed
    • changedInput schema / properties / max_chars / description
      Previous value: -"A hard cap on the answer's size in characters, default 12000. Every row is first narrowed (a ~150-character excerpt), then rows are dropped from the end (the lowest-ranked) to fit, and `truncated` says how many and how to get them; data_as_of, notes and caveats are never cut."New value: +"A hard cap on the answer's size in characters, default 15000. Every row is first narrowed (a ~150-character excerpt), then rows are dropped from the end (the lowest-ranked) to fit, and `truncated` says how many and how to get them; data_as_of, notes and caveats are never cut."
  13. Changed2 schema fields changed
    • changedInput schema / properties / detail / description
      Previous value: -"`compact` (the default) returns each passage with its pinpoint and a ~400-character excerpt around your terms, plus `text_chars`; read the whole text with read_paragraphs(document_id=<row id>). `full` returns the whole text of every row."New value: +"`compact` (the default) returns each passage with its pinpoint and a ~250-character excerpt around your terms, plus `text_chars`; read the whole text with read_paragraphs(document_id=<row id>). `full` returns the whole text of every row."
    • changedInput schema / properties / max_chars / description
      Previous value: -"A hard cap on the answer's size in characters, default 8000. Rows are dropped from the end (the lowest-ranked) to fit, and `truncated` says how many and how to get them; data_as_of, notes and caveats are never cut."New value: +"A hard cap on the answer's size in characters, default 12000. Every row is first narrowed (a ~150-character excerpt), then rows are dropped from the end (the lowest-ranked) to fit, and `truncated` says how many and how to get them; data_as_of, notes and caveats are never cut."
  14. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"The question or the provision, IN LITHUANIAN - the corpus is Lithuanian and an English query returns confident nonsense rather than nothing. Both forms work: a citation (`CK 6.217`) or a phrase (`esminis sutarties pažeidimas`). There is no separate article filter, and no date filter: this tool answers about law in force NOW."New value: +"The question or the provision, IN LITHUANIAN - the corpus is Lithuanian and an English query returns unrelated results rather than none. Both forms work: a citation (`CK 6.217`) or a phrase (`esminis sutarties pažeidimas`). There is no separate article filter, and no date filter: this tool answers about law in force NOW."
  15. Changed4 schema fields changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "compact",
      +  "description": "`compact` (the default) returns each passage with its pinpoint and a ~400-character excerpt around your terms, plus `text_chars`; read the whole text with read_paragraphs(document_id=<row id>). `full` returns the whole text of every row.",
      +  "enum": [
      +    "compact",
      +    "full"
      +  ],
      +  "title": "Detail",
      +  "type": "string"
      +}
    • addedInput schema / properties / include_amending_acts
      Added value: +{
      +  "default": false,
      +  "description": "False (the default) leaves out amending acts (`... pakeitimo įstatymas`): an amending act says what changed, not what the law is, and this tool answers which provision governs. The answer says how many it left out. Set true to date a change or read the amendment itself.",
      +  "title": "Include Amending Acts",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "A hard cap on the answer's size in characters, default 8000. Rows are dropped from the end (the lowest-ranked) to fit, and `truncated` says how many and how to get them; data_as_of, notes and caveats are never cut.",
      +  "title": "Max Chars"
      +}
    • changedInput schema / properties / session / description
      Previous value: -"The `session` value connect returned, when this client keeps no connection session. Pass it on every Avokata call in this conversation; omit it when the client sends a key."New value: +"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."
  16. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the read-only, idempotent, non-destructive annotations, the description discloses language failure modes, wrong-code risk, paging and truncation behavior, draft handling, occurrence semantics, and what max_chars does. These are substantive behavioral details an agent could not infer from the annotations alone.

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 description is front-loaded with the most important instruction in caps and follows a logical order from query language to filters to paging. It is long and repeats some schema-level details such as paging and max_chars, but most sentences carry high-stakes guidance for a complex 15-parameter tool.

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 15-parameter search tool with no output schema, the description is complete enough to call correctly: it covers language, code selection, jurisdiction scope, in-force behavior, paging, truncation, drafts, occurrences, and follow-up tools. Nothing material about invocation 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 100%, so the schema already documents all 15 parameters, but the description adds operational meaning: codes are especially important for procedural questions, jurisdictions is not a language selector, cursor preserves ranking, and occurrences changes the search from ranking to exhaustive listing. That is value beyond the schema text.

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?

The description opens with a specific verb and resource: 'Find the statutory provision ... that governs a question,' and immediately clarifies that results are pinpoints rather than summaries. It also distinguishes the tool from read_paragraphs and cited_by by naming them as follow-up tools, so an agent can tell what this search does and does not do.

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?

It gives explicit when-to-use rules and exclusions: pass the query in the law's language, use codes for procedural questions, use jurisdictions for scope, and use read_paragraphs or check_validity for text and past dates. The measured language and code warnings are unusually specific guidance rather than general advice.

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