Skip to main content
Glama

Get Legal Document Markdown

get_legal_document_markdown

Retrieve the full Markdown text of a Netherlands legislation document or court judgment by URL or official identifier, with pagination for long HTML or PDF sources.

Instructions

Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from Netherlands (NL) 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 burden. It usefully discloses jurisdiction (NL), accepted source formats (HTML or PDF), and identifier types, but says nothing about rate limits, permission requirements, or failure behavior for unsupported identifiers. A read-only retrieval is self-evident, so the gap is moderate rather than severe.

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 action, resource, formats, jurisdiction, and identifier types front-loaded. No filler or redundant phrasing.

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?

With a fully documented two-parameter schema and a declared output schema, the description covers what is needed to invoke the tool correctly. Minor omissions remain, such as whether pagination must be iterated for long documents and how unsupported identifiers are handled.

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 document_id_or_url and page are already documented, and the description largely restates the accepted identifier forms. The page parameter and its 5,000-character paging behavior are not mentioned in the description, but the schema covers them, so the baseline 3 applies.

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?

The description states a specific verb and resource: retrieve the full Markdown text of a Netherlands legislation document or court judgment, accepting an HTML or PDF source. It clearly distinguishes itself from the search_* siblings by being the full-text fetch rather than a discovery tool.

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 input description notes the identifier can come from "search tools," hinting at a search-then-fetch workflow. There is no explicit when-to-use versus verify_citation or the search siblings, and no exclusions such as non-NL sources.

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