Skip to main content
Glama

Get Legal Document Markdown

get_legal_document_markdown

Retrieve full Markdown text of an Albanian law or court judgment by URL, ECLI, ELI, or official ID, with paginated output for long documents.

Instructions

Retrieve full Markdown text of a legislation document or court judgment from Albania (AL) 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, ECLI, ELI, or official ID returned by search tools.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden. 'Retrieve' implies a non-mutating read, and the AL-only scope is useful context, but there is no disclosure of failure behavior for malformed or unknown identifiers, coverage limits, or rate/auth constraints. Pagination exists only in the schema, not the description.

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 the verb and resource first and the accepted input forms last. Nothing is repeated and no sentence is filler.

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-format explanation is unnecessary, and the input schema is fully documented. What remains thin is the behavioral edge around what actually comes back (full text vs. paged excerpt) and how errors surface, but for a simple two-parameter retrieval tool this is nearly complete.

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, including accepted identifier forms and the 5,000-character page size. The description adds only marginal meaning by clarifying that the document may be legislation or a court judgment. Baseline 3 is appropriate when the schema does the heavy lifting.

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 sentence names a specific verb and resource ('Retrieve full Markdown text of a legislation document or court judgment') and scopes it geographically to Albania (AL). It is clearly distinguishable from the sibling search_* tools, which find documents, and from verify_citation, which validates references rather than returning 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 'by its URL or official identifier' implies this is a follow-up call to a search tool, but the description never says so explicitly nor names an alternative. There is no guidance on when this is the wrong tool (e.g., when you only need metadata or a verification result).

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