Skip to main content
Glama

Kildeverk

Read a section of a law or regulation

laws_get_section
Read-onlyIdempotent

The text of one section (§) of a Norwegian law or central regulation in force, word for word from Lovdata, with its heading, chapter and a link. Name the document by id, short title or abbreviation ('forurensningsloven', 'aml'). Without a section it lists the document's sections.

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

Input Schema

NameRequiredDescriptionDefault
sectionNoA section such as '§ 11', '11' or '14-7'. Leave out to list the document's sections.
documentYesAn id (LOV-1981-03-13-6), a short title (forurensningsloven) or its abbreviation (forurl).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real value beyond them: content is verbatim from Lovdata, limited to instruments 'in force' (implying consolidated current text, not historical versions), and it enumerates what comes back — text, heading, chapter, link. No auth, rate-limit or not-found behavior is mentioned.

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 returned artifact and source, and closed with the fallback listing mode. Every clause contributes — nothing is repeated from the title or wasted.

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 no output schema, the description carries the return-shape burden and does so by naming heading, chapter, link and verbatim text. It is complete for a two-parameter read tool, though it leaves edge cases (invalid document, nonexistent section, repealed law) unaddressed.

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 both parameters are already documented, including the section formats and identifier forms. The description reinforces the identifier formats with the same examples ('forurensningsloven', 'aml') and reiterates the omit-section behavior, adding little beyond the schema. Baseline 3 applies when the schema carries the parameter detail.

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 names a specific verb ('read') and resource ('one section (§) of a Norwegian law or central regulation'), plus the authoritative source (Lovdata) and the returned components (heading, chapter, link). It also discloses the second mode (listing sections when no section is given). It stops short of naming the sibling laws_search as the lookup alternative, so the differentiation is implicit rather than explicit.

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?

It states the two operating modes clearly — retrieve a section, or omit the section to list the document's sections — and that the document can be named by id, short title or abbreviation. It never says when to prefer laws_search to find a document, nor what happens when a section does not exist, so usage is implied rather than routed.

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.