fi_law_search

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_search for the schema, then POST the same URL with its arguments for the data.

Search Finnish national legislation (Finlex: acts and decrees, consolidated text) by a word from the title, e.g. “tietosuoja” or “tyosopimuslaki” (Finnish) or “dataskydd” with lang=“swe” (Swedish). By default only acts in force today; set in_force_only=false to include repealed ones. Optional year_from / year_to narrow by year of enactment. Returns up to 10 matches with id (“1050/2018” = number/year), title, in-force status, entry-into-force date and link. If there are more than 10, narrow with year_from / year_to or a longer title word. Pair with fi_law_get for the text.

Parameters

NameTypeRequiredDescription
querystringyesWord(s) from the title, e.g. “tietosuoja” (case-insensitive, matched inside the title)
langstringnoLanguage of the text: fin (Finnish, default) or swe (Swedish)
in_force_onlybooleannoOnly acts in force today (default true)
year_fromnumbernoEarliest year of enactment, e.g. 2000
year_tonumbernoLatest year of enactment, e.g. 2020

Example call

Arguments

{
  "query": "tietosuoja"
}

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_search","arguments":{"query":"tietosuoja"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('fi_law_search', {
  "query": "tietosuoja"
});

Response shape

FieldTypeDescription
querystring
langstring
in_force_onlyboolean
countnumber
resultsarray
more_possibleboolean
hintstring
empty_reasonstring
sourcestring
data_as_ofstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "lang": {
      "type": "string"
    },
    "in_force_only": {
      "type": "boolean"
    },
    "count": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "year": {
            "type": "number"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "valid_from": {
            "type": [
              "string",
              "null"
            ]
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true
      }
    },
    "more_possible": {
      "type": "boolean"
    },
    "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