Skip to main content
Glama

Merit — Ukrainian Law & Registers

Look Up Court Case (EDRSR)

ua_edrsr__lookup_case
Read-onlyIdempotent

One case by document id or case number, with the cases related to it. Give exactly one of doc_id or cause_num. Metadata only, no reasoning text: what a court held comes from get_document.

Highest instance first, judgments before rulings, newest first.

related_cases is citation-graph overlap, never semantic similarity or a judgement on merits, and may repeat a decision from matches. score weights each shared anchor and case by rarity, so boilerplate ranks near nothing. departures/departed_by: Supreme Court departures read from the texts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ua_edrsr__lookup_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNoDocument id.
offsetNo
cause_numNoCase number. Cyrillic case variants all match.
max_charsNoCap on response characters; related-case evidence fits it.
match_limitNoMax decisions per case to return (1-25).
related_limitNoMax rows to return (0-200); 0 returns the count alone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only annotations, the description discloses ordering rules, the meaning and limits of related_cases, how score is weighted by rarity, and that departures are read from Supreme Court texts. This is substantial behavioral context for interpreting results correctly.

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?

The description is front-loaded with the core operation and then compactly explains result ordering, related_cases semantics, score weighting, and departures. Every sentence adds useful information without repeating the schema or annotations.

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 does a good job explaining the main result fields: matches, related_cases, score, and departures. Offset behavior is left undocumented, which is a small completeness gap for a six-parameter lookup tool.

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 high at 83%, so the schema already documents most parameters. The description adds a critical constraint not visible in the schema: exactly one of doc_id or cause_num must be supplied. It does not clarify offset behavior, leaving a minor gap.

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 description states a specific verb and resource: retrieve one case by document id or case number, together with related cases. It also explicitly distinguishes the result as metadata-only and points to get_document for reasoning text, so an agent can tell it apart from sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a clear usage rule: supply exactly one of doc_id or cause_num, and use get_document when the holding or reasoning text is needed. It does not compare against ua_edrsr__search or get_court_practice, but the identifier-based lookup scope is clear.

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.