Skip to main content
Glama

Get Legal Document Markdown

get_legal_document_markdown

Retrieve the full Markdown text of Polish legislation or court judgments from an HTML/PDF URL, ECLI, ELI, or official ID, with paginated output for long documents.

Instructions

Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from Poland (PL) 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.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses that source documents may be HTML or PDF and are returned as Markdown, but says nothing about truncation limits, error behavior when a PDF cannot be converted, authentication, or rate limits.

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 zero filler; the resource, jurisdiction, source formats, and key types all appear before any subordinate detail.

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?

An output schema exists, so return-value detail is unnecessary, and the two-parameter schema is fully documented. For a simple fetch tool the description covers what is needed, with only edge-case behavior (conversion failures, oversized documents) left unaddressed.

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% and already documents the page size (5,000 characters) and the acceptable identifier forms (URL, ECLI, ELI, official ID). The description echoes the URL/identifier split and the HTML/PDF source types but adds no format syntax or precedence rules beyond the schema.

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 (retrieve), a specific resource (full Markdown text of a legislation document or court judgment), the jurisdiction (Poland/PL), and the accepted lookup keys (URL or official identifier). This makes it cleanly distinct from the search_* siblings, which return result sets rather than full document text.

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 implied rather than stated: the schema note that identifiers come 'from search tools' and the URL/ID framing position this as a follow-up fetch step after searching. There is no explicit when-to-use/when-not guidance and no alternative named for cases such as fetching a document that lacks an identifier.

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