Skip to main content
Glama

Prawnet — Polish case law & legislation

Wyszukiwanie w treści orzeczeń

szukaj_orzeczen
Read-onlyIdempotent

Wyszukiwanie pełnotekstowe w orzeczeniach Prawnet (SAOS: sądy powszechne i SN do 06.2016; Portal Orzeczeń; repozytorium SN od 06.2016; KIO; TK; NSA/WSA z CBOSA). Składnia: muszą wystąpić wszystkie słowa; OR łączy warianty; tekst w cudzysłowie = słowa w tej kolejności; minus wyklucza słowo/frazę. Dopasowanie wpisanej formy wyrazu (bez lematyzacji; wielkość liter bez znaczenia, polskie znaki istotne); formy odmiany łączy OR. Strona = najnowsze trafienia, w obrębie strony wg autorytetu (PageRank). Trafienia tylko w nagłówku lub podpisach (sąd, skład) pomijane, chyba że fraza to sygnatura. Bez filtra sad: na pierwszej stronie blok nsa_wsa (liczba i najnowsze trafienia z indeksu NSA/WSA). sad = ADMINISTRATIVE: pełna lista z indeksu NSA/WSA (teza, sentencja, hasła, części uzasadnienia; bez kolejności słów; fragment tylko z sentencji). Wynik: fragment z trafieniem (do 300 znaków), źródło; razem = dokładna liczba albo null (frazy bardzo częste; cytaty z ponad 800 kandydatami). Bez nazwisk sędziów i pełnych tekstów.

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": {
      "fraza": "<fraza>"
    },
    "name": "szukaj_orzeczen"
  }
}

Input Schema

NameRequiredDescriptionDefault
sadNoRodzaj sądu (ADMINISTRATIVE = NSA/WSA)
frazaYesSłowa ("umowa OR umowy OR umowie"; "słowa w kolejności"; -słowo, -"fraza" wyklucza); bez odmiany, ą ≠ a. Do 200 znaków
limitNoDomyślnie 10
offsetNoNastępna strona: strona.nastepny_offset
rok_doNoNajpóźniejszy rok (włącznie)
rok_odNoNajwcześniejszy rok (włącznie)

Output Schema

NameRequiredDescriptionDefault
statusNo
citationsNo
wersja_danychNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sad / description
      Previous value: -"Rodzaj sądu (ADMINISTRATIVE = wybór NSA/WSA)"New value: +"Rodzaj sądu (ADMINISTRATIVE = NSA/WSA)"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses ranking ('najnowsze trafienia', PageRank within page), that header/signature-only hits are skipped unless the query is a signature, that 'razem' may be null for very frequent phrases, and that judge names and full texts are excluded from results. These are exactly the behaviors an agent needs to interpret output correctly and cannot be derived from 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?

One dense paragraph with no filler sentences; every clause carries operational information (syntax, matching, ranking, snippet limits). The trade-off is readability: syntax rules, filter behavior, and return format are run together without separators, so an agent must parse carefully rather than skim.

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?

For a six-parameter search tool with an output schema, the description still covers the query language, matching rules, ranking, pagination path, null-total edge case, and result truncation — everything needed to call and interpret it. Nothing material for correct invocation is missing.

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 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains that 'sad=ADMINISTRATIVE' changes matching (no word-order constraint, snippet only from the sentencja) and that 'offset' is obtained from 'strona.nastepny_offset'. It does not further clarify 'rok_od'/'rok_do' or 'limit' beyond their schema text, which keeps it from a 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?

The description opens with a specific verb and resource ('Wyszukiwanie pełnotekstowe w orzeczeniach') and immediately enumerates the covered corpora (SAOS, Portal Orzeczeń, SN, KIO, TK, NSA/WSA z CBOSA), which distinguishes it from statute- or interpretation-oriented siblings. An agent can tell this searches ruling text rather than acts or decisions without opening the schema.

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?

It gives clear conditional guidance: without the 'sad' filter the first page carries an nsa_wsa block, while 'sad=ADMINISTRATIVE' switches to the full NSA/WSA index with different matching and snippet rules. It does not name a sibling alternative or state when another tool (e.g. szukaj_aktow, orzeczenia_do_przepisu) should be preferred, so tool-level routing is left to the caller.

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.

Resources