groups

Pack: opendata-canada · Endpoint: https://gateway.pipeworx.io/opendata-canada/mcp

List the subject-area themes used across open.canada.ca (e.g. Nature And Environment, Science And Technology, Health And Safety), ranked by dataset count. Each theme includes an fq filter string to pass to the search tool to list that theme’s datasets. Use this to browse what Canada publishes by topic before searching.

Parameters

NameTypeRequiredDescription
limitnumberno

Example call

Arguments

{
  "limit": 15
}

curl

curl -X POST https://gateway.pipeworx.io/opendata-canada/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"groups","arguments":{"limit":15}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('groups', {
  "limit": 15
});

Response shape

Always returns: groups, count

FieldTypeDescription
groupsarrayThemes from the Solr subject facet.
countintegerNumber of themes returned
total_datasetsintegerTotal datasets across the portal
notestringExplanatory note about the theme source
Full JSON Schema
{
  "type": "object",
  "properties": {
    "groups": {
      "type": "array",
      "description": "Themes from the Solr `subject` facet.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Theme name"
          },
          "title": {
            "type": "string",
            "description": "Human-readable theme title"
          },
          "datasets": {
            "type": "integer",
            "description": "Number of datasets carrying this theme"
          },
          "fq": {
            "type": "string",
            "description": "Solr filter query that reproduces this theme, e.g. subject:\"transport\""
          }
        }
      }
    },
    "count": {
      "type": "integer",
      "description": "Number of themes returned"
    },
    "total_datasets": {
      "type": "integer",
      "description": "Total datasets across the portal"
    },
    "note": {
      "type": "string",
      "description": "Explanatory note about the theme source"
    }
  },
  "required": [
    "groups",
    "count"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "opendata-canada": {
      "url": "https://gateway.pipeworx.io/opendata-canada/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 21, 2026