Skip to main content
Glama

Szukaj aktów prawnych (Dziennik Ustaw, Monitor Polski)

szukaj_aktow
Read-onlyIdempotent

Search Polish legal acts in the Sejm ELI database by title words, keywords, year, type, or in-force status. Returns act addresses for use with the akt tool.

Instructions

Wyszukuje opublikowane akty prawne w bazie ELI Kancelarii Sejmu: ustawy, rozporządzenia, obwieszczenia, uchwały. Po słowach z tytułu (w przypadku zależnym, np. "o Krajowej Radzie Sądownictwa"; rdzeń też działa), słowach kluczowych, roku, rodzaju i tym, czy akt obowiązuje. O obowiązywaniu dziś mówi pole obowiazuje (statusWELI to surowy status ELI). Daty od/do są włączne. Ustawy idą przed obwieszczeniami o tekstach jednolitych. Adres z wyniku (np. DU/2019/914) podaj do narzędzia akt. Wyszukiwanie po tytule gubi nowelizacje zawarte w ustawach o innych tytułach (np. ustawa o finansach publicznych zmienia też ustawę o PIT). Liczbę i listę nowelizacji danej ustawy, także ostatnią, daje narzędzie akt z jej adresem i powiazania="Akty zmieniające" (pole ogloszono przy każdej pozycji i rozkład po latach ogłoszenia). Wynik bywa niepełny (brak czasu, awaria Sejmu, limit): wtedy ma pole wynikCzesciowy i powiedz to użytkownikowi na początku odpowiedzi.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doNoWydane do dnia (data aktu)
odNoWydane od dnia (data aktu)
rokNoRok publikacji (Dziennik Ustaw od 1918, Monitor Polski od 1918/1930)
frazaNoSłowa z tytułu aktu
limitNoIle wyników najwyżej (domyślnie 20, max 50)
rodzajNoRodzaj aktu, np. "Ustawa", "Rozporządzenie", "Obwieszczenie"
wydawcaNoDU = Dziennik Ustaw, MP = Monitor PolskiDU
wchodzaDoNoWchodzące w życie do dnia
wchodzaOdNoWchodzące w życie od dnia
ogloszoneDoNoOgłoszone w dzienniku do dnia
ogloszoneOdNoOgłoszone w dzienniku od dnia
zmienioneOdNoTylko akty, których opis w bazie ELI zmienił się od tego dnia (nowe akty, zmiana statusu); pomija pozostałe filtry poza wydawcą
przesuniecieNoOd którego wyniku zacząć (stronicowanie)
slowaKluczoweNoSłowa kluczowe ELI po przecinku, np. "budżet" albo "podatek dochodowy"
tylkoObowiazujaceNoTylko akty obowiązujące dziś

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
uwagiNo
zrodlaYes
kalendarzNo
wynikCzesciowyNoTylko przy wyniku NIEPEŁNYM: powiedz to użytkownikowi na początku

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, so safety is covered; the description goes further by disclosing result ordering (ustawy before obwieszczenia), the inclusive date semantics, and a failure mode — partial results flagged by wynikCzesciowy with an instruction to inform the user first. That is substantive behavioral context beyond the 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?

Front-loaded with what is searched, then qualifications, then chaining and caveats. Dense and every clause carries information, though the nowelizacje caveat is reiterated in two sentences and the text is longer than strictly necessary.

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 15-parameter open search tool with an output schema, the description covers purpose, parameter nuances, result ordering, chaining to 'akt', and the partial-result failure mode. An agent has everything needed to call it correctly and to handle the response.

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 baseline is 3, but the description adds real meaning: fraza matches title words in the dependent grammatical case (rdzeń też działa), dates od/do are inclusive, and obowiazuje reflects today's force status while statusWELI is the raw ELI status. These clarifications go beyond the schema text.

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 (wyszukuje) and resource (opublikowane akty prawne in the ELI base), enumerates the act categories searched (ustawy, rozporządzenia, obwieszczenia, uchwały), and names the qualifying facets. It clearly distinguishes itself from the sibling 'akt', which is for retrieving a single act by address.

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 the agent: search by title/words/year here, then pass the returned address (e.g. DU/2019/914) to 'akt'. It states the conditions where this tool is insufficient (title search misses nowelizacje) and names the exact alternative call (akt with powiazania="Akty zmieniające").

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