ee_law_get

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

Fetch one Estonian legal act text version by id from ee_law_search (e.g. “130062026052” for the current Personal Data Protection Act). Returns title, abbreviation, type, issuer, adoption date, State Gazette citation, in-force dates and amendment list, and the text. Pass section (e.g. “6” or “10^1” for § 10 superscript 1) for one § only; without it the text is capped at max_chars with a contents list. Text is the consolidated version as published in Riigi Teataja, in Estonian.

Parameters

NameTypeRequiredDescription
idstringyesText-version id (globaalID) from ee_law_search, e.g. “130062026052”
sectionstringnoSection (paragrahv) number, e.g. “6”, “10^1” for § 10 with superscript 1
max_charsnumbernoCap on returned text when no section is given (default 20000, max 100000)

Example call

Arguments

{
  "id": "130062026052",
  "section": "6"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('ee_law_get', {
  "id": "130062026052",
  "section": "6"
});

Response shape

FieldTypeDescription
foundboolean
idstring
titlestring
abbreviationstring
typestring
text_kindstring
issuerstring
adoptedstring
gazette_citationstring
valid_fromstring
valid_untilnull
status_of_this_versionstring
amendmentsarray
urlstring
sourcestring
data_as_ofstring
sectionstring
section_titlestring
textstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "abbreviation": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "text_kind": {
      "type": "string"
    },
    "issuer": {
      "type": "string"
    },
    "adopted": {
      "type": "string"
    },
    "gazette_citation": {
      "type": "string"
    },
    "valid_from": {
      "type": "string"
    },
    "valid_until": {
      "type": "null"
    },
    "status_of_this_version": {
      "type": "string"
    },
    "amendments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "adopted": {
            "type": "string"
          },
          "published": {
            "type": "string"
          },
          "gazette_article": {
            "type": "string"
          },
          "in_force_from": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "url": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    },
    "section": {
      "type": "string"
    },
    "section_title": {
      "type": "string"
    },
    "text": {
      "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 estonia-law pack
{
  "mcpServers": {
    "estonia-law": {
      "url": "https://gateway.pipeworx.io/estonia-law/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026