Skip to main content
Glama

Oecd Query

oecd_query
Read-onlyIdempotent

Fetch 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

NameRequiredDescriptionDefault
limitNoCap rows returned (default 200)
filtersYesDimension id -> code, name, or array of either, e.g. {"REF_AREA":"KOR","UNIT_MEASURE":"PT_B1GQ"}
flow_refYesSDMX dataflow reference, e.g. "OECD.CTP.TPS,DSD_REV_COMP_OECD@DF_RSOECD,2.0"
end_periodNoInclusive end period
start_periodNoe.g. "2007", "2021-Q2", "2020-01"

Output Schema

NameRequiredDescriptionDefault
noteNo
rowsNo
countNo
errorNo
columnsNo
messageNo
flow_refNo
key_usedNo
problemsNo
truncatedNo
dimensionsNo
source_urlNo
empty_reasonNo
resolved_filtersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent, open-world and non-destructive, so the bar is lower, yet the description still adds substantial behavior: unresolved dimensions are refused with valid dimensions and candidate values and nothing is queried, and wrong agency/version of a known flow id is silently corrected and reported as flow_ref_resolved. It also discloses that obvious dimension-name aliases are mapped and reported. That is exactly the kind of side-effect and failure-mode disclosure an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core semantics are front-loaded and efficient, but the bulk of the text is a dense inline catalog of four flows with their dimensions, which duplicates what a curated-flows listing tool would more naturally provide. It is one unbroken paragraph with no visual separation between operating rules and reference data. Every sentence is informative, but the proportion of catalog to instructions hurts scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return values, and it still covers the hard parts: named-vs-positional addressing, wildcard defaults, resolution failures, alias and version correction reporting, and period formats. The embedded flow catalog further reduces the need for prior knowledge. Only minor gaps remain, such as how the limit cap interacts with truncation of results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns an increment by explaining that filters values may be codes, names, or arrays, that names resolve against the flow's own code list, and that omitted dimensions are wildcards. It also gives period formats ("2007", "2021-Q2") that clarify start_period beyond the schema's own example. The limit parameter's truncation behavior is left to the schema only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource plus a distinguishing mechanism: fetch OECD observations by NAMED dimensions rather than a positional key. That contrast alone separates it from a positional-key fetch tool, and the flow_ref catalog shows the exact scope of data covered. It stops short of naming a sibling for discovering flow_refs (e.g. a search/list tool), which leaves a small gap at the selection boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the operative condition for using this tool (you have named dimensions), that unmentioned dimensions become wildcards, and that invalid dimension/value inputs are refused rather than silently broadened. It also instructs the caller to copy flow_refs exactly and lists curated ones inline, which is actionable guidance. What is missing is an explicit pointer to the sibling tools for finding a flow_ref when it is not in the embedded list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.