Skip to main content
Glama

Oecd Search Datasets

oecd_search_datasets
Read-onlyIdempotent

Search OECD dataflows by keyword or theme, or omit query to list every dataflow in catalog order (optionally scoped to one agency_id). When query is supplied, each whitespace-separated token must match at the start of a word in dataflow names or descriptions, with name matches ranked first. Returns flow_ref identifiers, names, and agency IDs for use with oecd_get_dataset_info.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "oecd_search_datasets"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return. Default 20; a larger value returns at most 2,000 and says so.
queryNoOptional keyword or phrase to search for in dataflow names and descriptions — e.g. "GDP", "house prices", "TiVA". Omit or leave blank to list every dataflow in catalog order (all agencies, or only agency_id when set). Every whitespace-separated token must start a word in the name or description, ignoring case: "price" matches "Prices" and "tiva" matches "(TiVA)", but "tiva" does not match "activation". A word starts after any character that is not a letter or digit, or at a lowercase-to-uppercase step ("markers" matches "RioMarkers"). A token that opens on such a character, like "&" or "-oecd", matches anywhere it occurs: "&" finds "R&D".
offsetNoZero-based index of the first dataflow to return within the ranked match list (or catalog order when query is omitted or blank), applied before limit. Page through results past the limit by advancing it; an offset at or past total_matches returns an empty list.
agency_idNoOptional agency identifier to restrict the search or listing scope — e.g. "OECD.SDD.NAD". Omit query with agency_id to list every dataflow published by that agency. Obtain valid agency IDs from oecd_list_agencies.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoPresent when a requested limit was above the per-call maximum, naming the limit requested and the one served.
offsetNoZero-based index of the first returned result within the ranked match list (or catalog order when query is omitted or blank).
sourceNoData source attribution — always "OECD".
dataflowsNoDataflows for the requested page, up to the requested limit. When query has search tokens, ranked in three tiers: the name carries every token; the tokens are split across name and description; the description alone carries every token (catalog order within each tier). When query is omitted or blank, returned in catalog order.
totalCountNoTotal dataflows available for the search or listing, disclosed when results remain beyond the returned page.
result_countNoNumber of results returned (may be less than total_matches).
total_matchesNoTotal dataflows matching the query — or total dataflows in the catalog or agency when query is omitted or blank — before applying offset and limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / agency_id / description
      Previous value: -"Optional agency identifier to restrict the search scope — e.g. \"OECD.SDD.NAD\". Obtain valid agency IDs from oecd_list_agencies."New value: +"Optional agency identifier to restrict the search or listing scope — e.g. \"OECD.SDD.NAD\". Omit query with agency_id to list every dataflow published by that agency. Obtain valid agency IDs from oecd_list_agencies."
    • changedInput schema / properties / offset / description
      Previous value: -"Zero-based index of the first match to return within the ranked match list, applied before limit. Page through results past the limit by advancing it; an offset at or past total_matches returns an empty list."New value: +"Zero-based index of the first dataflow to return within the ranked match list (or catalog order when query is omitted or blank), applied before limit. Page through results past the limit by advancing it; an offset at or past total_matches returns an empty list."
    • changedInput schema / properties / query / description
      Previous value: -"Keyword or phrase to search for in dataflow names and descriptions — e.g. \"GDP\", \"house prices\", \"TiVA\". Every whitespace-separated token must start a word in the name or description, ignoring case: \"price\" matches \"Prices\" and \"tiva\" matches \"(TiVA)\", but \"tiva\" does not match \"activation\". A word starts after any character that is not a letter or digit, or at a lowercase-to-uppercase step (\"markers\" matches \"RioMarkers\"). A token that opens on such a character, like \"&\" or \"-oecd\", matches anywhere it occurs: \"&\" finds \"R&D\"."New value: +"Optional keyword or phrase to search for in dataflow names and descriptions — e.g. \"GDP\", \"house prices\", \"TiVA\". Omit or leave blank to list every dataflow in catalog order (all agencies, or only agency_id when set). Every whitespace-separated token must start a word in the name or description, ignoring case: \"price\" matches \"Prices\" and \"tiva\" matches \"(TiVA)\", but \"tiva\" does not match \"activation\". A word starts after any character that is not a letter or digit, or at a lowercase-to-uppercase step (\"markers\" matches \"RioMarkers\"). A token that opens on such a character, like \"&\" or \"-oecd\", matches anywhere it occurs: \"&\" finds \"R&D\"."
    • removedInput schema / required
      Removed value: -[
      -  "query"
      -]
    • changedOutput schema / properties / dataflows / description
      Previous value: -"Matching dataflows for the requested page, up to the requested limit, ranked in three tiers: the name carries every token; the tokens are split across name and description; the description alone carries every token. Catalog order holds within each tier."New value: +"Dataflows for the requested page, up to the requested limit. When query has search tokens, ranked in three tiers: the name carries every token; the tokens are split across name and description; the description alone carries every token (catalog order within each tier). When query is omitted or blank, returned in catalog order."
    • changedOutput schema / properties / dataflows / items / description
      Previous value: -"A matching OECD dataflow entry."New value: +"A matching or listed OECD dataflow entry."
    • changedOutput schema / properties / dataflows / items / properties / matched_in / description
      Previous value: -"Which field carried every query token at a word start — \"name\" or \"description\" when only that one did, \"both\" when each did on its own or the tokens were split across the two."New value: +"Which field carried every query token at a word start — \"name\" or \"description\" when only that one did, \"both\" when each did on its own or the tokens were split across the two. Absent when query was omitted or blank."
    • changedOutput schema / properties / dataflows / items / required
      Previous value: -[
      -  "flow_ref",
      -  "agency_id",
      -  "name",
      -  "matched_in"
      -]New value: +[
      +  "flow_ref",
      +  "agency_id",
      +  "name"
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_match`: No dataflows matched the search query. `agency_not_found`: The supplied agency_id does not exist in the OECD SDMX catalog. `rate_limited`: OECD throttled the request rate and was still refusing after the retries, or asked for a wait longer than the call's upstream budget had left. `upstream_timeout`: An OECD request ran past OECD_TIMEOUT_MS, or the call's requests and retries together ran past its upstream budget — 50 seconds, or OECD_TIMEOUT_MS when that is longer. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, a request read as malformed or unprocessable (HTTP 400 or 422), or a method it does not implement (HTTP 501). `upstream_unreadable`: OECD answered with a body this server could not read — not JSON, or JSON whose fields do not have the shape SDMX gives them. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_match`: No dataflows matched the search query, or the catalog or requested agency published no dataflows. `agency_not_found`: The supplied agency_id does not exist in the OECD SDMX catalog. `rate_limited`: OECD throttled the request rate and was still refusing after the retries, or asked for a wait longer than the call's upstream budget had left. `upstream_timeout`: An OECD request ran past OECD_TIMEOUT_MS, or the call's requests and retries together ran past its upstream budget — 50 seconds, or OECD_TIMEOUT_MS when that is longer. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, a request read as malformed or unprocessable (HTTP 400 or 422), or a method it does not implement (HTTP 501). `upstream_unreadable`: OECD answered with a body this server could not read — not JSON, or JSON whose fields do not have the shape SDMX gives them. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / offset / description
      Previous value: -"Zero-based index of the first returned result within the ranked match list."New value: +"Zero-based index of the first returned result within the ranked match list (or catalog order when query is omitted or blank)."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Total dataflows matching the query, disclosed when matches remain beyond the returned page."New value: +"Total dataflows available for the search or listing, disclosed when results remain beyond the returned page."
    • changedOutput schema / properties / total_matches / description
      Previous value: -"Total dataflows matching the query before applying offset and limit."New value: +"Total dataflows matching the query — or total dataflows in the catalog or agency when query is omitted or blank — before applying offset and limit."
  2. Changed12 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return (1–100, default 20)."New value: +"Maximum number of results to return. Default 20; a larger value returns at most 2,000 and says so."
    • removedInput schema / properties / limit / maximum
      Removed value: -100
    • changedInput schema / properties / offset / description
      Previous value: -"Zero-based index of the first match to return, applied before limit. Page through results past the limit by advancing it; an offset at or past total_matches returns an empty list."New value: +"Zero-based index of the first match to return within the ranked match list, applied before limit. Page through results past the limit by advancing it; an offset at or past total_matches returns an empty list."
    • changedInput schema / properties / query / description
      Previous value: -"Keyword or phrase to search for in dataflow names and descriptions — e.g. \"GDP\", \"employment\", \"education\". Every whitespace-separated token must appear somewhere in the name or description."New value: +"Keyword or phrase to search for in dataflow names and descriptions — e.g. \"GDP\", \"house prices\", \"TiVA\". Every whitespace-separated token must start a word in the name or description, ignoring case: \"price\" matches \"Prices\" and \"tiva\" matches \"(TiVA)\", but \"tiva\" does not match \"activation\". A word starts after any character that is not a letter or digit, or at a lowercase-to-uppercase step (\"markers\" matches \"RioMarkers\"). A token that opens on such a character, like \"&\" or \"-oecd\", matches anywhere it occurs: \"&\" finds \"R&D\"."
    • changedOutput schema / properties / dataflows / description
      Previous value: -"Matching dataflows for the requested page, up to the requested limit."New value: +"Matching dataflows for the requested page, up to the requested limit, ranked in three tiers: the name carries every token; the tokens are split across name and description; the description alone carries every token. Catalog order holds within each tier."
    • changedOutput schema / properties / dataflows / items / properties / matched_in / description
      Previous value: -"Which field carried every query token — \"name\" or \"description\" when only that one did, \"both\" when each did on its own or the tokens were split across the two."New value: +"Which field carried every query token at a word start — \"name\" or \"description\" when only that one did, \"both\" when each did on its own or the tokens were split across the two."
    • removedOutput schema / properties / dataflows / items / properties / non_production
      Removed value: -{
      -  "description": "True if flagged as experimental or deprecated by OECD.",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / dataflows / items / required
      Previous value: -[
      -  "flow_ref",
      -  "agency_id",
      -  "name",
      -  "matched_in",
      -  "non_production"
      -]New value: +[
      +  "flow_ref",
      +  "agency_id",
      +  "name",
      +  "matched_in"
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_match`: No dataflows matched the search query. `agency_not_found`: The supplied agency_id does not exist in the OECD SDMX catalog. `rate_limited`: OECD throttled the request rate and was still refusing after the retries. `upstream_timeout`: OECD did not finish responding before OECD_TIMEOUT_MS elapsed. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, or a request read as malformed. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_match`: No dataflows matched the search query. `agency_not_found`: The supplied agency_id does not exist in the OECD SDMX catalog. `rate_limited`: OECD throttled the request rate and was still refusing after the retries, or asked for a wait longer than the call's upstream budget had left. `upstream_timeout`: An OECD request ran past OECD_TIMEOUT_MS, or the call's requests and retries together ran past its upstream budget — 50 seconds, or OECD_TIMEOUT_MS when that is longer. `upstream_unavailable`: OECD returned a server fault or was unreachable once the retries ran out. `upstream_redirect`: The configured OECD host answered with a redirect, which this server never follows. `upstream_error`: OECD refused the request with a status this server does not model — an authorization challenge, a rejection from something sitting in front of the API, a request read as malformed or unprocessable (HTTP 400 or 422), or a method it does not implement (HTTP 501). `upstream_unreadable`: OECD answered with a body this server could not read — not JSON, or JSON whose fields do not have the shape SDMX gives them. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "no_match",
      -  "agency_not_found",
      -  "rate_limited",
      -  "upstream_timeout",
      -  "upstream_unavailable",
      -  "upstream_redirect",
      -  "upstream_error"
      -]New value: +[
      +  "no_match",
      +  "agency_not_found",
      +  "rate_limited",
      +  "upstream_timeout",
      +  "upstream_unavailable",
      +  "upstream_redirect",
      +  "upstream_error",
      +  "upstream_unreadable"
      +]
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Present when a requested limit was above the per-call maximum, naming the limit requested and the one served.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / offset / description
      Previous value: -"Zero-based index of the first returned result within the full match list."New value: +"Zero-based index of the first returned result within the ranked match list."
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. Beyond that, the description discloses non-obvious behavior: prefix-token matching per whitespace-separated token, name matches ranked ahead of description matches, and which fields come back (flow_ref, name, agency ID). It omits failure modes and any note that the limit is silently capped, which is instead tucked into the schema.

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

Conciseness4/5

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

Three tightly packed sentences with the primary verb and the enumeration fallback front-loaded, then matching semantics, then the return/hand-off. There is mild redundancy with the query parameter's schema text, but no filler sentences.

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?

The tool has an output schema, so return values need not be exhaustively described, yet the description still names the returned fields that matter for chaining into oecd_get_dataset_info. Combined with the annotations and full schema coverage, an agent has everything needed to call it; only cross-tool routing guidance is thin.

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

Parameters3/5

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

Schema description coverage is 100%, and the query, agency_id, limit, and offset descriptions in the schema are already thorough — including the token-matching rules and the 2,000-result cap. The tool description largely restates the query matching and the omit-to-list behavior rather than adding new per-parameter meaning, so the baseline of 3 applies.

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

Purpose5/5

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

The description opens with a specific verb and resource ('Search OECD dataflows') and immediately covers the dual mode — keyword/theme search or a full catalog listing when the query is omitted. It also names the downstream tool (oecd_get_dataset_info), so an agent can tell this is the discovery step rather than a data-retrieval step.

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 clearly states the two usage modes (supply a query to search, omit it to enumerate in catalog order) and the optional agency_id scoping, which gives an agent an unambiguous decision rule for the main branch. It does not, however, contrast itself with siblings such as oecd_list_agencies or oecd_query_dataset, so the agent must infer that this is the entry point and not the query executor.

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.