Skip to main content
Glama

norway-legislation-mcp-server

Get Norwegian legislation document

norlaw_get_document
Read-onlyIdempotent

Resolve one Norwegian instrument and navigate its groups and provisions. Set outline to groups for group rows only, or full for every source node with portable locators. Combine part with outline to scope the outline. Without an explicit outline, a part or sibling range returns complete Markdown up to 64 KiB, or an exhaustive outline for a larger selection. Read compact or group rows with norlaw_get_provision using document.recordId and a locator containing the row’s sourcePath and document.build.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document": "<document>"
    },
    "name": "norlaw_get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoA section, group, build-bound locator (sourcePath and build), or inclusive sibling section range. Omit for the whole document outline.
editionNoSelect consolidated text or a promulgated gazette record. Omit to infer the edition from the citation.
outlineNoUse compact navigation, groups only, or the full source tree. Applies to the whole document or an explicit part. Omit for compact document navigation or selected text.
documentYesReturned recordId, Lovdata URL, dokID, refID, date code, journal number, or exact title or alias.
languageNoSelect the explicitly published language. Grunnloven defaults to Bokmål when unpinned.

Output Schema

NameRequiredDescriptionDefault
partNoSelection supplied by the caller or embedded in the citation.
viewNoSource outline or complete text selected for this call.
celexNoCELEX identifiers linked by the source.
errorNoPresent when the call failed. Absent on success.
foundNoWhether the document was resolved.
noticeNoGuidance for unresolved or oversized selections.
reasonNoReason a document could not be selected.
outlineNoSource-ordered nodes. Compact and groups rows use document.build with sourcePath. Full and automatic overflow rows include the whole locator.
subunitNoPublished ministry subunit.
coverageNoPackage coverage of this response.
documentNoExact document and source build selected.
markdownNoComplete Markdown for the selected subtree or sibling range.
ministryNoPublished ministry responsible for the instrument.
appliesToNoArea of application supplied by the source.
selectionNoOrdered exact selectors for the selection.
sizeBytesNoSelected Markdown size in UTF-8 bytes.
withdrawnNoExplicit withdrawal evidence is present.
candidatesNoMatching records when disambiguation is required.
legalAreasNoLegal areas assigned in the source.
legalBasisNoInstruments cited as legal basis.
ministriesNoIndividual issuing ministries as published. Omitted until an older build is refreshed.
partReasonNoWhy the part could not be resolved.
attributionNoSource, licence, and conversion notice.
statusBasisNoPublication context of the commencement evidence.
alternativesNoOther exact matches and published counterparts.
commencementNoParsed commencement evidence.
gazetteNotesNoPublished gazette notes annotating the record.
journalNumberNoPublished gazette journal number with source padding.
partCandidatesNoExact candidates or enclosing address for an unresolved part.
amendedDocumentsNoNormalized affected instrument references in published amendment evidence.
promulgationDateNoObserved gazette promulgation date.
legislativeHistoryNoPublished Norwegian legislative history references.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish read-only, idempotent, non-open-world behavior, but the description adds important operational traits: outline modes, part scoping, and the fallback that returns Markdown up to 64 KiB or an exhaustive outline for larger selections. This gives useful context about output shape and size limits beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core resolve/navigate purpose, then proceeds through outline modes, part scoping, fallback behavior, and sibling handoff. It is dense but every sentence contributes specific operational guidance; minor jargon keeps it from being maximally crisp.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with an output schema and strong annotations, the description covers the essential behavioral contract: resolution, navigation modes, fallback size logic, and when to continue with norlaw_get_provision. Edition and language are left to the rich schema, which is reasonable, though acknowledging them briefly would make it fully self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all five parameters in detail. The description adds relationship guidance for outline and part, plus how to reuse document.recordId and locator fields with norlaw_get_provision, but it does not add meaning for edition or language beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states a specific verb and resource: 'Resolve one Norwegian instrument and navigate its groups and provisions.' It distinguishes this navigation/resolution role from norlaw_get_provision by directing row reads to that sibling, so an agent can identify the tool's core purpose without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear contextual guidance for key modes: outline=groups vs. full, combining part with outline, and the fallback behavior when outline is omitted. It also explicitly routes compact or group row reading to norlaw_get_provision. It stops short of naming search/find alternatives, so it is strong but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.