Skip to main content
Glama

Search Legislation

search_legislation

Find Norwegian statutes, acts, codes, regulations, and official gazette notices by keyword, title, number, or enactment year via Lovdata.

Instructions

Search Norway (NO) national legislation (statutes, acts, codes, regulations, official gazette) via Lovdata API (api.lovdata.no) & Lovdata Open Legal Data (lovdata.no) and live national legal archives.

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": "search_legislation"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoOptional enactment year filter.
limitNoMaximum number of results to return.
queryYesKeywords or statute title/number to search in Norway legislation.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the upstream sources (api.lovdata.no and lovdata.no open legal data), which is modestly useful, but says nothing about authentication, rate limits, result ordering, or coverage gaps between the two sources.

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?

A single front-loaded sentence that puts the verb and jurisdiction first. The source list is somewhat redundant, repeating 'Lovdata' twice with parenthetical domains and adding 'live national legal archives', which could be trimmed without loss.

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

Completeness3/5

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

The tool is a simple three-parameter search and an output schema exists, so return values need not be described. However, with no annotations, the definition leaves the mutation/safety profile, source-selection behavior, and sibling routing unexplained, which is a meaningful gap for an unannotated tool.

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 query, year, and limit are already documented in the schema. The description adds no syntax hints (e.g., how to phrase a statute number for the 'statute title/number' query) or guidance on combining year with keywords, so it sits at the baseline.

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

Purpose4/5

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

States a specific verb and resource ('Search Norway (NO) national legislation') and enumerates the covered document types (statutes, acts, codes, regulations, official gazette), which distinguishes it from case-law siblings. It does not explicitly name search_case_law as the non-overlapping alternative, so differentiation is implied by the word 'legislation' rather than stated.

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

Usage Guidelines3/5

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

Usage is only implied through the jurisdiction and content-type scoping; there is no explicit when-to-use, when-not-to-use, or named alternative (e.g., search_case_law for judgments). An agent can infer this is the statute-lookup tool, but must make that inference itself.

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