Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

get_sub_entity_updates

Retrieve updates on subsidiaries and sub-entities from the Norwegian Business Registry to maintain an accurate local copy with timestamp filtering.

Instructions

Get updates on sub-entities for maintaining a local copy of the registry

Input Schema

NameRequiredDescriptionDefault
datoNoShow updates from this timestamp (ISO-8601)
oppdateringsidNoShow updates from this update ID
organisasjonsnummerNoFilter by organization numbers
pageNoPage number
sizeNoPage size (default 20, max 10000)
sortNoSort by ID (ASC/DESC)

Input Schema (JSON Schema)

{ "properties": { "dato": { "description": "Show updates from this timestamp (ISO-8601)", "type": "string" }, "oppdateringsid": { "description": "Show updates from this update ID", "type": "string" }, "organisasjonsnummer": { "description": "Filter by organization numbers", "items": { "type": "string" }, "type": "array" }, "page": { "description": "Page number", "type": "number" }, "size": { "description": "Page size (default 20, max 10000)", "type": "number" }, "sort": { "description": "Sort by ID (ASC/DESC)", "type": "string" } }, "type": "object" }

Implementation Reference

  • The core handler function in BrregApiClient that performs the HTTP request to the BRREG API for sub-entity updates using the makeRequest helper.
    async getSubEntityUpdates(params: { dato?: string; oppdateringsid?: string; organisasjonsnummer?: string[]; page?: number; size?: number; sort?: string; } = {}) { return this.makeRequest('/enhetsregisteret/api/oppdateringer/underenheter', params); }
  • Input schema definition for the get_sub_entity_updates tool, provided in the ListTools response, defining parameters for filtering and paginating updates.
    { name: "get_sub_entity_updates", description: "Get updates on sub-entities for maintaining a local copy of the registry", inputSchema: { type: "object", properties: { dato: { type: "string", description: "Show updates from this timestamp (ISO-8601)" }, oppdateringsid: { type: "string", description: "Show updates from this update ID" }, organisasjonsnummer: { type: "array", items: { type: "string" }, description: "Filter by organization numbers" }, page: { type: "number", description: "Page number" }, size: { type: "number", description: "Page size (default 20, max 10000)" }, sort: { type: "string", description: "Sort by ID (ASC/DESC)" } } } },
  • Registration and dispatching logic in the CallToolRequestHandler switch statement that calls the handler and returns the JSON-formatted response.
    case "get_sub_entity_updates": const subEntityUpdates = await apiClient.getSubEntityUpdates(request.params.arguments as any); return { content: [ { type: "text", text: JSON.stringify(subEntityUpdates, null, 2), }, ], };

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