Skip to main content
Glama

norway-legislation-mcp-server

Search Norwegian legislation text

norlaw_search_text
Read-onlyIdempotent

Search titles, headings and provision text, or find passages with authored links to a cited instrument or section. Combine query and cites to apply both filters. Read the source passage with norlaw_get_provision using the returned recordId and locator.

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_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
citesNoRequire an authored source link to this instrument or a whole section. Supply only an instrument name or ID to match any link to it.
kindsNoDocument kinds to include. Use norlaw_list_reference with topic kinds to check edition compatibility.
limitNoRanked passage hits per page, capped at 200. Defaults to 25.
queryNoSearch words, phrases in double quotes or «guillemets», prefixes with *, and groups using uppercase AND, OR and binary NOT. Outside phrases, §, periods, commas, slashes, question marks and colons followed by whitespace separate terms. Required if cites is absent.
offsetNoRanked passage hits to skip before grouping by document.
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.
documentsNoRestrict to these document citations or record IDs.
legalAreaNoLegal area code or full label, chiefly available for laws.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
limitNoApplied page size.
totalNoTotal matches before paging.
groupsNoHits grouped after ranking and pagination.
noticeNoGuidance when there are no hits.
offsetNoNumber of skipped matches.
statusNoStatus filter applied.
editionNoEdition searched.
rankingNoRanking and snippet conventions.
coverageNoPackage coverage of this response.
nextOffsetNoOffset of the next page when more matches exist.
unresolvedNoSource document filters and citation targets unavailable to the search.
attributionNoSource, licence, and conversion notice.
requestedLimitNoPage size requested.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered without help from the description. The description adds the useful chaining detail that results carry a recordId and locator consumable by norlaw_get_provision, but says nothing about ranking behavior, result grouping by document, or what an empty citation filter yields — all of which matter for a ranked search tool.

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?

Three short sentences, front-loaded with the capability statement followed by filter-combination logic and then the follow-up call. No filler, no repetition of the title, and the most actionable instruction (use recordId with norlaw_get_provision) is placed last where it is easy to find.

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?

With an output schema present the description need not explain return values, and it correctly focuses on the two search modes and the retrieval hand-off. For a nine-parameter, nested-object search tool it is nearly sufficient; the only shortfall is silence on how results are ranked and grouped, which affects how an agent should paginate.

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 100%, so all nine parameters, including query syntax, status and edition defaults, are already documented in structured data. The description contributes one genuine semantic addition — that query and cites combine conjunctively — but says nothing about kinds, documents, legalArea or limit/offset, so the baseline 3 is appropriate.

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?

The description opens with a specific verb and resource ('Search titles, headings and provision text') and adds a second, distinct mode ('find passages with authored links to a cited instrument or section'), which is far more than a restatement of the name. It does not, however, explicitly contrast itself with near-neighbors such as norlaw_search_documents or norlaw_lookup_citation, so the agent must infer that this is passage-level rather than document-level search.

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?

'Combine query and cites to apply both filters' tells the agent how the two primary inputs interact, and 'Read the source passage with norlaw_get_provision using the returned recordId and locator' gives an explicit follow-up step. No when-not conditions or named alternatives are given, so it falls short of a full routing statement.

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.