search_voluntary_organizations
Find voluntary organizations registered in Norway by querying the official business registry for detailed organizational data and governance information.
Instructions
Search voluntary organizations in the voluntary organization registry
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchAfter | No | Search after this organization number for pagination | |
| size | No | Maximum number of organizations (default 100) | |
| spraak | No | Language for code descriptions (e.g., 'NOB') |
Input Schema (JSON Schema)
{
"properties": {
"searchAfter": {
"description": "Search after this organization number for pagination",
"type": "string"
},
"size": {
"description": "Maximum number of organizations (default 100)",
"type": "number"
},
"spraak": {
"description": "Language for code descriptions (e.g., 'NOB')",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/brreg-mcp-server.ts:146-152 (handler)Core handler function in BrregApiClient that executes the tool logic by making an authenticated HTTP GET request to the BRREG Frivillighetsregisteret API endpoint for searching voluntary organizations.async searchVoluntaryOrganizations(params: { searchAfter?: string; size?: number; spraak?: string; } = {}) { return this.makeRequest('/frivillighetsregisteret/api/frivillige-organisasjoner', params); }
- src/brreg-mcp-server.ts:539-548 (handler)MCP CallToolRequestSchema switch case handler that receives tool arguments, calls the apiClient method, and returns the JSON-formatted results as text content.case "search_voluntary_organizations": const voluntaryOrgs = await apiClient.searchVoluntaryOrganizations(request.params.arguments as any); return { content: [ { type: "text", text: JSON.stringify(voluntaryOrgs, null, 2), }, ], };
- src/brreg-mcp-server.ts:361-372 (registration)Tool registration in the ListToolsRequestSchema response, defining the tool name, description, and input schema for MCP clients.{ name: "search_voluntary_organizations", description: "Search voluntary organizations in the voluntary organization registry", inputSchema: { type: "object", properties: { searchAfter: { type: "string", description: "Search after this organization number for pagination" }, size: { type: "number", description: "Maximum number of organizations (default 100)" }, spraak: { type: "string", description: "Language for code descriptions (e.g., 'NOB')" } } } },
- src/brreg-mcp-server.ts:364-371 (schema)JSON Schema defining the input parameters for the tool, including pagination and language options.inputSchema: { type: "object", properties: { searchAfter: { type: "string", description: "Search after this organization number for pagination" }, size: { type: "number", description: "Maximum number of organizations (default 100)" }, spraak: { type: "string", description: "Language for code descriptions (e.g., 'NOB')" } } }