Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Find Indicator Candidates

find_indicator_candidates

Rank indicator codes by matching query text against codelist labels to resolve the subject dimension before choosing dataflows, returning units and data availability per area.

Instructions

Rank indicator codes by matching query text against codelist labels/descriptions. If flowRef is omitted, scan scoped flows and return indicator candidates with matching dataflows.

This is the preferred first step for topical user questions where the subject/metric is not already resolved. For requests such as "stunting in Latin America" or "vaccination coverage in West Africa", call this before search_dataflows so the subject dimension is resolved before flow selection.

Each candidate carries 'unit' (and 'unitMultiplier' where the registry sets one) when it can be resolved. Use it to choose between siblings whose labels are close: a mortality rate reads 'Deaths per 1,000 live births' while the matching count reads 'Number of deaths'. Pass includeUnits=false to skip the lookup.

For a one-country question, pass refArea to mark candidates with hasDataForArea.

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": {
      "query": "<query>"
    },
    "name": "find_indicator_candidates"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
flowRefNo
refAreaNo
flowLimitNo
flowQueryNo
includeUnitsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that omitting flowRef triggers a scan of scoped flows, that unit/unitMultiplier enrichment happens when resolvable, that includeUnits=false skips that lookup (a performance lever), and that refArea adds a hasDataForArea marker. It does not state the cost/scope of the flow scan or any rate/limit behavior.

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?

Front-loaded with the core matching behavior, then layered with routing guidance, the unit disambiguation tip, and the refArea tip. Every paragraph carries distinct information, though the unit-disambiguation example runs longer than strictly necessary.

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?

An output schema exists, so return structure needn't be restated, and the description is strong on routing and enrichment behavior. However, for a 7-parameter tool with zero schema description coverage, three parameters remain unexplained, leaving the definition incomplete for correct invocation tuning.

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 0% across 7 parameters, so the description must compensate. It gives meaning to query, flowRef, refArea, and includeUnits, but leaves limit, flowLimit, and flowQuery entirely undefined in both schema and prose, which is a meaningful gap for a 0%-coverage schema.

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?

States a specific verb and resource: rank indicator codes by matching query text against codelist labels/descriptions. It also distinguishes itself from search_dataflows by prescribing ordering. It does not differentiate itself from the close sibling search_indicators, leaving that ambiguity.

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

Usage Guidelines5/5

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

Explicitly names this as the preferred first step for topical questions where the subject/metric is unresolved, and gives concrete trigger examples ('stunting in Latin America', 'vaccination coverage in West Africa'). It also states the sequencing rule: call this before search_dataflows so the subject dimension is resolved first.

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