get_organizational_forms
Retrieve all organizational forms from the Norwegian Business Registry to identify and categorize business entity types with pagination and sorting options.
Instructions
Get all organizational forms used in the Norwegian business registry
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| size | No | Page size | |
| sort | No | Sort order (ASC/DESC) |
Input Schema (JSON Schema)
{
"properties": {
"page": {
"description": "Page number",
"type": "number"
},
"size": {
"description": "Page size",
"type": "number"
},
"sort": {
"description": "Sort order (ASC/DESC)",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/brreg-mcp-server.ts:460-469 (handler)Handles the 'get_organizational_forms' tool call by invoking the API client method and returning the result as formatted JSON text content.case "get_organizational_forms": const orgForms = await apiClient.getOrganizationalForms(); return { content: [ { type: "text", text: JSON.stringify(orgForms, null, 2), }, ], };
- src/brreg-mcp-server.ts:273-282 (schema)Defines the tool's name, description, and input schema in the list of tools returned by ListToolsRequest.name: "get_organizational_forms", description: "Get all organizational forms used in the Norwegian business registry", inputSchema: { type: "object", properties: { sort: { type: "string", description: "Sort order (ASC/DESC)" }, size: { type: "number", description: "Page size" }, page: { type: "number", description: "Page number" } } }
- src/brreg-mcp-server.ts:99-101 (helper)BrregApiClient method that performs the HTTP request to fetch the list of organizational forms from the BRREG API.async getOrganizationalForms() { return this.makeRequest('/enhetsregisteret/api/organisasjonsformer'); }