Skip to main content
Glama

search_legal_acts

Search Polish legal acts from Dziennik Ustaw and Monitor Polski by keywords, title, act type, year, dates, and more. Filter results by publication, entry into force, or current validity.

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
publisherNoKod wydawcy: 'DU' (Dziennik Ustaw) lub 'MP' (Monitor Polski). Domyślnie 'DU'.DU
yearNoRok publikacji (np. 2024).
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.
date_toNoData wejścia w życie DO (YYYY-MM-DD). Filtruje akty które weszły w życie do tej daty.
titleNoSzukaj w tytule aktu (dopasowanie podciągu). Np. 'budżet', 'przeciwpożarow', 'podatek dochodowy'.
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ę.
pub_date_fromNoData publikacji/ogłoszenia OD (YYYY-MM-DD). Filtruje po dacie ogłoszenia w dzienniku.
pub_date_toNoData publikacji/ogłoszenia DO (YYYY-MM-DD). Filtruje po dacie ogłoszenia w dzienniku.
in_forceNoFiltruj po obowiązywaniu: true = tylko akty obecnie obowiązujące, false = tylko akty nieobowiązujące, None = wszystkie.
limitNoMaksymalna liczba wyników do zwrócenia. Domyślnie 20. Przydatne do ograniczenia dużych zbiorów.
offsetNoLiczba wyników do pominięcia (paginacja). Użyj z parametrem limit.
detail_levelNoPoziom szczegółowości wyników: 'minimal' (ELI, tytuł, status), 'standard' (+ typ, daty, obowiązywanie), 'full' (wszystkie pola). Domyślnie 'standard'.standard

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations provided, so description carries full burden. It explains AND logic for keywords, recommends OR logic via separate searches, default publisher and limit, and gives many examples. No contradictions.

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?

Well-structured with sections and bullet-point examples. Some redundancy with schema param descriptions, but examples are concise and helpful. Front-loaded essential info.

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?

Given output schema exists, description doesn't need return values. It covers purpose, usage, parameters, and behavioral details comprehensively. Complete for a search tool with rich schema.

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% with detailed descriptions. Description adds additional value through examples and practical usage patterns for each parameter, but schema already does heavy lifting, so baseline 4 with slight enhancement.

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?

Description clearly states the tool searches Polish legal acts from DU and MP, with explicit verb and resource. Distinguishes from sibling browse_acts via usage guidance.

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?

Explicit 'Kiedy użyć' and 'Kiedy NIE używać' sections, referencing browse_acts for browsing, and filter_results for post-search filtering. Provides clear context for when to use vs. alternatives.

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

Install Server

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