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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Act id such as “DU/1974/141”, “DU/2024/1”, “MP/2023/10”, or a citation “Dz.U. 1974 poz. 141” |
article | string | no | Article number, e.g. “10” or “10a” (returns that article only) |
text_kind | string | no | ”consolidated” (up-to-date unofficial text, default when it exists) or “published” (text as promulgated) |
max_chars | number | no | Cap on returned text when no article is given (default 20000, max 100000) |
offset | number | no | Character 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
| Field | Type | Description |
|---|---|---|
found | boolean | |
id | string | |
title | string | |
type | string | |
in_force | boolean | |
status | string | |
citation | string | |
announced | string | |
promulgated | string | |
entry_into_force | string | |
html_text | boolean | |
pdf_text | boolean | |
issued_by | array | |
authorised_by | array | |
keywords | array | |
consolidated_text_notices | array | |
amended_by | array | |
legal_basis | array | |
repealed_acts | array | |
url | string | |
source | string | |
data_as_of | string | |
text_kind | string | |
text_kind_note | string | |
article | string | |
text | null | string | |
empty_reason | string |
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.