Skip to main content
Glama
Kosovo Legal Research MCP Server (xk-legal-mcp)

Kosovo Legal Research MCP Server (xk-legal-mcp)

by jurisatlas

Get Legal Document Markdown

get_legal_document_markdown

Retrieve the full Markdown text of a Kosovo legislation document or court judgment by URL, ECLI, ELI, or official ID, with paginated results of 5,000 characters.

Instructions

Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from Kosovo (XK) 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
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does convey key traits: read-only retrieval, two source formats (HTML or PDF), and jurisdiction scope. It stops short of stating whether pagination truncation occurs silently (the schema hints at 5,000-char pages) or what happens with invalid URLs.

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 dense sentence with zero wasted words, front-loaded with the verb and resource. It is terse to the point that usage guidance and behavioral caveats had to be dropped, which is a minor structural trade-off rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 values needn't be explained. Given only two fully documented parameters, no annotations, and a simple read-only fetch, the description plus structured fields give an agent everything needed to invoke the tool correctly.

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%, so both parameters are already documented, giving a baseline of 3. The description reinforces that document_id_or_url accepts URL, ECLI, ELI, or official ID and that such IDs come from search tools, but adds no syntax or format specifics beyond 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?

States a specific verb (retrieve) and resource (full Markdown text of legislation or court judgment), plus jurisdiction (Kosovo/XK) and accepted identifier forms. It doesn't distinguish itself from siblings like search_legislation or search_case_law, but those are search tools and this is a fetch-by-identifier tool, so the distinction is largely implicit.

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 mention of 'by its URL or official identifier' and the schema note 'returned by search tools' implies a two-step workflow (search first, then fetch), which is useful context. However, there is no explicit when-to-use/when-not guidance and no direct naming of the sibling to use upstream.

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