Skip to main content
Glama

lt_check_document_references

Read-onlyIdempotent

Checks every act and provision a Lithuanian document cites against TAR, verifying validity and wording for a specified date.

Instructions

Find every act and provision a Lithuanian document cites and check each against TAR.

Recognises acts cited with number and date ("Lietuvos Respublikos Vyriausybės 2007 m. rugpjūčio 22 d. nutarimu Nr. 875"), laws and codes cited by name ("Civilinio kodekso"), short names the document defines ("(toliau - Taisyklės)") and provisions of those acts ("Įstatymo 5 straipsnio 2 dalis", "Taisyklių 24.1 papunktis", "45.1-45.3 papunkčiuose").

Input Schema

NameRequiredDescriptionDefault
textYesthe document text (plain text, up to 200 000 characters).
as_ofNoISO date the document must comply on, usually its date (default: today). Validity and the provision wording are checked for that day.
max_referencesNocap on acts + provisions checked (1..300, default 100).
include_constitutional_rulingsNoalso list Constitutional Court acts whose title names each resolved act / provision (one extra title search per act; no outcomes - use ``lt_find_rulings_on_act`` for those).

Output Schema

NameRequiredDescriptionDefault
actsNo
skippedNoReferences not checked: self-references ('šio įstatymo ...') and provisions with no recognisable act.
summaryNo
eli_noteNoLithuania has no data.europa.eu ELI for the TAR dataset. eli_uri carries the canonical e-tar.lt legalAct URL (the stable national identifier), which is also the source_url.
warningsNo
cached_atNoWhen that stored copy was fetched.
as_of_dateYes
provisionsNo
text_lengthYes
retrieved_atNo
served_from_cacheNoTrue when data.gov.lt failed and a stored copy was served instead.
source_fetched_atNoOldest fetch time of any source response used (cache incl.).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world, so the bar is lower; the description still adds real behavior: what citation forms are matched, that validation is against TAR, and that constitutional-ruling matching is title-only with no outcome data. It doesn't mention cost/rate characteristics of up to 300 external checks, which is the main remaining gap.

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 one-sentence purpose, followed by a compact catalogue of recognised citation forms with Lithuanian examples — every element earns its place. Slightly long, and the examples could be trimmed without losing meaning.

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?

With an output schema present, return-value explanation is rightly omitted, and all four parameters are covered by the schema. Usage relative to the near-duplicate lt_resolve_reference is the one thing an agent still has to guess.

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 coverage is 100%, so the schema already explains text, as_of, max_references and include_constitutional_rulings in detail. The description adds meaning only indirectly, through the enumeration of citation patterns it will find; it adds no format or limit guidance beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: extract every cited act/provision from a document and validate each against TAR. The scope is unambiguous, but the closest sibling (lt_resolve_reference, which resolves a single reference) is never named, so an agent must infer the bulk-vs-single distinction.

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

Usage Guidelines4/5

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

Gives clear context for when the tool fits (documents that cite other acts by number/date, name, defined short name, or provision) and explicitly routes one sub-case away: 'no outcomes - use lt_find_rulings_on_act for those'. No exclusion against lt_resolve_reference or lt_search, so not a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.