Skip to main content
Glama

search_legal_acts

Search Polish legal acts in Dziennik Ustaw and Monitor Polski using keywords, title, type, dates, and validity. Filter to find specific regulations.

Instructions

Wyszukaj polskie akty prawne z Dziennika Ustaw (DU) i Monitora Polskiego (MP).

UWAGA: Wszystkie słowa kluczowe muszą wystąpić jednocześnie (logika AND). Szukaj jednego słowa na raz dla logiki OR.

Kiedy użyć: Gdy znasz słowa kluczowe, tytuł, typ lub kryteria wyszukiwania. Kiedy NIE używać: Gdy chcesz przeglądać cały rocznik → użyj browse_acts.

Po wyszukiwaniu możesz użyć filter_results(result_set_id=...) aby dalej zawęzić wyniki (np. regex na tytułach, filtr po typie dokumentu).

Przykłady:

  • search_legal_acts(keywords=["podatek"], year=2024) - Akty podatkowe z 2024

  • search_legal_acts(act_type="Ustawa", title="zdrowotny") - Ustawy o zdrowiu

  • search_legal_acts(act_type="Rozporządzenie", year=2024, in_force=True) - Obowiązujące rozporządzenia z 2024

  • search_legal_acts(publisher="MP", year=2024, limit=10) - 10 aktów z MP z 2024

  • search_legal_acts(date_from="2024-01-01", date_to="2024-06-30") - Akty wchodzące w życie I poł. 2024

  • search_legal_acts(pub_date_from="2024-03-01", pub_date_to="2024-03-31") - Ogłoszone w marcu 2024

  • search_legal_acts(title="budżet", year=2024) - Akty budżetowe z 2024

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoRok publikacji (np. 2024).
limitNoMaksymalna liczba wyników do zwrócenia. Domyślnie 20. Przydatne do ograniczenia dużych zbiorów. Nie jest przycinana do 100 jak w pozostałych narzędziach listujących, ponieważ trafia wprost do zapytania do api.sejm.gov.pl — publicznej usługi instytucji państwowej. Podawaj najmniejszą wystarczającą wartość.
titleNoSzukaj w tytule aktu (dopasowanie podciągu). Np. 'budżet', 'przeciwpożarow', 'podatek dochodowy'.
offsetNoLiczba wyników do pominięcia (paginacja). Użyj z parametrem limit.
date_toNoData wejścia w życie DO (YYYY-MM-DD). Filtruje akty które weszły w życie do tej daty.
act_typeNoTyp dokumentu (dokładne dopasowanie). Dostępne wartości: 'Ustawa', 'Rozporządzenie', 'Obwieszczenie', 'Komunikat', 'Uchwała', 'Zarządzenie', 'Wyrok', 'Postanowienie', 'Oświadczenie rządowe'. Użyj get_system_metadata(category='types') aby zobaczyć pełną listę.
in_forceNoFiltruj po obowiązywaniu: true = tylko akty obecnie obowiązujące, false = tylko akty nieobowiązujące, None = wszystkie.
keywordsNoSłowa kluczowe z systemu Sejmu (logika AND — wiele słów zawęża wyniki). Aby uzyskać logikę OR, wykonaj oddzielne wyszukiwanie dla każdego słowa. Użyj get_system_metadata(category='keywords') aby poznać dostępne słowa kluczowe.
date_fromNoData wejścia w życie OD (YYYY-MM-DD). Filtruje akty które weszły w życie od tej daty.
publisherNoKod wydawcy: 'DU' (Dziennik Ustaw) lub 'MP' (Monitor Polski). Domyślnie 'DU'.DU
pub_date_toNoData publikacji/ogłoszenia DO (YYYY-MM-DD). Filtruje po dacie ogłoszenia w dzienniku.
detail_levelNoPoziom szczegółowości wyników: 'minimal' (ELI, tytuł, status), 'standard' (+ typ, daty, obowiązywanie), 'full' (wszystkie pola). Domyślnie 'standard'.standard
pub_date_fromNoData publikacji/ogłoszenia OD (YYYY-MM-DD). Filtruje po dacie ogłoszenia w dzienniku.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe actual response data
hintsNoSuggested next steps
metadataNoAdditional metadata
Install Server

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses important search semantics: keywords use AND logic, OR requires separate searches, and filter_results can be used to further narrow results. It does not explicitly state defaults like publisher=DU or limit=20, but those are already in the input schema; the description adds useful behavioral context beyond the schema.

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

Conciseness5/5

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

The description is well-structured into a main purpose, an AND-logic warning, explicit when-to-use/when-not-to-use guidance, a follow-up filter_results pointer, and examples. Every section earns its place, and the most important scoping information is front-loaded. Despite covering many behaviors, it remains compact and scannable.

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?

The tool has 13 parameters and 12 siblings, but the description plus full schema coverage and output schema provide enough context for correct invocation. It explains the primary use case, the main alternative, the follow-up tool, and the critical AND/OR semantics, while examples illustrate realistic parameter combinations. Nothing essential for selecting or calling this tool 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 description coverage is 100%, so the baseline is 3, and the description does not need to re-explain parameters. It earns a 4 by adding illustrative multi-parameter examples that clarify intent, such as date_from/date_to for entry into force and pub_date_from/pub_date_to for publication dates. The examples map naturally to the schema properties and show how parameters combine.

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: 'Wyszukaj polskie akty prawne z Dziennika Ustaw (DU) i Monitora Polskiego (MP).' It clearly distinguishes itself from browse_acts by stating that browsing whole annual volumes is a different operation, and it routes post-search narrowing to filter_results. An agent can immediately tell what this tool does and how it differs from closely related siblings.

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?

The description explicitly states when to use the tool ('Gdy znasz słowa kluczowe, tytuł, typ lub kryteria wyszukiwania'), when not to use it ('Gdy chcesz przeglądać cały rocznik → użyj browse_acts'), and how to chain it with filter_results afterward. It also provides six concrete examples covering keyword, type, force, publisher, date, and title searches, which leaves little to inference.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/numikel/law-scrapper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server