lv_law_search
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_search for the schema, then POST the same URL with its arguments for the data.
Search Latvian national legislation (laws, Cabinet regulations, orders and other acts on Likumi.lv) by title words in Latvian, e.g. “Fizisko personu datu apstrādes likums” or “darba likums”. By default only acts in force or not yet in force are returned (set include_repealed=true to add acts that lost force). Returns id, title, status, issuer, type, adoption and in-force dates, Latvijas Vēstnesis publication, and a link; 20 per page, use page to continue. Pair with lv_law_get for the text.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Latvian title words, e.g. “darba likums” or “datu apstrādes” |
include_repealed | boolean | no | Also return acts that have lost force (default false) |
page | number | no | Page number, 1-based (default 1; 20 per page) |
Example call
Arguments
{
"query": "Fizisko personu datu apstrādes likums"
}
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_search","arguments":{"query":"Fizisko personu datu apstrādes likums"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('lv_law_search', {
"query": "Fizisko personu datu apstrādes likums"
});
Response shape
| Field | Type | Description |
|---|---|---|
query | string | |
include_repealed | boolean | |
total_matches | number | |
page | number | |
count | number | |
results | array | |
next_page | null | |
source | string | |
data_as_of | string |
Full JSON Schema
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"include_repealed": {
"type": "boolean"
},
"total_matches": {
"type": "number"
},
"page": {
"type": "number"
},
"count": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"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"
},
"url": {
"type": "string"
}
},
"additionalProperties": true
}
},
"next_page": {
"type": "null"
},
"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 latvia-law pack
{
"mcpServers": {
"latvia-law": {
"url": "https://gateway.pipeworx.io/latvia-law/mcp"
}
}
}
See Getting Started for client-specific install steps.