get_voluntary_organization
Retrieve detailed information about voluntary organizations using their 9-digit organization number from the Norwegian Business Registry.
Instructions
Get detailed information about a specific voluntary organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| organisasjonsnummer | Yes | 9-digit organization number | |
| spraak | No | Language for code descriptions (e.g., 'NOB') |
Implementation Reference
- src/brreg-mcp-server.ts:550-560 (handler)Executes the "get_voluntary_organization" tool by parsing arguments, calling the API client, and returning the JSON response as text content.case "get_voluntary_organization": const { organisasjonsnummer: volOrgNum, spraak } = request.params.arguments as { organisasjonsnummer: string; spraak?: string }; const voluntaryOrg = await apiClient.getVoluntaryOrganization(volOrgNum, { spraak }); return { content: [ { type: "text", text: JSON.stringify(voluntaryOrg, null, 2), }, ], };
- src/brreg-mcp-server.ts:373-384 (schema)Input schema and metadata definition for the "get_voluntary_organization" tool, registered in the ListTools response.{ name: "get_voluntary_organization", description: "Get detailed information about a specific voluntary organization", inputSchema: { type: "object", properties: { organisasjonsnummer: { type: "string", description: "9-digit organization number" }, spraak: { type: "string", description: "Language for code descriptions (e.g., 'NOB')" } }, required: ["organisasjonsnummer"] } },
- src/brreg-mcp-server.ts:154-156 (helper)BrregApiClient helper method that performs the HTTP request to the BRREG API for a specific voluntary organization's details.async getVoluntaryOrganization(orgNumber: string, params: { spraak?: string } = {}) { return this.makeRequest(`/frivillighetsregisteret/api/frivillige-organisasjoner/${orgNumber}`, params); }