get_entity
Retrieve detailed information about Norwegian businesses using their 9-digit organization number. Access company data, board members, subsidiaries, and corporate structure from the official registry.
Instructions
Get detailed information about a specific Norwegian business entity
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| organisasjonsnummer | Yes | 9-digit organization number |
Implementation Reference
- src/brreg-mcp-server.ts:413-423 (handler)MCP CallToolRequest handler case for 'get_entity': extracts organisasjonsnummer from arguments, fetches entity data via apiClient.getEntity, and returns JSON-formatted text content.case "get_entity": const { organisasjonsnummer } = request.params.arguments as { organisasjonsnummer: string }; const entity = await apiClient.getEntity(organisasjonsnummer); return { content: [ { type: "text", text: JSON.stringify(entity, null, 2), }, ], };
- src/brreg-mcp-server.ts:213-219 (schema)Input schema for 'get_entity' tool: requires a single 'organisasjonsnummer' string property.inputSchema: { type: "object", properties: { organisasjonsnummer: { type: "string", description: "9-digit organization number" } }, required: ["organisasjonsnummer"] }
- src/brreg-mcp-server.ts:210-220 (registration)Registration of 'get_entity' tool in the ListTools response, including name, description, and input schema.{ name: "get_entity", description: "Get detailed information about a specific Norwegian business entity", inputSchema: { type: "object", properties: { organisasjonsnummer: { type: "string", description: "9-digit organization number" } }, required: ["organisasjonsnummer"] } },
- src/brreg-mcp-server.ts:83-85 (helper)BrregApiClient helper method that performs the actual API request to fetch entity details by organization number.async getEntity(orgNumber: string) { return this.makeRequest(`/enhetsregisteret/api/enheter/${orgNumber}`); }