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

NameTypeRequiredDescription
idstringyesSFS number as “year:number”, e.g. “2018:218”
sectionstringnoSection number, e.g. “5” or “3 a”; with chapters use chapter:section, e.g. “2:1”
max_charsnumbernoCap 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

FieldTypeDescription
foundboolean
idstring
citationstring
titlestring
issuedstring | null
ministrystring | null
repealedboolean
repealed_onstring | null
repealed_bystring | null
amended_throughstring | null
source_updatedstring | null
urlstring
notestring
sourcestring
data_as_ofstring
sectionstring
section_countnumber
chaptersarray
versionsnumber
textstring | null
truncatedboolean
total_charsnumber
hintstring
empty_reasonstring
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.

Regenerated from source · build November 15, 2026