Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

get_entity_roles

Retrieve all roles for a Norwegian business entity using its 9-digit organization number to understand corporate structure and governance.

Instructions

Get all roles for a specific entity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
organisasjonsnummerYes9-digit organization number

Implementation Reference

  • The core handler function in BrregApiClient that fetches entity roles from the BRREG API by making an HTTP request to the specific endpoint.
    async getEntityRoles(orgNumber: string) { return this.makeRequest(`/enhetsregisteret/api/enheter/${orgNumber}/roller`); }
  • Tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and input schema.
    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"] } },
  • Dispatch handler in the CallToolRequestSchema that parses input arguments and invokes the BrregApiClient.getEntityRoles method, returning the JSON response.
    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 validating the tool parameters.
    inputSchema: { type: "object", properties: { organisasjonsnummer: { type: "string", description: "9-digit organization number" } }, required: ["organisasjonsnummer"] }

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