Skip to main content
Glama
mcp-saos

mcp-saos

by pwasniowski

search

Read-onlyIdempotent

Find Polish court judgments in SAOS by full text, court type, judge, legal basis, date range, or case number, and retrieve matching rulings for precedent and case-law analysis.

Instructions

Przeszukuje baze orzeczen sadow polskich w SAOS (System Analizy Orzeczen Sadowych). Sady powszechne (COMMON) - takze orzeczenia biezace. ARCHIWALNE w SAOS: Sad Najwyzszy tylko do 2016-06 (nowsze: sn.pl/orzecznictwo), TK do 2015-12, KIO do 2018-09 - przy dateFrom poza tym zakresem wynik jest pusty, a odpowiedz to mowi. Sady administracyjne (WSA/NSA) NIE sa indeksowane. Daty bywaja znieksztalcone przez OCR - weryfikuj sygnature i date w zrodle. Przydatny do: analizy linii orzeczniczej, precedensow, wyszukiwania po tresci / sygnatuze / sedzim / podstawie prawnej. Bledy: invalid_court_type (zly enum), upstream_error (HTTP/timeout API).

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

Input Schema

NameRequiredDescriptionDefault
allNoWyszukiwanie pelnotekstowe - slowo lub fraza w tresci orzeczenia.
dateToNoData orzeczenia do (format YYYY-MM-DD), np. '2016-12-31'.
dateFromNoData orzeczenia od (format YYYY-MM-DD), np. '2015-01-01'.
pageSizeNoLiczba wynikow na strone (min 10, max 100). Domyslnie 10.
courtTypeNoTyp sadu: COMMON=sady powszechne, SUPREME=Sad Najwyzszy (w SAOS do 2016-06-22), CONSTITUTIONAL_TRIBUNAL=Trybunal Konstytucyjny (do 2015-12-09), NATIONAL_APPEAL_CHAMBER=Krajowa Izba Odwolawcza (KIO, do 2018-09-06). NIE uzywaj ADMINISTRATIVE - sady admin nie sa w SAOS.
judgeNameNoNazwisko sedziego, np. 'Kowalski'.
legalBaseNoPodstawa prawna, np. 'art. 415 kc' lub 'art. 6 RODO'.
caseNumberNoSygnatura akt, np. 'I ACa 772/13' lub 'IV CSK 123/15'.
pageNumberNoNumer strony (od 0). Do paginacji wynikow.
referencedRegulationNoPrzywolany akt prawny, np. 'ustawa o ochronie danych osobowych'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.1

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing archival cutoffs per court, that out-of-range dateFrom yields an empty result with an explanatory response, that administrative courts are not indexed at all, and that OCR can corrupt dates. It also names specific error conditions (invalid_court_type, upstream_error), which the annotations do not cover.

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?

Core purpose and coverage limits are front-loaded, and the use-case list and error names follow. It is dense but nearly every sentence carries operational information; the archival cutoff details are somewhat compressed but not wasted.

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?

For a 10-parameter search tool with no output schema, the description covers coverage limits, empty-result behavior, and errors, which are the main risk areas. It does not describe the shape of returned results (fields, pagination totals), which would help an agent plan follow-up calls.

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 the baseline is 3, but the description adds behavioral meaning the schema lacks: the date cutoffs tied to courtType and the fact that out-of-range dateFrom produces an empty result rather than an error. It does not add new hints about judgeName or referencedRegulation 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?

Opens with a specific verb and resource: searching Polish court rulings in SAOS, and enumerates the covered court types. It is clearly a full-text search tool, but it never distinguishes itself from siblings like search_by_case or get_judgment by name, so an agent must infer the boundary.

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 'Przydatny do:' clause gives concrete use cases (line of case law analysis, precedents, searching by content/case number/judge/legal basis), which is strong context. It does not explicitly state when to prefer this over a sibling tool, leaving that inference to the agent.

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