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