Oecd Query
oecd_queryFetch OECD observations by NAMED dimensions instead of a positional key. filters maps dimension id to a code or a name (or an array): {REF_AREA:"Korea", SECTOR:"S13", STANDARD_REVENUE:"T_1100", UNIT_MEASURE:"PT_B1GQ", FREQ:"A"}. Unmentioned dimensions are wildcards. Names resolve against the flow's own code list; an unknown dimension, an unmatched or ambiguous value is refused with the valid dimensions and candidates, nothing is queried. Copy these flow_refs exactly. Tax revenue (tax as % of GDP) flow_ref "OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0": dims REF_AREA, MEASURE (TAX_REV), SECTOR (S13), STANDARD_REVENUE (T_1100 personal income tax), CTRY_SPECIFIC_REVENUE, UNIT_MEASURE (PT_B1GQ = % of GDP), FREQ. Quarterly sector accounts "OECD.SDD.NAD,DSD_NASEC1@DF_QSA,1.1": dims FREQ, ADJUSTMENT, REF_AREA, SECTOR (S11 non-financial corporations), COUNTERPART_SECTOR, ACCOUNTING_ENTRY, TRANSACTION (B9 net lending/borrowing), INSTR_ASSET, UNIT_MEASURE. Merchandise trade (goods imports/exports, G20/OECD/World aggregates) "OECD.SDD.TPS,DSD_IMTS@DF_IMTS,1.0": dims REF_AREA (G20), COUNTERPART_AREA (W), TRADE_FLOW (M imports, X exports), FREQ (Q), UNIT_MEASURE (USD_EXC). Services trade incl. G20 aggregate "OECD.SDD.TPS,DSD_BOP@DF_BOP,1.1": dims REF_AREA (G20), MEASURE (S services), ACCOUNTING_ENTRY (C exports, D imports), FREQ, UNIT_MEASURE (USD_EXC). A wrong agency/version of a known flow id is corrected and reported as flow_ref_resolved; obvious dimension-name aliases (COUNTRY, FLOW, ENTRY) are mapped and reported. start_period like "2007", "2021-Q2".
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": {
"filters": {
"FREQ": "A",
"SECTOR": "S13",
"MEASURE": "TAX_REV",
"REF_AREA": "South Korea",
"UNIT_MEASURE": "PT_B1GQ",
"STANDARD_REVENUE": "T_1100"
},
"flow_ref": "OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0",
"end_period": "2007",
"start_period": "2007"
},
"name": "oecd_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Cap rows returned (default 200) | |
| filters | Yes | Dimension id -> code, name, or array of either, e.g. {"REF_AREA":"KOR","UNIT_MEASURE":"PT_B1GQ"} | |
| flow_ref | Yes | SDMX dataflow reference, e.g. "OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0" | |
| end_period | No | Inclusive end period | |
| start_period | No | e.g. "2007", "2021-Q2", "2020-01" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rows | No | ||
| count | No | ||
| error | No | ||
| columns | No | ||
| message | No | ||
| flow_ref | No | ||
| key_used | No | ||
| problems | No | ||
| truncated | No | ||
| dimensions | No | ||
| source_url | No | ||
| empty_reason | No | ||
| resolved_filters | No |