Skip to main content
Glama

Kildeverk

Search Norwegian legal entities

companies_search
Read-onlyIdempotent

Search the Central Coordinating Register for Legal Entities (Enhetsregisteret): companies, sole proprietorships, associations and public bodies. Filter by name, municipality, industry (SN2025 code or its leading digits), legal form, minimum employees and registration date. Bankrupt entities are excluded unless asked for.

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

Input Schema

NameRequiredDescriptionDefault
nameNoWords in the entity's name.
pageNoPage number, starting at 0.
sortNodefault
limitNo
industryNoIndustry codes (SN2025, the Norwegian NACE), or their leading digits: '62' finds all IT services, '62.200' one class. Matches any of an entity's up to three industry codes, not only its main one.
voluntaryNoOnly organisations in the Register of Non-Profit Organisations (Frivillighetsregisteret).
legal_formNoLegal form codes, e.g. AS (limited company), ASA (public limited), ENK (sole proprietorship), STI (foundation), FLI (association).
municipalityNoMunicipality codes (4 digits) or names, matched on business or postal address. Names are resolved to today's codes.
min_employeesNoAt least this many employees. Brreg accepts 0, 1, or 5 and above.
registered_toNoRegistered on or before.
registered_fromNoRegistered in the Central Coordinating Register on or after.
include_bankruptNoAlso return bankrupt entities.

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 readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing the bankruptcy exclusion default and the register's scope. It omits pagination/result-set behaviour, which matters for a 12-parameter search.

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 tight sentences with no filler: register scope first, filter axes second, the bankruptcy caveat last. Every clause carries information an agent would otherwise have to infer.

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?

Covers domain, entity types and filter surface adequately for a 12-parameter, zero-required search tool. What is missing is the result-set side: page size defaults, total-count/pagination shape, and sort behaviour, none of which is explained since there is no output schema. That gap keeps it just short of complete.

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 83%, so the schema already documents nearly every parameter in detail, including the leading-digits behaviour for industry codes and the legal-form examples. The description restates the filter axes (name, municipality, industry, legal form, employees, registration date) without adding syntax or constraints not already present. Baseline 3 is appropriate when the schema carries the semantics.

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?

Opens with a specific verb and named resource ('Search the Central Coordinating Register for Legal Entities') and enumerates the covered entity types (companies, sole proprietorships, associations, public bodies). An agent can separate it from companies_get or companies_accounts on scope alone, since this is clearly a filtered list operation.

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 clear conditions for what can be filtered and states the default handling of bankrupt entities ('excluded unless asked for'), which tells the agent when to flip include_bankrupt. It does not name an alternative tool or say when not to use this one (e.g., for fetching a single known entity), so it falls short of explicit routing.

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.