Skip to main content
Glama

Get Legal Document Markdown

get_legal_document_markdown

Retrieve the full Markdown text of Latvian legislation or court judgments by document URL, ECLI, ELI, or official identifier for legal research and citation checks.

Instructions

Retrieve full Markdown text of a legislation document or court judgment from Latvia (LV) 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, ECLI, ELI, or official ID returned by search tools.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.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; it does disclose the output format (Markdown) and the geographic/jurisdictional scope, which implies a read-only fetch. However, it says nothing about pagination of long documents, truncation limits, failure modes for unavailable identifiers, or authentication, so the behavioral picture is only partial.

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 with no filler: verb, output form, resource type, jurisdiction, and lookup key all land immediately. Nothing is redundant or buried.

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 simple two-parameter fetch tool with a full output schema and 100% schema coverage, the description covers what is returned and how it is addressed, so return-value explanation is rightly omitted. The remaining gap is the absence of any hint that long documents require the page parameter or that identifiers come from the search siblings.

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 (document_id_or_url and the page offset with its 5,000-character chunking) are already documented in the schema. The description restates the accepted identifier forms but adds no format examples, precedence rules, or interaction between identifier and paging beyond what the schema supplies.

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 ('Retrieve'), a precise resource ('full Markdown text'), and explicit scope ('legislation document or court judgment from Latvia'), plus the input forms it accepts. An agent can readily distinguish this fetch operation from the search-oriented siblings, though no sibling is named directly.

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 the agent must first obtain an identifier (presumably from search_legislation or search_case_law), but the description never states when to call this versus those tools or what preconditions apply. No exclusions or alternative routing are provided.

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