get_icnpo_categories
Retrieve ICNPO classification categories for non-profit organizations from the Norwegian Business Registry. Use this tool to access standardized international classifications for organizational categorization.
Instructions
Get ICNPO (International Classification of Non-Profit Organisation) categories
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spraak | No | Language for descriptions (e.g., 'NOB') |
Implementation Reference
- src/brreg-mcp-server.ts:158-160 (handler)The core handler function implementing the logic for the 'get_icnpo_categories' tool by making an API request to the Brreg voluntary organizations registry endpoint.async getIcnpoCategories(params: { spraak?: string } = {}) { return this.makeRequest('/frivillighetsregisteret/api/icnpo-kategorier', params); }
- src/brreg-mcp-server.ts:385-394 (registration)Tool registration in the ListTools handler, defining the tool's name, description, and input schema.{ name: "get_icnpo_categories", description: "Get ICNPO (International Classification of Non-Profit Organisation) categories", inputSchema: { type: "object", properties: { spraak: { type: "string", description: "Language for descriptions (e.g., 'NOB')" } } } }
- src/brreg-mcp-server.ts:388-393 (schema)JSON schema defining the input parameters for the tool (optional 'spraak' language parameter).inputSchema: { type: "object", properties: { spraak: { type: "string", description: "Language for descriptions (e.g., 'NOB')" } } }
- src/brreg-mcp-server.ts:562-571 (handler)Dispatch handler in the CallToolRequestSchema that invokes the tool's handler and formats the response as text content.case "get_icnpo_categories": const icnpoCategories = await apiClient.getIcnpoCategories(request.params.arguments as any); return { content: [ { type: "text", text: JSON.stringify(icnpoCategories, null, 2), }, ], };