Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

get_entity_roles

Retrieve all roles associated with a specific Norwegian business entity using its 9-digit organization number to access corporate governance and structure data.

Instructions

Get all roles for a specific entity

Input Schema

NameRequiredDescriptionDefault
organisasjonsnummerYes9-digit organization number

Input Schema (JSON Schema)

{ "properties": { "organisasjonsnummer": { "description": "9-digit organization number", "type": "string" } }, "required": [ "organisasjonsnummer" ], "type": "object" }

Implementation Reference

  • MCP CallToolRequestSchema handler case for 'get_entity_roles': destructures organisasjonsnummer from arguments, calls apiClient.getEntityRoles, and returns the JSON-stringified roles as text content.
    case "get_entity_roles": const { organisasjonsnummer: orgNum } = request.params.arguments as { organisasjonsnummer: string }; const roles = await apiClient.getEntityRoles(orgNum); return { content: [ { type: "text", text: JSON.stringify(roles, null, 2), }, ], };
  • Input schema for the get_entity_roles tool: requires a single 'organisasjonsnummer' string property.
    inputSchema: { type: "object", properties: { organisasjonsnummer: { type: "string", description: "9-digit organization number" } }, required: ["organisasjonsnummer"] }
  • Tool registration in ListToolsRequestSchema response: defines name, description, and inputSchema for get_entity_roles.
    { name: "get_entity_roles", description: "Get all roles for a specific entity", inputSchema: { type: "object", properties: { organisasjonsnummer: { type: "string", description: "9-digit organization number" } }, required: ["organisasjonsnummer"] } },
  • BrregApiClient helper method: performs HTTP request to BRREG API to fetch roles for the given organization number.
    async getEntityRoles(orgNumber: string) { return this.makeRequest(`/enhetsregisteret/api/enheter/${orgNumber}/roller`); }

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