Skip to main content
Glama

Get Legal Document Markdown

get_legal_document_markdown

Retrieve the full Markdown text of Croatian legislation or court judgments by URL, ECLI, ELI, or official ID, enabling readable document review and citation checking.

Instructions

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

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

With no annotations, the description must carry the behavioral burden. It usefully discloses the accepted source formats (HTML or PDF), the jurisdiction, and that the output is converted to Markdown, but says nothing about failure modes for bad identifiers, document size limits, or whether PDF conversion is lossy. An output schema exists, so the absence of return-value detail is acceptable.

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 sentence with the verb, resource, format, locale, and accepted identifier in that order. Every clause carries information and nothing is padding.

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 full schema coverage and an output schema, this covers what the agent needs to call it correctly: what resource, which jurisdiction, and what inputs are valid. The remaining gap is failure and size behavior, which is minor given the structured fields already provided.

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 coverage is 100%, so the baseline would be 3, but the description adds real meaning by enumerating the accepted identifier families (URL, ECLI, ELI, official ID) and formats at the top level. It still does not explain the page parameter's 5,000-character window, which is left entirely to the schema.

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 opens with a specific verb-plus-resource ("Retrieve full Markdown text of a legislation document or court judgment") and constrains it by locale (Croatia/HR) and input form (URL or official identifier). That is enough to distinguish it from the sibling search_* tools, which locate documents rather than return their full text, though no sibling is named explicitly.

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 agent can infer this is the follow-up step once a search tool has surfaced a URL or identifier, especially from the phrase "returned by search tools" in the schema. There is no explicit when-to-use/when-not or statement of which sibling to prefer for a given task.

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