Skip to main content
Glama

Avokata: Lithuanian law & court practice

Document and contents

get_document
Read-onlyIdempotent

A document's identity and its table of contents (turinys), WITHOUT its text. Call this before reading: the Civil Code (Civilinis kodeksas) runs to 1.7 million characters. Ids come from search results (įstatymas or nutartis). An ECHR id (coe.hudoc:) or application number gives the case's catalogue card: Avokata holds no ECHR text - read it at text_availability.where (HUDOC).

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": {
      "document_id": "<document_id>"
    },
    "name": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoOptional: one chapter or approved document of a long act - a label from its contents' `location` (`IV SKYRIUS`, `Darbo laiko ir poilsio laiko ypatumų ... aprašas`). Lists that part's units only; without it a long act's contents come by chapter.
document_idYesThe `id` of a search hit, or the `document.id` beside it. NOT `document.number`, which is the act's official number (`XIII-2221`) and is not an id.
jurisdictionNoWhich jurisdiction the id belongs to, as a code. Held: `LT` (Lithuania), `EU` (European Union). Omit for the account's own.
contents_limitNoOptional: unit rows per page with `contents_offset`, default 400, at most 1,000 (a page also ends early to stay within the answer's size, and says where the next one starts).
contents_offsetNoOptional: list the contents as unit rows from this position (0 = the first unit). A long document's contents otherwise come by chapter; every answer states the true total (`contents_page.units_total`) and the next offset.

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 id belongs to (`LT`). Omit for the account's own."New value: +"Which jurisdiction the id belongs to, as a code. Held: `LT` (Lithuania), `EU` (European Union). Omit for the account's own."
  3. Changed2 schema fields changed
    • addedInput schema / properties / contents_limit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional: unit rows per page with `contents_offset`, default 400, at most 1,000 (a page also ends early to stay within the answer's size, and says where the next one starts).",
      +  "title": "Contents Limit"
      +}
    • addedInput schema / properties / contents_offset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional: list the contents as unit rows from this position (0 = the first unit). A long document's contents otherwise come by chapter; every answer states the true total (`contents_page.units_total`) and the next offset.",
      +  "title": "Contents Offset"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / part
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional: one chapter or approved document of a long act - a label from its contents' `location` (`IV SKYRIUS`, `Darbo laiko ir poilsio laiko ypatumų ... aprašas`). Lists that part's units only; without it a long act's contents come by chapter.",
      +  "title": "Part"
      +}
  5. Changed1 schema field changed
    • removedInput schema / properties / part
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Optional: one chapter or approved document of a long act - a label from its contents' `location` (`IV SKYRIUS`, `Darbo laiko ir poilsio laiko ypatumų ... aprašas`). Lists that part's units only; without it a long act's contents come by chapter.",
      -  "title": "Part"
      -}
  6. Changed1 schema field changed
    • addedInput schema / properties / part
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional: one chapter or approved document of a long act - a label from its contents' `location` (`IV SKYRIUS`, `Darbo laiko ir poilsio laiko ypatumų ... aprašas`). Lists that part's units only; without it a long act's contents come by chapter.",
      +  "title": "Part"
      +}
  7. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description adds real context beyond that: the tool returns structure only, never text, and it explicitly discloses a capability limit (Avokata holds no ECHR text). It stops short of describing paging behavior in the prose, though the schema carries that.

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?

Four sentences, all load-bearing, with the exclusion ('WITHOUT its text') and the sequencing rule front-loaded. It is dense with domain jargon (turinys, įstatymas, nutartis, coe.hudoc), which is efficient for the target domain but slightly raises parsing cost.

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 a five-parameter read tool with no output schema, the description covers what comes back (identity and contents, not text) and the key edge case (ECHR). Remaining return-shape detail, such as the contents paging fields, is delegated to the parameter descriptions, which is acceptable but leaves the output contract slightly implicit.

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 adds value by explaining id provenance (search hits, not the act's official number) and by clarifying that an ECHR-style id or application number yields a catalogue card rather than text, which changes how document_id should be interpreted. Part/pagination semantics are left to the already-detailed schema.

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 names a specific resource and scope: a document's identity plus its table of contents, explicitly excluding text. It implicitly separates itself from read_paragraphs/read_source_text by saying 'Call this before reading' and 'WITHOUT its text', so an agent can pick between them without opening schemas.

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 a direct sequencing rule ('Call this before reading') with a concrete reason (the Civil Code is 1.7M characters), states where valid ids come from (search results, įstatymas or nutartis), and handles the ECHR edge case by redirecting to text_availability.where at HUDOC. When-to-use and when-not-to-use are both covered.

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