no_law_search

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

Find Norwegian acts (lover) by title, short title, abbreviation or law number. Give a subject word (“arbeidsmiljø”), a short title or abbreviation (“straffeloven”, “mrl”), or the act’s number as Norwegians cite it (“lov 21 mai 1999 nr 30”, or “1999-05-21-30”). Returns the act id, full title, short title, entry-into-force date and the date of the last change in force, for the consolidated current acts published by Lovdata (about 750 acts, in Norwegian). Searches titles only, not the text of the acts; use no_law_get to read one. Every answer carries data_as_of, answered_from and the NLOD licence attribution. Keyless.

Parameters

NameTypeRequiredDescription
querystringyesTitle words, short title, abbreviation or law number, e.g. “arbeidsmiljøloven”, “personopplysningsloven”, “mrl”, “lov 21 mai 1999 nr 30”.
limitnumbernoMaximum acts to return, default 10, max 50.

Example call

Arguments

{
  "query": "straffeloven",
  "limit": 5
}

curl

curl -X POST https://gateway.pipeworx.io/norway-law/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"no_law_search","arguments":{"query":"straffeloven","limit":5}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('no_law_search', {
  "query": "straffeloven",
  "limit": 5
});

More examples

{
  "query": "lov 20 mai 2005 nr 28"
}

Response shape

FieldTypeDescription
foundboolean
answered_fromstring
data_as_ofstring
sourcestring
licencestring
attributionstring
querystring
total_matchesnumber
returnednumber
notestring
lawsarray
reasonstring
messagestring
hintstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "answered_from": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "licence": {
      "type": "string"
    },
    "attribution": {
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "total_matches": {
      "type": "number"
    },
    "returned": {
      "type": "number"
    },
    "note": {
      "type": "string"
    },
    "laws": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "short_title": {
            "type": "string"
          },
          "abbreviation": {
            "type": [
              "string",
              "null"
            ]
          },
          "citation": {
            "type": "string"
          },
          "in_force_from": {
            "type": "string"
          },
          "last_change_in_force": {
            "type": [
              "string",
              "null"
            ]
          },
          "sections": {
            "type": "number"
          }
        },
        "additionalProperties": true
      }
    },
    "reason": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "hint": {
      "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 norway-law pack
{
  "mcpServers": {
    "norway-law": {
      "url": "https://gateway.pipeworx.io/norway-law/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026