Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

get_sub_entity

Retrieve detailed information about specific Norwegian business sub-entities using their 9-digit organization number to access corporate structure and governance data.

Instructions

Get detailed information about a specific Norwegian business sub-entity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
organisasjonsnummerYes9-digit organization number

Implementation Reference

  • Core handler function in BrregApiClient class that makes the HTTP request to the BRREG API to fetch detailed information about a specific sub-entity (underenhet) by its organization number.
    async getSubEntity(orgNumber: string) {
      return this.makeRequest(`/enhetsregisteret/api/underenheter/${orgNumber}`);
    }
  • JSON schema defining the input parameters for the get_sub_entity tool: requires a 9-digit organisasjonsnummer string.
    inputSchema: {
      type: "object",
      properties: {
        organisasjonsnummer: { type: "string", description: "9-digit organization number" }
      },
      required: ["organisasjonsnummer"]
    }
  • Tool registration in the ListTools response, including name, description, and input schema.
    {
      name: "get_sub_entity",
      description: "Get detailed information about a specific Norwegian business sub-entity",
      inputSchema: {
        type: "object",
        properties: {
          organisasjonsnummer: { type: "string", description: "9-digit organization number" }
        },
        required: ["organisasjonsnummer"]
      }
    },
  • MCP server handler case that extracts the organization number from tool arguments, calls the apiClient handler, and returns the JSON-formatted response as text content.
    case "get_sub_entity":
      const { organisasjonsnummer: subOrgNum } = request.params.arguments as { organisasjonsnummer: string };
      const subEntity = await apiClient.getSubEntity(subOrgNum);
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(subEntity, null, 2),
          },
        ],
      };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reidar80/BRREG-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server