Skip to main content
Glama

Prawnet: Polish case law and legislation

Porównanie brzmień przepisu

porownaj_brzmienie
Read-onlyIdempotent

Porównanie dwóch brzmień jednego artykułu ustawy: oba teksty (do 5000 znaków każdy) i lista różnic słowo po słowie (bylo / jest z kontekstem, bilans słów; przy bardzo długich tekstach zdaniami), z wersjami i ustawami zmieniającymi pomiędzy nimi. Brzmienia wskazuje data1 / data2 albo wersja1 / wersja2. Bez data2 i wersja2: brzmienie dzisiejsze; bez data1 i wersja1: wersja bezpośrednio poprzedzająca drugie brzmienie (ostatnia nowelizacja). Brzmienia historyczne są odtworzone z łańcucha obwieszczeń o tekście jednolitym, więc przybliżone: daty bywają szacowane, zmiany sprzed najstarszego obwieszczenia w bazie są niewidoczne (pole uwaga przy każdym brzmieniu). Pokrycie: 50 najczęściej cytowanych aktów (główne kodeksy, Konstytucja, Ordynacja podatkowa, ustawy o VAT i PIT, Pzp i in.); dla innych aktów status brak_historii (to nie znaczy, że artykuł się nie zmieniał).

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

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
data1NoRRRR-MM-DD: pierwsze brzmienie = z tego dnia
data2NoRRRR-MM-DD: drugie brzmienie; bez data2 i wersja2 — dziś
przepisNoCytat ("art. 446 § 4 kc", "art. 5 ustawy o prawach konsumenta") albo potoczna nazwa ("zasiedzenie"); zamiast y, p, art. Do 160 znaków
wersja1NoZamiast data1: nr wersji (1 = najstarsza w bazie)
wersja2NoZamiast data2: nr wersji

Output Schema

NameRequiredDescriptionDefault
statusNo
citationsNo
wersja_danychNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: the 5000-character input cap, sentence-level diffing for very long texts, the fact that historical wordings are reconstructed from consolidated-text chains and are therefore approximate, that pre-database changes are invisible, and the brak_historii status for uncovered acts. These are exactly the caveats an agent needs to interpret results honestly.

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?

Front-loaded with the core purpose and output, then defaults, then caveats and coverage — a logical order. It is dense and runs as one long paragraph with some parenthetical stacking, which slightly hurts scanability but no sentence is filler.

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 an 8-parameter, zero-required comparison tool with an output schema, the description covers input selection, defaults, output shape, accuracy limits, and coverage scope. An agent can call it correctly and interpret a brak_historia result without further inference.

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 real meaning: the either/or relationship between data1/data2 and wersja1/wersja2, the default resolution when pairs are incomplete, and the przepis-vs-(y,p,art) alternative. It does not restate the schema's format hints, which is appropriate.

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 and resource ('Porównanie dwóch brzmień jednego artykułu ustawy') and immediately enumerates the output (both texts, word-level diff, word balance, versions and amending acts). This is clearly distinguishable from siblings like historia_przepisu or tresc_przepisu, which do not compare two wordings.

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?

Gives explicit selection rules: versions are identified by data1/data2 or wersja1/wersja2, and it spells out the defaults when data2/wersja2 or data1/wersja1 are omitted. It does not explicitly say when to prefer this over historia_przepisu or tresc_przepisu, so it stops short of full alternative routing.

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