Skip to main content
Glama

norway-legislation-mcp-server

Search Norwegian legislation by metadata

norlaw_search_documents
Read-onlyIdempotent

Find Norwegian legislation by title, abbreviation, kind, legal area, ministry, place, commencement or European Union citation. Use norlaw_search_text for words inside provisions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "norlaw_search_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoTitle queries default to relevance: exact aliases first, then laws, then other records, newest promulgation first in each tier. Without a query the default is date. Explicit date, last_change or title orders by newest promulgation, newest change or alphabetical title.
celexNoCELEX number of a cited European Union act.
kindsNoDocument kinds to include. Use norlaw_list_reference with topic kinds to check edition compatibility.
limitNoDocument records per page, capped at 500. Defaults to 25.
queryNoMatch every word against the title, short title or abbreviation. Append * to a word to match its prefix.
offsetNoResults to skip in this ordering.
statusNoCommencement status. Defaults to current (in_force, partly_pending, or unknown) for consolidations and any for announcements.
editionNoConsolidated text by default. A search restricted to local_regulation defaults to promulgated announcements.
inForceNoRange containing a recorded commencement date.
ministryNoExact ministry name, case-insensitive.
appliesToNoPlace tokens from the published applicability field.
legalAreaNoLegal area code or full label, chiefly available for laws.
amendingActsNoExclude amending acts by default, include them along with other acts, or return only amending acts.exclude
promulgationNoPromulgation date range.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
itemsNoMatching legislation records.
limitNoApplied page size.
totalNoTotal matches before paging.
noticeNoGuidance for an empty search or a count of title matches excluded by current status.
offsetNoNumber of skipped matches.
filtersNoEffective search filters and ordering.
coverageNoPackage coverage of this response.
nextOffsetNoOffset of the next page when more matches exist.
attributionNoSource, licence, and conversion notice.
requestedLimitNoPage size requested.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, and idempotentHint=true, so safety and idempotency are covered. The description adds the metadata-vs-text distinction but does not discuss pagination, default status/edition behavior, or result ordering; those details live in the schema.

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

Conciseness5/5

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

Two sentences, front-loaded with the searchable facets and followed by the key alternative. No redundant or filler wording.

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?

The tool is complex with 14 parameters and nested objects, but the schema is fully documented and an output schema exists. The description gives enough purpose and routing context to select the tool, though it omits a high-level note about pagination or defaults that the schema already covers.

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 explains all 14 parameters, including enums, defaults, and nested date ranges. The description only groups the metadata facets and does not add syntax or default details beyond the schema, making the baseline 3 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?

States a specific verb ('Find') and resource ('Norwegian legislation'), then enumerates the metadata facets: title, abbreviation, kind, legal area, ministry, place, commencement, and EU citation. This clearly distinguishes it from norlaw_search_text, which handles words inside provisions.

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

Usage Guidelines5/5

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

Explicitly directs full-text and provision searches to norlaw_search_text, giving the agent a clear routing rule. The metadata facets in the first sentence imply the appropriate use case for this tool.

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.