Skip to main content
Glama
Iceland Legal Research MCP Server

Iceland Legal Research MCP Server

by jurisatlas

Get Legal Document Markdown

get_legal_document_markdown

Retrieve the full Markdown text of an Icelandic legislation document or court judgment by URL, ECLI, ELI, or official ID, with paging for long documents.

Instructions

Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from Iceland (IS) 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; 'Retrieve' implies a read-only operation, but that is never stated explicitly. It does disclose that the source may be HTML or PDF and that content is converted to Markdown, which is real behavioral context, but it says nothing about error behavior for invalid or non-IS URLs, rate limits, or 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler: the verb and resource come first, followed by format, jurisdiction, and lookup key. Nothing in it is redundant padding, and each clause carries distinct information.

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?

The tool is simple (two parameters, one required), and an output schema exists, so the description need not explain return values. It covers jurisdiction, source formats, and accepted identifier types; the only gap is failure behavior for invalid or out-of-scope documents, which an agent might want before calling.

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 are already documented in the schema, including the 5,000-character page size, and the baseline therefore applies. The description's 'by its URL or official identifier' largely repeats the schema's document_id_or_url documentation, adding only the acceptable file extensions (.html/.pdf).

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 full Markdown text') plus the resources it covers (legislation documents and court judgments), the source formats (HTML or PDF), the jurisdiction (Iceland/IS), and the lookup key (URL or official identifier). This clearly separates it from the sibling search_* and verify_citation tools, which do not return full 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?

The phrase 'official ID returned by search tools' implies the intended pipeline of searching first and then fetching a document, which is useful implied guidance. However, it never states when not to use this tool, nor does it name an alternative (for example verify_citation or a search tool) for the cases where it would be the wrong choice.

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