Skip to main content
Glama

Merit — Ukrainian Law & Registers

Get Court Decision (EDRSR)

ua_edrsr__get_document
Read-onlyIdempotent

One decision: its text, its citations, its structural parts.

Text is windowed, never dumped whole. text_window says what came back and how to get the rest. Citations cover that window only, with *_outside_window counting the rest; repeats of one case roll up into occurrences.

Citations carry what was written and what it resolved to, so an unresolved one stays visible. Join on resolved_cause_num, not the written number.

case_citations are what this decision cites. Text near a citation is this court's reasoning, not the cited court's.

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": {
      "doc_id": "<doc_id>"
    },
    "name": "ua_edrsr__get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idYesDocument id.
offsetNoCharacters to skip, for paging.
sectionNoParts to return text for: preamble, reasoning (what the court found), operative (what it ordered). Omit for all.
max_charsNoCap on returned text characters; text_window.next_offset continues.
include_htmlNoAlso return canonical HTML (tables, emphasis, superscripts the text flattens). Always whole: the window cuts text, which offsets index.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare the safe read profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely non-obvious behavior beyond that: text is never returned whole, `text_window` reports how to continue, citations cover only the returned window with `*_outside_window` counters, and repeats of one case roll up into `occurrences`. It also warns that HTML is always returned whole because offsets index the text, which is exactly the trap an agent would otherwise fall into.

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?

Front-loaded with the one-line purpose, then short paragraphs each covering a distinct concern (windowing, citations, case_citations). The telegraphic style ('Citations cover that window only') is dense but each sentence carries information; a brief gloss of the `text_window` fields would cost little and help more than a few current phrases.

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?

With no output schema, the description must carry the return-value burden, and it largely does: it names the text/citation/structural-parts payload, the `text_window` continuation mechanism, `occurrences` rollup, and `case_citations` versus cited cases. Field names like `text_window.next_offset` and `*_outside_window` are referenced without full shape, leaving a small gap, but nothing blocks a correct first call.

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 description coverage is 100%, so parameter names and basic meanings are already covered and baseline is 3. The description adds real meaning on top: it explains the offset/window relationship through `text_window`, clarifies that windowing applies to text but not to `include_html`, and flags `resolved_cause_num` as the join key rather than the written citation number.

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?

Opens with a specific verb+resource framing: 'One decision: its text, its citations, its structural parts.' An agent immediately knows this retrieves a single court decision with full text and citation data, distinct from the search-style siblings. It does not explicitly name ua_edrsr__lookup_case or ua_edrsr__search as the alternatives, so sibling differentiation is only 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?

Usage is implied by the required doc_id and by the paging fields, but the description never states when to use this over ua_edrsr__lookup_case or ua_edrsr__search, nor any prerequisite such as obtaining a doc_id from a search first. The section parameter's description in the schema hints at narrowing to reasoning/operative, but the description itself gives no routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.