Skip to main content
Glama

Get Legal Document Markdown

get_legal_document_markdown

Retrieve the full Markdown text of EU or ECHR legislation and court judgments by URL, ECLI, ELI, or official ID, with pagination for long documents.

Instructions

Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from European Union & ECHR (EU) 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 behavioral burden; it does convey that this returns the complete document text rather than a snippet, and that source documents are HTML or PDF. It is silent on important traits such as truncation limits, behavior for invalid or ambiguous identifiers, and whether PDF conversion is lossy.

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?

A single front-loaded sentence with no padding; the scope and input forms come first. It is efficient, though the '(HTML or PDF)' parenthetical is slightly awkward inside an otherwise clean statement of purpose.

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 two-parameter read tool with an output schema and 100% schema coverage, the description plus structured fields cover what an agent needs to call it. The remaining gap is error/edge-case behavior for unresolvable identifiers, which is minor against the available schema.

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 description coverage is 100%, so baseline is 3, but the description adds clarifying meaning by enumerating that a URL may be .html or .pdf and that identifiers can be ECLI, ELI, or official IDs. That reinforces the accepted identifier families beyond the terse schema text.

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?

A specific verb ('Retrieve') plus resource ('full Markdown text of a legislation document or court judgment') with jurisdiction (EU & ECHR) and accepted source formats (HTML or PDF). It cleanly separates itself from the search_* siblings by nature of the operation, though it never names a sibling to reinforce that.

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?

The phrase 'official ID returned by search tools' implies this is the fetch step that follows a search, which is useful usage context. However, there is no explicit when-to-use/when-not, no statement that this should be used after search_case_law or search_legislation, and no guidance on choosing URL vs ECLI/ELI.

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