no_law_get

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_get for the schema, then POST the same URL with its arguments for the data.

Read a Norwegian act, or one section of it, in the consolidated current text published by Lovdata. Give the act id from no_law_search (e.g. “1999-05-21-30” for the Human Rights Act, “2005-05-20-28” for the Penal Code) and optionally a section (”§ 275”, “5-3”, or “110” for a constitutional article). Returns the text in Norwegian, where the section sits in the act, its amendment history (with entry-into-force dates), the act’s entry-into-force date and last change in force, a proper citation, the data date and the NLOD licence attribution. Without a section it returns the act’s contents list and the opening text, up to max_chars. Keyless.

Parameters

NameTypeRequiredDescription
idstringyesAct id as returned by no_law_search, e.g. “2005-05-20-28”. The forms “LOV-2005-05-20-28” and “lov 20 mai 2005 nr 28” are accepted.
sectionstringnoOptional section as cited, e.g. ”§ 275”, “5-3”, ”§ 14-9a”; for the Constitution an article number such as “110”. A subdivision (”§ 5-3 første ledd”) returns the whole section.
max_charsnumbernoCap on returned text, default 20000, max 100000. The response says when text was cut and how long it was.

Example call

Arguments

{
  "id": "2005-05-20-28",
  "section": "§ 275"
}

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_get","arguments":{"id":"2005-05-20-28","section":"§ 275"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('no_law_get', {
  "id": "2005-05-20-28",
  "section": "§ 275"
});

More examples

{
  "id": "1999-05-21-30",
  "section": "§ 3"
}

Response shape

FieldTypeDescription
foundboolean
answered_fromstring
data_as_ofstring
sourcestring
licencestring
attributionstring
idstring
titlestring
short_titlestring
abbreviationstring | null
citationstring
languagestring
ministryarray
legal_areasarray
applies_tonull
elistring
in_forceobject
sectionobject | null
disclaimerstring
sections_countnumber
contentsarray
textstring
text_charsnumber
truncatedboolean
notestring
empty_reasonstring
messagestring
available_sectionsarray
hintstring
reasonstring
other_matchesarray
note_matchesstring
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"
    },
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "short_title": {
      "type": "string"
    },
    "abbreviation": {
      "type": [
        "string",
        "null"
      ]
    },
    "citation": {
      "type": "string"
    },
    "language": {
      "type": "string"
    },
    "ministry": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "legal_areas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "applies_to": {
      "type": "null"
    },
    "eli": {
      "type": "string"
    },
    "in_force": {
      "type": "object",
      "properties": {
        "in_force_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_change_in_force": {
          "type": "string"
        },
        "last_changed_by": {
          "type": "string"
        },
        "date_of_publication": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_correction": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "section": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "heading": {
          "type": "string"
        },
        "located_in": {
          "type": "array",
          "items": {
            "type": [
              "string",
              null
            ]
          }
        },
        "text": {
          "type": "string"
        },
        "text_chars": {
          "type": "number"
        },
        "amendments": {
          "type": [
            "string",
            "null"
          ]
        },
        "repealed_date": {
          "type": [
            "null",
            "string"
          ]
        },
        "truncated": {
          "type": "boolean"
        },
        "note": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "disclaimer": {
      "type": "string"
    },
    "sections_count": {
      "type": "number"
    },
    "contents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "heading": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "text": {
      "type": "string"
    },
    "text_chars": {
      "type": "number"
    },
    "truncated": {
      "type": "boolean"
    },
    "note": {
      "type": "string"
    },
    "empty_reason": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "available_sections": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "hint": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "other_matches": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "heading": {
            "type": "string"
          },
          "located_in": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true
      }
    },
    "note_matches": {
      "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