Skip to main content
Glama

Pl Law Search

pl_law_search
Read-onlyIdempotent

Search Polish national legislation (Dziennik Ustaw and Monitor Polski: ustawy, rozporzadzenia, obwieszczenia) by title words, e.g. "Kodeks pracy" or "ochronie danych osobowych" (Polish, all words must appear). Optional filters: keyword (subject term), year, type ("Ustawa", "Rozporzadzenie", "Obwieszczenie"), publisher ("DU" or "MP"), in_force_only. Newest first. Returns id (e.g. DU/1974/141), title, type, in-force status, citation, dates and which texts exist; 10 per page, pass next_offset to continue. A statute and the notices that republish its consolidated text are separate records: to find the notice for the latest consolidated text use type="Obwieszczenie". Pair with pl_law_get for the text.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "Obwieszczenie",
      "query": "Kodeks pracy",
      "in_force_only": true
    },
    "name": "pl_law_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoAct type, e.g. "Ustawa", "Rozporzadzenie", "Obwieszczenie"
yearNoYear of publication, e.g. 1974
queryNoPolish title words, e.g. "Kodeks pracy"
offsetNonext_offset from a previous page
keywordNoSubject keyword assigned by the Sejm, e.g. "urlopy"
publisherNo"DU" (Dziennik Ustaw) or "MP" (Monitor Polski); default both
in_force_onlyNoOnly acts marked in force (default false)

Output Schema

NameRequiredDescriptionDefault
countNo
queryNo
sourceNo
resultsNo
data_as_ofNo
next_offsetNo
total_matchesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare a safe, read-only, idempotent, open-world search, and the description adds meaningful operational behavior: result ordering, page size, return fields, and the difference between a statute record and republished consolidated-text notices. There is no contradiction with 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.

Conciseness5/5

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

The description is dense but well ordered: purpose first, then filters, ordering, return shape, pagination, an important edge case, and the companion tool. Every sentence carries useful information for selecting or invoking the tool.

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 seven optional parameters, full schema coverage, annotations, and an output schema, the description supplies everything needed to choose and invoke the tool correctly. It covers scope, filtering, pagination, return fields, and the key ambiguity around consolidated-text notices.

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 already complete, but the description adds useful meaning beyond it, especially that query words are Polish and all must appear. It also clarifies filters, publisher values, in-force filtering, and pagination behavior, though it slightly uses 'next_offset' while the parameter itself is named 'offset'.

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 states a specific verb and resource: searching Polish national legislation from Dziennik Ustaw and Monitor Polski by title words. It names act types and sources, and explicitly distinguishes lookup/search from retrieval by saying to pair with pl_law_get for the text.

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?

It gives clear usage guidance: query by Polish title words where all words must appear, optional filters, newest-first ordering, pagination via offset, and the important statute-versus-consolidated-notice distinction. It also names the sibling tool for retrieving the full text.

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.