Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

get_sub_entity_updates

Retrieve updates on subsidiary entities to maintain an accurate local copy of the Norwegian Business Registry.

Instructions

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

Input Schema

TableJSON 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)

Implementation Reference

  • Core handler function in BrregApiClient that executes the tool logic by making an HTTP request to the BRREG API for sub-entity updates.
    async getSubEntityUpdates(params: {
      dato?: string;
      oppdateringsid?: string;
      organisasjonsnummer?: string[];
      page?: number;
      size?: number;
      sort?: string;
    } = {}) {
      return this.makeRequest('/enhetsregisteret/api/oppdateringer/underenheter', params);
    }
  • Tool registration in the ListTools response, including name, description, and input schema.
    {
      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)" }
        }
      }
    },
  • Input schema definition for the get_sub_entity_updates tool, specifying parameters and types.
    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)" }
      }
    }
  • Dispatch handler in the MCP CallToolRequestSchema that invokes the apiClient method and formats the 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