Skip to main content
Glama

Kildeverk

Search Norwegian laws and regulations

laws_search
Read-onlyIdempotent

Find Norwegian laws and central regulations in force (Lovdata), by words in their titles or in the text of their sections. Returns ids, short titles, the ministry and when the latest change took effect, or the sections that hold the words. Use it for questions about what the law says, which act governs something, or a paragraph (§). Read a section with laws_get_section.

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": {
      "query": "<query>"
    },
    "name": "laws_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoLaws, central regulations, or both.both
limitNo
matchNo'titles' finds documents by title, short title or legal area; 'text' finds the sections whose heading or text holds the words.titles
queryYesWords that must all appear, e.g. 'arbeidsmiljø' or 'husdyr velferd'. Words of five letters or more also match longer forms ('forurens' finds 'forurensning').
documentNoOnly search the text of this document: an id (LOV-2005-06-17-62), a short title (arbeidsmiljøloven) or its abbreviation (aml). Implies match='text'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so safety is covered. The description adds real context the annotations lack: results are limited to legislation currently in force, and the returned fields (id, short title, ministry, latest-change date, or matching sections) are spelled out despite there being no output 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?

Four short sentences: capability, return shape, use cases, next step. The most decision-relevant information (scope and search mode) comes first and no sentence is redundant.

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 read-only search with no output schema, this covers what matters: the corpus (Norwegian law in force), the match modes, the result fields, and the hand-off to laws_get_section. Minor gaps remain around result ordering and pagination beyond 'limit', but nothing an agent needs to call it correctly is absent.

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 coverage is 80%, so the schema, not the description, carries parameter meaning (match modes, prefix matching, document scoping). The description only restates the title-vs-text distinction already captured by the 'match' enum and adds nothing about limit, document, or kind.

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 and resource ('Find Norwegian laws and central regulations in force (Lovdata)') plus the two search modes (title words vs. section text). It also separates itself from the sibling: search returns ids/sections, while 'Read a section with laws_get_section' belongs to the other tool.

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?

Gives concrete use cases ('what the law says, which act governs something, or a paragraph (§)') and names the follow-up tool for reading a full section. There is no explicit when-not (e.g. non-Norwegian or EU legislation), so the guidance 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.