fi_law_get

Pack: finland-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/fi_law_get for the schema, then POST the same URL with its arguments for the data.

Fetch one Finnish act or decree (consolidated text) by id from fi_law_search, in the Finnish citation form “number/year” such as “1050/2018” (Data Protection Act); “2018/1050” is accepted too. Returns title, type, in-force status and entry-into-force date, the amending acts, citation and the text. Pass section (e.g. “6”, “36 a” for 36 a §, or “6:1” for chapter 6 section 1 in acts that number sections per chapter) for one section only; without it the text is capped at max_chars with a contents list. Text is in Finnish (or Swedish with lang=“swe”) exactly as Finlex publishes it.

Parameters

NameTypeRequiredDescription
idstringyesAct id as “number/year”, e.g. “1050/2018”
langstringnofin (default) or swe
sectionstringnoSection number, e.g. “6” or “36 a”; in acts that restart numbering per chapter use chapter:section, e.g. “6:1”
max_charsnumbernoCap on returned text when no section is given (default 20000, max 100000)

Example call

Arguments

{
  "id": "1050/2018",
  "section": "6"
}

curl

curl -X POST https://gateway.pipeworx.io/finland-law/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fi_law_get","arguments":{"id":"1050/2018","section":"6"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('fi_law_get', {
  "id": "1050/2018",
  "section": "6"
});

Response shape

FieldTypeDescription
foundboolean
idstring
titlestring | null
typestring | null
langstring
statusstring
valid_fromstring | null
valid_untilstring | null
versionstring | null
text_producedstring | null
amendmentsarray
repealsarray
urlstring
notestring
sectionstring
section_titlestring | null
section_countnumber
contentsarray
textstring | null
truncatedboolean
total_charsnumber
hintstring
empty_reasonstring
sourcestring
data_as_ofstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "lang": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "valid_from": {
      "type": [
        "string",
        "null"
      ]
    },
    "valid_until": {
      "type": [
        "string",
        "null"
      ]
    },
    "version": {
      "type": [
        "string",
        "null"
      ]
    },
    "text_produced": {
      "type": [
        "string",
        "null"
      ]
    },
    "amendments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "act": {
            "type": [
              "string",
              "null"
            ]
          },
          "in_force_from": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true
      }
    },
    "repeals": {
      "type": "array",
      "items": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "url": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "section": {
      "type": "string"
    },
    "section_title": {
      "type": [
        "string",
        "null"
      ]
    },
    "section_count": {
      "type": "number"
    },
    "contents": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "text": {
      "type": [
        "string",
        "null"
      ]
    },
    "truncated": {
      "type": "boolean"
    },
    "total_chars": {
      "type": "number"
    },
    "hint": {
      "type": "string"
    },
    "empty_reason": {
      "type": "string"
    },
    "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 finland-law pack
{
  "mcpServers": {
    "finland-law": {
      "url": "https://gateway.pipeworx.io/finland-law/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026