Skip to main content
Glama
Estonia Legal Research MCP Server

Estonia Legal Research MCP Server

by jurisatlas

Get Legal Document Markdown

get_legal_document_markdown

Retrieves the full Markdown text of an Estonian legislation document or court judgment using its URL, ECLI, ELI, or official identifier.

Instructions

Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from Estonia (EE) by its URL or official identifier.

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_or_url": "<document_id_or_url>"
    },
    "name": "get_legal_document_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (5,000 characters per page).
document_id_or_urlYesDocument URL (.html or .pdf), ECLI, ELI, or official ID returned by search tools.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful behavior: output is normalized to Markdown regardless of whether the source is HTML or PDF, and the full document is returned rather than an excerpt. It omits error behavior for bad URLs/identifiers, any size or rate limits, and does not hint that results are paged in 5,000-character chunks (that fact lives only in the schema).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that packs the verb, resource, source formats, jurisdiction, and accepted input forms with no filler or repetition. Nothing could be removed without losing information.

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?

The tool is simple (one required identifier parameter) and an output schema exists, so return values need not be explained; the description covers what is fetched and from where. The remaining gap is modest — no mention of paged retrieval or failure modes — which keeps it out of the top score given the absence of annotations.

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 both parameters are already documented, and the description only restates the identifier/URL concept without adding format examples or constraints. The 'page' parameter is not mentioned at all in the description, so no meaning is added beyond the schema baseline.

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?

The description gives a specific verb and resource — 'Retrieve full Markdown text of a legislation document or court judgment' — and scopes it to Estonia (EE) and to HTML/PDF sources. That is far more concrete than a restated title, but it never names a sibling (e.g., search_case_law, search_legislation) to sharpen the boundary, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'by its URL or official identifier' suggests it is the follow-up step once an identifier is known, but the description never states when to prefer this over a search tool or what to do if no identifier is available. No exclusions or prerequisites are given.

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