Skip to main content
Glama

Search Case Law

search_case_law

Search Polish court decisions and binding precedents by legal issue, keywords, party, ECLI, or case number and filter by court.

Instructions

Search Poland (PL) court decisions and binding precedents via SAOS Open Case Law REST API (saos.org.pl/api/search/judgments) and open national judicial archives (Supported courts: Sąd Najwyższy (Supreme Court), Trybunał Konstytucyjny, NSA (Supreme Administrative Court), Common Courts).

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": {
      "query": "<query>"
    },
    "name": "search_case_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
courtNoOptional court filter (Sąd Najwyższy (Supreme Court), Trybunał Konstytucyjny, NSA (Supreme Administrative Court), Common Courts).
limitNoMaximum number of judgments to return.
queryYesLegal issue, keywords, party name, or ECLI/case number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does usefully disclose the upstream data source and the supported court set, but says nothing about authentication, rate limits, result ordering, pagination, or whether the search is full-text or metadata-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with the action first, which is good. However, the trailing parenthetical court list duplicates the schema's court parameter verbatim and the raw API URL is of marginal value, so parts of the sentence do not earn their place.

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?

The tool is simple (three params, one required) and an output schema exists, so return values need not be explained. Jurisdiction and data sources are covered; only minor behavioral context such as result shape or result ordering is absent.

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 description coverage is 100%, so the baseline is 3. The description only restates the supported-court list that already appears verbatim in the court parameter, adding no new meaning about query syntax, filter interaction, or limit behavior.

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?

States a specific verb and resource: search Polish (PL) court decisions and binding precedents, naming concrete sources (SAOS API, national judicial archives). It is not differentiated from the very similar sibling search_tiered_court_decisions or from search_legislation, so an agent must infer the boundary rather than being told it.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The only signal is the implicit scope 'Poland court decisions', which leaves the agent to guess how this differs from searching tiered court decisions or legislation.

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