fetch_dataset

Pack: oecd · Endpoint: https://gateway.pipeworx.io/oecd/mcp

Fetch tidy rows from any OECD dataflow. flow_ref examples: “OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH,1.0”. The key string is a dot-separated dimension filter (e.g., “USA…Q” — leave empty to fetch everything). Use start/end periods like “2020-Q1” or “2020”. Returns labeled rows; OECD enforces a result-size limit and may truncate broad queries — narrow with key dimensions or shorter time ranges.

Parameters

NameTypeRequiredDescription
flow_refstringyesSDMX dataflow reference
keystringnoDot-separated dimension key (or empty for all)
start_periodstringnoe.g., “2020”, “2020-Q1”, “2020-01”
end_periodstringnoInclusive end period
limitnumbernoCap rows returned (default 5000)

Example call

Arguments

{
  "flow_ref": "OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH,1.0",
  "key": "USA.....Q",
  "start_period": "2020-Q1",
  "end_period": "2023-Q4"
}

curl

curl -X POST https://gateway.pipeworx.io/oecd/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fetch_dataset","arguments":{"flow_ref":"OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH,1.0","key":"USA.....Q","start_period":"2020-Q1","end_period":"2023-Q4"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('fetch_dataset', {
  "flow_ref": "OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH,1.0",
  "key": "USA.....Q",
  "start_period": "2020-Q1",
  "end_period": "2023-Q4"
});

More examples

{
  "flow_ref": "OECD.ELS,DSD_LFS@DF_ALFS_POPULATION,1.0",
  "key": "",
  "start_period": "2022",
  "end_period": "2024"
}

Response shape

Always returns: flow_ref, source_url, columns, truncated, count, rows

FieldTypeDescription
flow_refstringThe requested SDMX dataflow reference
source_urlstringURL to OECD data explorer for this flow
columnsarrayCSV column headers
truncatedbooleanTrue if result was limited by row cap
countnumberNumber of data rows returned
rowsarrayData rows with column names as keys
Full JSON Schema
{
  "type": "object",
  "properties": {
    "flow_ref": {
      "type": "string",
      "description": "The requested SDMX dataflow reference"
    },
    "source_url": {
      "type": "string",
      "description": "URL to OECD data explorer for this flow"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CSV column headers"
    },
    "truncated": {
      "type": "boolean",
      "description": "True if result was limited by row cap"
    },
    "count": {
      "type": "number",
      "description": "Number of data rows returned"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      },
      "description": "Data rows with column names as keys"
    }
  },
  "required": [
    "flow_ref",
    "source_url",
    "columns",
    "truncated",
    "count",
    "rows"
  ]
}

Connect

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

{
  "mcpServers": {
    "oecd": {
      "url": "https://gateway.pipeworx.io/oecd/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 27, 2026