Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Search Reference Candidates

search_reference_candidates

Find reference candidates for regions, country groups, categories, or aggregate concepts across SDMX codelists and hierarchical structures to resolve query dimensions.

Instructions

Search group-like reference structures across ordinary codelists, codes, and hierarchical codelists. Use this when a user query implies a region, category, country group, or other aggregate concept.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "flowRef": "<flowRef>",
      "query": "<query>"
    },
    "name": "search_reference_candidates"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
flowRefYes
dimensionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. 'Search' strongly implies a non-mutating lookup, and an output schema exists, but the description says nothing about read-only status, cost, whether results are ranked or truncated, or how 'aggregate concepts' are matched. It is enough to avoid misuse but not rich behavioral context.

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?

Two sentences, no padding, with the core capability stated first and the usage trigger second. Slight loss for the vague 'group-like reference structures' phrasing, which spends words without fully resolving what is being searched.

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

Completeness3/5

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

The output schema means return values need not be described, which removes part of the burden. However, for a four-parameter search with zero annotation coverage and no schema descriptions, the definition leaves the agent guessing about parameter roles and result ranking/truncation behavior — adequate but with real gaps.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters (flowRef, query, dimension, limit), and the description adds no meaning for any of them. Most notably the nullable 'dimension' parameter — likely the key to scoping which codelist to search — is entirely unexplained, as is whether 'query' is free text or a code fragment.

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 description names a specific action (search) and a specific resource class (group-like reference structures across codelists, codes, hierarchical codelists). The phrase 'group-like reference structures' is somewhat jargon-heavy, but combined with the usage sentence naming regions, categories, and country groups, an agent can form a workable picture of what is returned.

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 gives an explicit trigger condition: use when a user query implies a region, category, country group, or other aggregate concept. That is clear positive guidance. It does not name any alternative (e.g. expand_ref_area_group, resolve_ref_area_fallback, resolve_hierarchy) or state when this tool is the wrong choice, so it falls short of a 5.

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