get_icnpo_categories
Retrieve ICNPO categories for non-profit organizations from the Norwegian Business Registry, with descriptions available in specified languages.
Instructions
Get ICNPO (International Classification of Non-Profit Organisation) categories
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spraak | No | Language for descriptions (e.g., 'NOB') |
Input Schema (JSON Schema)
{
"properties": {
"spraak": {
"description": "Language for descriptions (e.g., 'NOB')",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/brreg-mcp-server.ts:158-160 (handler)Core handler function in BrregApiClient that makes the API request to fetch ICNPO categories.async getIcnpoCategories(params: { spraak?: string } = {}) { return this.makeRequest('/frivillighetsregisteret/api/icnpo-kategorier', params); }
- src/brreg-mcp-server.ts:386-394 (schema)Input schema and metadata for the get_icnpo_categories tool, registered in the ListTools response.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:562-571 (registration)Dispatch case in CallToolRequestSchema handler that executes the tool by calling apiClient.getIcnpoCategories and returns the JSON response.case "get_icnpo_categories": const icnpoCategories = await apiClient.getIcnpoCategories(request.params.arguments as any); return { content: [ { type: "text", text: JSON.stringify(icnpoCategories, null, 2), }, ], };