lv_law_get

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

Fetch one Latvian legal act by id from lv_law_search (e.g. “300099” for the Personal Data Processing Law). Returns title, status, issuer, type, adoption and in-force dates, Latvijas Vēstnesis publication reference, and the current consolidated text in Latvian. Pass article (e.g. “3” or “16_1” for article 16 superscript 1) for one article only; without it the text is capped at max_chars with a contents list. The consolidated text is informative: the official publication prevails.

Parameters

NameTypeRequiredDescription
idstringyesNumeric act id from lv_law_search, e.g. “300099”
articlestringnoArticle (pants) number, e.g. “3”, “16_1” or “16.1” for article 16 superscript 1
max_charsnumbernoCap on returned text when no article is given (default 20000, max 100000)

Example call

Arguments

{
  "id": "300099",
  "article": "3"
}

curl

curl -X POST https://gateway.pipeworx.io/latvia-law/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"lv_law_get","arguments":{"id":"300099","article":"3"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('lv_law_get', {
  "id": "300099",
  "article": "3"
});

Response shape

FieldTypeDescription
foundboolean
idstring
titlestring
statusstring
issuerstring
typestring
adoptedstring
in_force_fromstring
publishedstring
publication_refstring
urlstring
text_notestring
sourcestring
data_as_ofstring
articlestring
textstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "issuer": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "adopted": {
      "type": "string"
    },
    "in_force_from": {
      "type": "string"
    },
    "published": {
      "type": "string"
    },
    "publication_ref": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "text_note": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    },
    "article": {
      "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 latvia-law pack
{
  "mcpServers": {
    "latvia-law": {
      "url": "https://gateway.pipeworx.io/latvia-law/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026