Skip to main content
Glama

Poland Court Judgments API – SAOS Case Law

polish-court-judgments-saos
Read-onlyIdempotent

Search Polish court judgments in the SAOS database by court type, date range, phrase, keywords, and judgment type; retrieve case numbers, judges, and optional full anonymised text.

Instructions

Searches Polish court judgments in the official SAOS database (System Analizy Orzeczeń Sądowych) by court type, date range, SAOS query phrase, subject keywords and judgment type; each item has case numbers, judges and keywords, and includeFullText adds the published anonymised text (charged at a higher rate). Coverage is uneven: common courts are current, Supreme Court data ends in 2016-06, the Constitutional Tribunal in 2015-12 and KIO in 2018-09, and administrative courts return nothing. Use it for bulk lists or onlyNew feeds; to read one judgment interactively use polish-law-mcp-server. Read-only: it only queries the public source and never writes to the registry; onlyNew merely keeps a stateKey memory in your own Apify account. Each call needs the APIFY_TOKEN env var and starts one paid run of the Apify Actor enterprising_hamster/polish-court-judgments-saos on your Apify account, billed pay-per-event per delivered item plus any Apify platform usage; the server waits up to 300 s for the run and returns JSON {items, truncated} with at most maxItems (max 100) items and 256 KiB.

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": "polish-court-judgments-saos"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateToNoInclusive end date, YYYY-MM-DD. Empty means no upper bound.
phraseNoSearches metadata and text using SAOS query language. Use double quotes for an exact phrase, for example "kredyt frankowy".
onlyNewNoSkip IDs retained in a named key-value store. Retains the most recent 50,000 delivered IDs. Does not detect edits. Avoid concurrent runs sharing stateKey.
dateFromNoInclusive start date, YYYY-MM-DD. Empty means no lower bound.
keywordsNoExact SAOS subject keywords. All supplied keywords must match (AND). Source keywords are available for common courts.
maxItemsNoHard cap on actual dataset rows. Skipped records do not count. Text filtering may require more search pages to fill this cap.
stateKeyNoPersistent ID set key. Use 1–100 letters, digits, underscores, or hyphens. Use different keys for independent feeds.
courtTypeNoANY searches all available courts. Coverage checked 2026-10-18: COMMON about 474k judgments through 2026; SUPREME latest June 2016; Constitutional Tribunal December 2015; National Appeal Chamber September 2018; ADMINISTRATIVE no results. SAOS is incomplete and freshness varies.ANY
sortOrderNoSort by judgment date. The source may contain invalid or future dates.newest
textFormatNoPlain text preserves paragraphs and published anonymisation markers. HTML preserves source markup.plain
maxTextCharsNoFull text character cap after formatting. Zero means unlimited. Capped HTML may end inside a tag. textLength reports the original formatted length.
onlyWithTextNoSkip empty search snippets before fetching details, saving rows, or charging. Defaults to true with includeFullText and false for metadata. Set false explicitly to include empty snippets. A nonempty snippet does not guarantee usable full text.
judgmentTypesNoInclude any selected judgment type (OR). Empty includes all types.
commonCourtTypeNoOptional. Requires courtType COMMON. Sent as ccCourtType.
includeFullTextNoFetch individual judgment details. Successful text costs $0.01 per delivered judgment; metadata and text failures cost $0.003. Search snippets alone are not full text.
skipInvalidDatesNoSkip malformed dates, years outside 1900–2100, and dates after the UTC scrape date. Skipped records are not charged.
maxRequestsPerSecondNoShared rate cap across search, details, and retries. Default 1 request/second; maximum 3. At most 2 requests in flight.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the description's added value is cost, latency, coverage and truncation: one paid Apify run, pay-per-event billing, 300 s wait, JSON {items, truncated} capped at maxItems (max 100) and 256 KiB, plus per-court data horizons and the ADMINISTRATIVE dead end. That's substantial context beyond the annotations. It stops short of noting anything about retry/failure semantics or what happens on timeout, which keeps it at 4 rather than 5.

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?

Purpose and scope are front-loaded in the first clause, and every later sentence carries hard information (coverage cutoffs, billing, auth, output shape) rather than filler. However, it is delivered as one dense semicolon-chained block with no separation between purpose, caveats and billing, which makes it harder to scan than it needs to be.

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 17-parameter, no-output-schema tool it does a lot: it describes the return shape ({items, truncated}), the item size cap, truncation, the per-item fields, billing model and coverage horizons. What's missing is fail/timeout behavior (what happens after the 300 s wait) and any hint about output field names, which leaves a small residual gap for an agent planning a run.

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. The description adds real interpretive value on top: it frames phrase as the SAOS query language with quoted exact-phrase syntax, clarifies that keywords are AND-matched exact subject terms, that onlyNew just keeps a stateKey memory in the caller's own Apify account, and that includeFullText is charged at a higher rate. A few parameters (sortOrder, textFormat, maxTextChars, commonCourtType) are not touched in the prose, hence 4 not 5.

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?

States a specific verb (searches), the resource (Polish court judgments in SAOS), the source system, and the exact filter facets (court type, date range, phrase, keywords, judgment type). It also names the sibling it is not for (polish-law-mcp-server) and the bulk/feed use case, so an agent can distinguish it from every other sibling without opening a schema.

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

Usage Guidelines5/5

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

Explicitly routes: "Use it for bulk lists or onlyNew feeds; to read one judgment interactively use polish-law-mcp-server." It also states the practical preconditions (APIFY_TOKEN env var required) and warns about the onlyNew/stateKey concurrency constraint, leaving little 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.