Skip to main content
Glama

Prawnet: Polish case law and legislation

Analiza przepisu w jednym wywołaniu

analiza_przepisu
Read-onlyIdempotent

Dane o jednym artykule w jednej odpowiedzi, sześć niezależnych części (każda ze statusem: ok, brak_danych, blad, przekroczono_czas): brzmienie (tekst aktualny albo na dzień data, do 1500 znaków, z podsumowaniem historii brzmień, gdy ją mamy), wiodace (5 orzeczeń o najwyższym autorytecie cytowaniowym, z losem i liczbą cytowań), rozstrzygniecia (rozkład rozstrzygnięć osobno dla każdej instancji), powiazane (5 artykułów najsilniej współcytowanych, n_razem ≥ 100, a gdy takich par nie ma — ≥ 20; przykład dla par ≥ 100), trend (ostatnie 8 lat i z-score ostatniego pełnego roku) i rozbieznosc (flaga SN vs SA/SO z przykładami). Każda statystyka ma n, okres i opis metody. Odpowiedź w mniej niż 20 s; część, która się nie zmieści, ma status przekroczono_czas. Pomiar w grafie Prawnet, nie komentarz doktryny.

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

Input Schema

NameRequiredDescriptionDefault
pNoBez przepis: POZYCJA w Dz.U., nie numer (k.c. 1964/93)
yNoBez przepis: rok Dz.U.
artNoBez przepis: nr artykułu ("385-1" = 385¹), do 16 znaków
dataNoRRRR-MM-DD: brzmienie z tego dnia (historia dla 50 najczęściej cytowanych aktów (główne kodeksy, Konstytucja, Ordynacja podatkowa, ustawy o VAT i PIT, Pzp i in.)); bez data aktualne
przepisNoCytat ("art. 446 § 4 kc", "art. 5 ustawy o prawach konsumenta") albo potoczna nazwa ("zasiedzenie"); zamiast y, p, art. Do 160 znaków

Output Schema

NameRequiredDescriptionDefault
statusNo
citationsNo
wersja_danychNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / data / description
      Previous value: -"RRRR-MM-DD: brzmienie z tego dnia (historia dla 10 aktów: 8 kodeksów, Ordynacja podatkowa, ustawa o ochronie praw lokatorów); bez data aktualne"New value: +"RRRR-MM-DD: brzmienie z tego dnia (historia dla 50 najczęściej cytowanych aktów (główne kodeksy, Konstytucja, Ordynacja podatkowa, ustawy o VAT i PIT, Pzp i in.)); bez data aktualne"
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the read-only/idempotent annotations, the description discloses genuinely useful runtime behavior: an under-20-second budget, partial results where any part that does not fit returns status przekroczono_czas, and a per-part status enum (ok, brak_danych, blad, przekroczono_czas). It also notes that every statistic carries n, period and method description, which sets expectations about reliability of the numbers. It stops short of describing fallback thresholds' consequences or ordering/precedence among parts.

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 front-loaded with the core promise and contains little pure filler, but it reads as a single dense run-on paragraph with heavy nested parentheses, making the six-part structure hard to scan. Bullet-like separation per part would have made it shorter to parse without dropping content.

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 complex composite tool with five parameters and an output schema, the description is largely complete: all six parts, their thresholds (n_razem ≥ 100, fallback ≥ 20), latency budget and degraded-result semantics are covered. The main gap is that it never explains the relationship between the przepis free-text parameter and the y/p/art triple, leaving the agent to infer mutual exclusivity from the schema.

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% and the schema already explains p as a Dz.U. position, art formatting like '385-1', data as RRRR-MM-DD and przepis as a citation or colloquial name. The description adds only marginal context ('brzmienie na dzień data', the 1500-character cap) and never clarifies how przepis interacts with y/p/art beyond what the schema states, so the baseline 3 applies.

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?

The description states a specific verb and resource — data about one article returned in one answer, split into six named parts — and enumerates the parts (brzmienie, wiodace, rozstrzygniecia, powiazane, trend, rozbieznosc) so an agent knows exactly what comes back. It does not name any sibling (e.g. historia_przepisu, trend_przepisu, rozbieznosc_orzecznicza) that covers a single part, so the differentiation from alternatives is left implicit.

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

Usage Guidelines3/5

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

Usage is only implied: the 'w jednym wywołaniu' framing and the 'Pomiar w grafie Prawnet, nie komentarz doktryny' caveat tell the agent when this is the right scope (empirical graph measurement, not doctrine), but there is no explicit statement of when to prefer the narrower siblings over this aggregate, nor any exclusions.

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