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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Act id as “number/year”, e.g. “1050/2018” |
lang | string | no | fin (default) or swe |
section | string | no | Section number, e.g. “6” or “36 a”; in acts that restart numbering per chapter use chapter:section, e.g. “6:1” |
max_chars | number | no | Cap 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
| Field | Type | Description |
|---|---|---|
found | boolean | |
id | string | |
title | string | null | |
type | string | null | |
lang | string | |
status | string | |
valid_from | string | null | |
valid_until | string | null | |
version | string | null | |
text_produced | string | null | |
amendments | array | |
repeals | array | |
url | string | |
note | string | |
section | string | |
section_title | string | null | |
section_count | number | |
contents | array | |
text | string | null | |
truncated | boolean | |
total_chars | number | |
hint | string | |
empty_reason | string | |
source | string | |
data_as_of | string |
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.