pl_law_get

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_get for the schema, then POST the same URL with its arguments for the data.

Fetch one Polish act by id from pl_law_search (e.g. “DU/1974/141” for the Labour Code, or “Dz.U. 1974 poz. 141”). Returns title, type, in-force status (inForce and the Sejm status), citation, announcement/promulgation/entry-into-force dates, issuing bodies, related acts (amending acts, consolidated-text notices, legal basis) and the text. Default text is the Sejm’s up-to-date consolidated text when one exists (informational, not authentic), else the text as published; text_kind says which. Pass article (e.g. “22” or “10a”; ”§ 2” for a regulation) for one article or paragraph only. Without article the text is capped at max_chars; use offset to read on.

Parameters

NameTypeRequiredDescription
idstringyesAct id such as “DU/1974/141”, “DU/2024/1”, “MP/2023/10”, or a citation “Dz.U. 1974 poz. 141”
articlestringnoArticle number, e.g. “10” or “10a” (returns that article only)
text_kindstringno”consolidated” (up-to-date unofficial text, default when it exists) or “published” (text as promulgated)
max_charsnumbernoCap on returned text when no article is given (default 20000, max 100000)
offsetnumbernoCharacter offset into the text to continue a capped read (default 0)

Example call

Arguments

{
  "id": "DU/1974/141",
  "article": "22"
}

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_get","arguments":{"id":"DU/1974/141","article":"22"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('pl_law_get', {
  "id": "DU/1974/141",
  "article": "22"
});

Response shape

FieldTypeDescription
foundboolean
idstring
titlestring
typestring
in_forceboolean
statusstring
citationstring
announcedstring
promulgatedstring
entry_into_forcestring
html_textboolean
pdf_textboolean
issued_byarray
authorised_byarray
keywordsarray
consolidated_text_noticesarray
amended_byarray
legal_basisarray
repealed_actsarray
urlstring
sourcestring
data_as_ofstring
text_kindstring
text_kind_notestring
articlestring
textnull | string
empty_reasonstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "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": "string"
    },
    "html_text": {
      "type": "boolean"
    },
    "pdf_text": {
      "type": "boolean"
    },
    "issued_by": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "authorised_by": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "consolidated_text_notices": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "amended_by": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "legal_basis": {
      "type": "array",
      "items": {}
    },
    "repealed_acts": {
      "type": "array",
      "items": {}
    },
    "url": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    },
    "text_kind": {
      "type": "string"
    },
    "text_kind_note": {
      "type": "string"
    },
    "article": {
      "type": "string"
    },
    "text": {
      "type": [
        "null",
        "string"
      ]
    },
    "empty_reason": {
      "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