se_law_get
Pack: sweden-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/se_law_get for the schema, then POST the same URL with its arguments for the data.
Fetch one Swedish statute by its SFS number “year:number”, e.g. “2018:218” (the Act with supplementary provisions to the EU Data Protection Regulation); “SFS 2018:218” is accepted too. Returns title, SFS citation, issue date, ministry, whether the Riksdag marks it repealed (with repeal date and the repealing act) and how far it is amended, then the text in Swedish. Pass section (e.g. “5”, “3 a”, or “2:1” for chapter 2 section 1, since chapters restart section numbers) for one section only; without it the text is capped at max_chars with a chapter list. A section with scheduled changes returns each version with the Riksdag’s own marker line.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | SFS number as “year:number”, e.g. “2018:218” |
section | string | no | Section number, e.g. “5” or “3 a”; with chapters use chapter:section, e.g. “2:1” |
max_chars | number | no | Cap on returned text when no section is given (default 20000, max 100000) |
Example call
Arguments
{
"id": "2018:218",
"section": "2:1"
}
curl
curl -X POST https://gateway.pipeworx.io/sweden-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"se_law_get","arguments":{"id":"2018:218","section":"2:1"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('se_law_get', {
"id": "2018:218",
"section": "2:1"
});
Response shape
Always returns: found
| Field | Type | Description |
|---|---|---|
found | boolean | |
id | string | |
citation | string | |
title | string | |
issued | string | null | |
ministry | string | null | |
repealed | boolean | |
repealed_on | string | null | |
repealed_by | string | null | |
amended_through | string | null | |
source_updated | string | null | |
url | string | |
note | string | |
source | string | |
data_as_of | string | |
section | string | |
section_count | number | |
chapters | array | |
versions | number | |
text | string | null | |
truncated | boolean | |
total_chars | number | |
hint | string | |
empty_reason | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"id": {
"type": "string"
},
"citation": {
"type": "string"
},
"title": {
"type": "string"
},
"issued": {
"type": [
"string",
"null"
]
},
"ministry": {
"type": [
"string",
"null"
]
},
"repealed": {
"type": "boolean"
},
"repealed_on": {
"type": [
"string",
"null"
]
},
"repealed_by": {
"type": [
"string",
"null"
]
},
"amended_through": {
"type": [
"string",
"null"
]
},
"source_updated": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
},
"note": {
"type": "string"
},
"source": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"section": {
"type": "string"
},
"section_count": {
"type": "number"
},
"chapters": {
"type": "array",
"items": {
"type": "string"
}
},
"versions": {
"type": "number"
},
"text": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"total_chars": {
"type": "number"
},
"hint": {
"type": "string"
},
"empty_reason": {
"type": "string"
}
},
"required": [
"found"
],
"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 sweden-law pack
{
"mcpServers": {
"sweden-law": {
"url": "https://gateway.pipeworx.io/sweden-law/mcp"
}
}
}
See Getting Started for client-specific install steps.