Oecd Fetch Dataset
oecd_fetch_datasetFetch tidy rows from any OECD dataflow. flow_ref examples: "OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD,1.1". The key string is a dot-separated dimension filter, one position per dimension (e.g., "Q..USA.........." for that flow), 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.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "Q..USA..........",
"flow_ref": "OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD,1.1",
"end_period": "2024-Q4",
"start_period": "2023-Q1"
},
"name": "oecd_fetch_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Dot-separated dimension key (or empty for all) | |
| limit | No | Cap rows returned (default 5000) | |
| flow_ref | Yes | SDMX dataflow reference | |
| end_period | No | Inclusive end period | |
| start_period | No | e.g., "2020", "2020-Q1", "2020-01" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Data rows with column names as keys | |
| count | Yes | Number of data rows returned | |
| columns | Yes | CSV column headers | |
| flow_ref | Yes | The requested SDMX dataflow reference | |
| truncated | Yes | True if result was limited by row cap | |
| source_url | Yes | URL to OECD data explorer for this flow |