pl_law_search

Pack: poland-law · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/pl_law_search for the schema, then POST the same URL with its arguments for the data.

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.

Parameters

NameTypeRequiredDescription
querystringnoPolish title words, e.g. “Kodeks pracy”
keywordstringnoSubject keyword assigned by the Sejm, e.g. “urlopy”
yearnumbernoYear of publication, e.g. 1974
typestringnoAct type, e.g. “Ustawa”, “Rozporzadzenie”, “Obwieszczenie”
publisherstringno”DU” (Dziennik Ustaw) or “MP” (Monitor Polski); default both
in_force_onlybooleannoOnly acts marked in force (default false)
offsetnumbernonext_offset from a previous page

Example call

Arguments

{
  "query": "Kodeks pracy",
  "type": "Obwieszczenie",
  "in_force_only": true
}

curl

curl -X POST https://gateway.pipeworx.io/poland-law/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pl_law_search","arguments":{"query":"Kodeks pracy","type":"Obwieszczenie","in_force_only":true}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('pl_law_search', {
  "query": "Kodeks pracy",
  "type": "Obwieszczenie",
  "in_force_only": true
});

Response shape

FieldTypeDescription
querystring
total_matchesnumber
countnumber
resultsarray
next_offsetnumber
sourcestring
data_as_ofstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "total_matches": {
      "type": "number"
    },
    "count": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "in_force": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "citation": {
            "type": "string"
          },
          "announced": {
            "type": "string"
          },
          "promulgated": {
            "type": "string"
          },
          "entry_into_force": {
            "type": "null"
          },
          "html_text": {
            "type": "boolean"
          },
          "pdf_text": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      }
    },
    "next_offset": {
      "type": "number"
    },
    "source": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the poland-law pack
{
  "mcpServers": {
    "poland-law": {
      "url": "https://gateway.pipeworx.io/poland-law/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026