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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Text-version id (globaalID) from ee_law_search, e.g. “130062026052” |
section | string | no | Section (paragrahv) number, e.g. “6”, “10^1” for § 10 with superscript 1 |
max_chars | number | no | Cap 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
| Field | Type | Description |
|---|---|---|
found | boolean | |
id | string | |
title | string | |
abbreviation | string | |
type | string | |
text_kind | string | |
issuer | string | |
adopted | string | |
gazette_citation | string | |
valid_from | string | |
valid_until | null | |
status_of_this_version | string | |
amendments | array | |
url | string | |
source | string | |
data_as_of | string | |
section | string | |
section_title | string | |
text | string |
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.