Skip to main content
Glama

search_acts

Read-onlyIdempotent

Search Polish laws from Dziennik Ustaw and Monitor Polski by title, year, publisher, act type, in-force status, or date; get ranked results with pagination.

Instructions

Wyszukiwanie aktow prawa polskiego (Dziennik Ustaw + Monitor Polski) przez oficjalne Sejm ELI API. Pokrycie: 96 000+ aktow od 1918. Filtry: fragment tytulu, rok, publisher (DU/MP), typ aktu, status obowiazywania, data ogloszenia. Przy wyszukiwaniu po tytule wyniki sa RANKOWANE: ustawa/akt bazowy na gorze, potem obwieszczenia z tekstem jednolitym, nowelizacje na koncu (albo wcale - exclude_amendments). Paginacja: offset. Bledy: upstream_error, invalid_args.

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

Input Schema

NameRequiredDescriptionDefault
sortNo'relevance' (domyslnie przy podanym title): akty bazowe na gorze, potem obwieszczenia z tekstem jednolitym, potem pozostale, na koncu nowelizacje ('o zmianie...', 'zmieniajace...'); w grupie obowiazujace i najnowsze najpierw. 'newest': kolejnosc Sejm ELI (najnowsze pozycje najpierw), bez przestawiania.
typeNoTyp aktu (po polsku, dokladnie jak w bazie).
yearNoRok publikacji aktu.
limitNoMaks liczba wynikow (1-50). Domyslnie 10.
titleNoFragment tytulu (po polsku, z odmiana - np. 'ochronie' znajdzie 'ustawa o ochronie...').
offsetNoIle wynikow pominac (paginacja, od 0). Nastepna strona: offset + limit. Domyslnie 0.
date_toNoData ogloszenia DO (YYYY-MM-DD, wlacznie).
in_forceNotrue = tylko obowiazujace akty. Pomin zeby objac wszystkie.
date_fromNoData ogloszenia OD (YYYY-MM-DD, wlacznie).
publisherNoDU = Dziennik Ustaw (ustawy, rozporzadzenia), MP = Monitor Polski (uchwaly Sejmu, postanowienia Prezydenta, obwieszczenia).
exclude_amendmentsNotrue = pomin akty nowelizujace ('o zmianie ustawy...', 'zmieniajace rozporzadzenie...'). Przydatne, gdy szukasz samej ustawy bazowej i jej tekstow jednolitych.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the ranking order of results when searching by title, the full publication coverage from 1918, offset-based pagination, and the specific error codes (upstream_error, invalid_args) an agent may encounter.

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?

The text is dense but well organized: coverage first, then filters, then ranking behavior, then pagination, then error codes, with backticked parameter names for scannability. Given 11 parameters and no output schema, the length is justified, though a few filter names are repeated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter search tool with no output schema, the description covers pagination, ranking, and error handling, which are the main operational risks. It stops short of indicating the shape or fields of returned records (e.g., whether IDs are returned for follow-up calls via get_act), which is the remaining gap given the absence of an output 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 each of the 11 parameters already carries a detailed Polish description, so the baseline is 3. The description restates the filter list and elaborates on the ranking implications of the title/sort interaction, but adds little syntax or format detail beyond what the schema already documents.

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 opens with a specific verb and resource: searching Polish legal acts (Dziennik Ustaw + Monitor Polski) via the official Sejm ELI API, and enumerates the available filters and corpus size (96,000+ acts since 1918). It does not, however, distinguish this tool from the sibling tools get_act and get_act_text, so an agent cannot tell from the description alone which one retrieves by identifier versus which one searches.

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?

There is conditional guidance embedded in the description: title searches are ranked with base acts first, and exclude_amendments is recommended when only the base act plus consolidated texts are wanted. However, there is no explicit statement about when to use this tool rather than fetching a known act, and no prerequisites or exclusions are stated.

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

Deploy Server

Other Tools