Skip to main content
Glama

Avokata: Lithuanian law & court practice

The publisher's text, as published

read_source_text
Read-onlyIdempotent

The document's text exactly as the publisher published it (šaltinio tekstas), paged by character offset, with none of our sections, voice labels or units: the source our structure is built on. Read it to check us when a read's structure_check says verify, when a section or speaker label looks wrong, or before you rely on whose words a passage is. Each page gives the publisher's link, the text's sha256, how the text is held (raw_basis) and the units of ours it overlaps (units_here), so you can cross-check our structure. Continue with next_from_char. If our structure is wrong, say so: submit_feedback(kind='structure'). ECHR cases (coe.hudoc:) have no text here: the answer says so and gives the HUDOC link. Example arguments: {"document_id": "<document_id or unit id from a result>", "from_char": 0, "max_chars": 6000}.

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": "read_source_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
on_dateNoOn an act: `YYYY-MM-DD` reads the held edition in force that day (its own text, link and dates). Omit for the current text. Rulings have one text.
from_charNoCharacter offset to start at, 0 for the top; continue with the previous page's `next_from_char`. A read's `structure_check.raw.args` gives the offsets of the span it served.
max_charsNoPage size in characters, default 6000, at most 20000. A page ends at a line break or space, never inside a word.
document_idYesWhat to read, as in read_paragraphs: a search hit's `id` (a `#` unit id starts the page where that unit starts), a `document.id`, a case number or an act's number.
jurisdictionNoWhich jurisdiction the id 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 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. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavior: each page returns the publisher link, a sha256, `raw_basis` and `units_here`, and continuation is via `next_from_char`. It also discloses graceful degradation for ECHR cases (no text, returns HUDOC link), which annotations would never reveal.

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 definition and paging model, then use cases, then return contents, then the edge case — a logical order. Slightly dense in places (the Lithuanian gloss, repeated cross-check phrasing) but nearly every sentence carries information.

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?

With no output schema, the description carries the return contract itself (link, sha256, raw_basis, units_here, next_from_char) and covers the notable failure mode for ECHR documents. Nothing an agent needs to invoke or interpret a page correctly is missing.

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

Parameters3/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 on_date, from_char, max_chars, document_id and jurisdiction thoroughly. The description only reinforces document_id provenance ("a unit id from a result") and gives example arguments, adding little beyond structured data. Baseline 3 applies.

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?

States a specific verb and resource — the document's text exactly as the publisher published it, paged by character offset — and immediately distinguishes it from the tool's own structured rendering ("with none of our sections, voice labels or units"). An agent can tell this apart from read_paragraphs/get_document 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?

Gives concrete triggering conditions: when a read's `structure_check` says `verify`, when a section or speaker label looks wrong, or before relying on attribution of a passage. It also names the escalation path (submit_feedback(kind='structure')) and the exclusion (ECHR `coe.hudoc:` cases have no text here).

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