Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

get_organizational_form

Retrieve organizational form details from the Norwegian Business Registry using specific codes to identify company structures and legal entities.

Instructions

Get information about a specific organizational form

Input Schema

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

Implementation Reference

  • Handler logic for the 'get_organizational_form' tool. Extracts the 'organisasjonskode' parameter and delegates to BrregApiClient.getOrganizationalForm, returning the result as JSON text content.
    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), }, ], };
  • Registration of the 'get_organizational_form' tool in the ListTools response, including name, description, and input 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"] } },
  • Core implementation in BrregApiClient that makes the HTTP GET request to the BRREG API endpoint for the specific organizational form using the provided code.
    async getOrganizationalForm(code: string) { return this.makeRequest(`/enhetsregisteret/api/organisasjonsformer/${code}`); }
  • Input schema definition for the 'get_organizational_form' tool, specifying the required 'organisasjonskode' string parameter.
    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