Skip to main content
Glama

Get Legal Document Markdown

get_legal_document_markdown

Retrieve full Markdown text of an Australian legislation document or court judgment (HTML/PDF) using its URL, ECLI, ELI, or official ID to read statutory and judicial texts directly.

Instructions

Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from Australia (AU) 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

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description must carry the burden. It discloses format (Markdown), source formats (HTML/PDF), and jurisdiction (AU), and the page parameter implies paginated returns. It omits failure behavior for unsupported URLs/IDs, permission requirements, and whether content is truncated, which matter for a no-annotation tool.

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 the action first and qualifiers after; no filler. The parenthetical '(HTML or PDF)' and '(AU)' are compact qualifiers rather than wasted words.

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?

The tool has an output schema (so return shape needn't be explained) and complete parameter descriptions, but with zero annotations and a mutation-free yet non-trivial retrieval path, the description leaves identifier-format edge cases and pagination workflow under-explained.

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%, including the 5,000-character page size and the accepted identifier types, so the schema does the heavy lifting. The description restates 'URL or official identifier' but adds no additional syntax examples or pagination guidance 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?

The description names a specific verb and resource ('Retrieve full Markdown text of a legislation document or court judgment') and clarifies scope (AU, HTML or PDF, by URL or identifier). It does not explicitly contrast with search_legislation or search_case_law, but the retrieval-vs-search distinction is inferable from the verb.

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?

Implicit guidance: the description says the identifier must come from a URL or an 'official ID returned by search tools', which quietly routes the agent to the search siblings first. However, it never states when-not to use it or names an alternative for full-text retrieval.

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