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
| Name | Required | Description | Default |
|---|---|---|---|
| organisasjonskode | Yes | Organizational form code (e.g., 'AS', 'ASA') |
Implementation Reference
- src/brreg-mcp-server.ts:471-481 (handler)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), }, ], };
- src/brreg-mcp-server.ts:284-294 (registration)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"] } },
- src/brreg-mcp-server.ts:103-105 (helper)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}`); }
- src/brreg-mcp-server.ts:287-293 (schema)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"] }