Skip to main content
Glama

Get Legal Document Markdown

get_legal_document_markdown

Retrieve the full Markdown text of Swiss legislation or court judgments by URL, ECLI, ELI, or official ID, enabling clean full-text access for review and citation.

Instructions

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

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the source formats and jurisdiction, but says nothing about rate limits, document size limits, truncation, or that results are paged (pagination is only visible in the schema). With an output schema present, return-value description is not required, keeping this at a moderate level.

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 front-loaded sentence with no filler, stating resource, scope, formats, and identifier types. Nothing is wasted, though a short clause on when to prefer a search tool first would have been a worthwhile addition.

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

Completeness3/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 a full schema and an output schema, the description covers the essentials. It is still thin on operational behavior (pagination across large documents, whether the full text is ever truncated), which matters for a full-text retrieval tool with no annotations.

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 both parameters are already documented, and the description's mention of URL/ECLI/ELI/official ID reinforces rather than duplicates the schema. The page parameter is fully explained in the schema, so the baseline-plus is appropriate.

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 gives a specific verb and resource ("Retrieve full Markdown text of a legislation document or court judgment"), plus jurisdiction (CH) and accepted source formats (HTML or PDF). It does not explicitly differentiate itself from sibling search tools such as search_legislation or search_case_law, so an agent must infer that this is the fetch-by-identifier step.

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 context is implied rather than stated: the identifier parameter mentions values "returned by search tools," which hints at a search-then-retrieve flow. There is no explicit when-to-use/when-not guidance or named alternative for retrieving document content another way.

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