Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

get_organizational_form

Retrieve detailed information about Norwegian organizational forms using their official codes to understand business structures and governance types.

Instructions

Get information about a specific organizational form

Input Schema

NameRequiredDescriptionDefault
organisasjonskodeYesOrganizational form code (e.g., 'AS', 'ASA')

Input Schema (JSON Schema)

{ "properties": { "organisasjonskode": { "description": "Organizational form code (e.g., 'AS', 'ASA')", "type": "string" } }, "required": [ "organisasjonskode" ], "type": "object" }

Implementation Reference

  • The core function implementing the logic to fetch a specific organizational form by code via API request in the BrregApiClient class.
    async getOrganizationalForm(code: string) { return this.makeRequest(`/enhetsregisteret/api/organisasjonsformer/${code}`);
  • MCP tool handler in the CallToolRequestSchema that processes the tool call, extracts the parameter, delegates to apiClient, and returns the JSON-formatted result.
    case "get_organizational_form": const { organisasjonskode } = request.params.arguments as { organisasjonskode: string }; const orgForm = await apiClient.getOrganizationalForm(organisasjonskode); return { content: [ { type: "text", text: JSON.stringify(orgForm, null, 2), }, ], };
  • Input schema definition for the get_organizational_form tool, including required organisasjonskode parameter.
    name: "get_organizational_form", description: "Get information about a specific organizational form", inputSchema: { type: "object", properties: { organisasjonskode: { type: "string", description: "Organizational form code (e.g., 'AS', 'ASA')" } }, required: ["organisasjonskode"] } },
  • Tool registration entry in the ListTools response, defining name, description, and schema.
    { name: "get_organizational_form", description: "Get information about a specific organizational form", inputSchema: { type: "object", properties: { organisasjonskode: { type: "string", description: "Organizational form code (e.g., 'AS', 'ASA')" } }, required: ["organisasjonskode"] } },

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