Skip to main content
Glama

get_judgment

Read-onlyIdempotent

Retrieves a Polish administrative court ruling from CBOSA by doc_id, returning metadata and text sections with pagination for case-law review and citation.

Instructions

Pobiera orzeczenie z CBOSA po jego doc_id (10-znakowy hex z wynikow 'search'). Zwraca metadane (sygnatura, sad, data, sklad, symbol, hasla tematyczne, organ, wynik, powolane przepisy), MAPE SEKCJI (tezy/sentencja/uzasadnienie/zdanie_odrebne z pozycjami znakowymi) i fragment tresci (domyslnie 10000 znakow). Argumentacja sadu jest w section='uzasadnienie'; dalsze partie przez offset.

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": "get_judgment"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idYes10-znakowy hex doc_id z URL CBOSA, np. '7E50984BB7'.
offsetNoPrzesuniecie w znakach. Bez 'section' - od poczatku tekstu; z 'section' - wzgledem poczatku sekcji. Wartosc podana w komunikacie [...] / next_offset.
sectionNoSkok do sekcji: 'tezy', 'sentencja', 'uzasadnienie' (argumentacja sadu), 'zdanie_odrebne', albo 'hasla' = same metadane (hasla, symbol, organ, przepisy) bez tresci. Bez parametru: od poczatku tekstu.
maxCharsNoIle znakow tresci zwrocic (500-50000). Domyslnie 10000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.2

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, open-world, non-destructive, so the bar is lower, yet the description still discloses the return shape (metadata fields, a section map with character positions, and a content fragment) and the default 10,000-character truncation with offset paging. That is genuinely useful behavior an agent cannot infer from the annotations.

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?

Four dense sentences, front-loaded with what is fetched and keyed by doc_id, then return contents, then navigation advice. Nothing is redundant, though the enumeration of metadata fields is tight enough to read as a list dump rather than prose.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by describing the returned metadata, the section map, and the content fragment with paging. Combined with annotations, an agent has enough to call this correctly and to paginate without guessing.

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 coverage is 100%, so all four parameters are self-documenting; the description's statements about doc_id provenance, section='uzasadnienie', and offset continuation largely restate the schema. Baseline 3 is appropriate since the schema carries the semantic load.

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?

Specific verb and resource: retrieves a CBOSA judgment identified by a 10-character hex doc_id, and states where that id comes from (the 'search' results). An agent can distinguish this from 'search'/'search_by_case' purely from the description, since those tools produce ids while this one dereferences them into a document.

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?

Gives concrete operational routing: doc_id is taken from 'search' output, and the court's reasoning is reached via section='uzasadnienie', with continuation through offset. It does not explicitly name search_by_case as an alternative or state when-not-to-use, so it stops short of full when/when-not guidance.

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

Deploy Server

Other Tools