Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SDMX_BASE_URLYesThe base URL of the SDMX REST API.
SDMX_DATA_LICENCENoLicence text stamped on data responses; left out when unset.
SDMX_ENFORCE_SCOPENoReject an out-of-scope flowRef server-side rather than merely discouraging it in a prompt.false
SDMX_DISCOVERY_UNITSNoSet to false to disable unit annotation on discovery results.
SDMX_THEME_PREFIX_CSVNoOptional prefix-to-domain mapping CSV for grouping dataflows by theme.
SDMX_UNIT_PROBE_AREASNoArea codes used to keep the unit probe small while preserving unit annotation coverage.
SDMX_MAX_RESPONSE_CHARSNoCeiling on one tool result. Structures summarize their codelists, query_data pages at whole rows, and anything else over it is an error.50000
SDMX_INDICATOR_FLOW_LIMITNoNumber of flows listed per candidate by find_indicator_candidates; 0 disables trimming.3
SDMX_STRUCTURE_REFERENCESNoOverride the SDMX references mode used for structure requests.descendants
SDMX_AREA_PROBE_FLOW_LIMITNoNumber of flows read when refArea narrows a search to one area.3
SDMX_DISCOVERY_POLICY_FILENoPath to a discovery ranking policy JSON file, overriding the default discovery ranking policy.
SDMX_DISCOVERY_POLICY_JSONNoDiscovery ranking policy as JSON, overriding the default discovery ranking policy.
SDMX_DATAFLOW_ID_ALLOW_REGEXNoRestrict the server to matching dataflow IDs, e.g. ^GLOBAL_DATAFLOW$.
SDMX_DEFAULT_LAST_N_OBSERVATIONSNoControls whether unqualified query_data requests default to the latest observation or all time periods.
SDMX_QUERY_DIMENSION_POLICY_FILENoPath to a query dimension policy JSON file, overriding the default query dimension policy.
SDMX_QUERY_DIMENSION_POLICY_JSONNoQuery dimension policy as JSON, overriding the default query dimension policy.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_agenciesC

List agencies from the configured SDMX service with optional descriptions.

plan_topic_queryA

Plan a topical user question into an indicator-first SDMX workflow.

Use this as the first tool for questions about a phenomenon or metric such as stunting, wasting, mortality, literacy, vaccination, or similar subject-matter topics. This tool reads the configured query-dimension policy, highlights the highest-priority required dimension, and returns ranked indicator candidates before any flow-level query. Do not start with search_dataflows for topical questions unless the user explicitly asks for a dataset or dataflow by name.

For a one-country question, pass refArea; if no candidate has data the response says so.

search_dataflowsA

Search SDMX dataflows by id/name/description. Returns lightweight matches with a flowRef you can pass to other tools.

Prefer find_indicator_candidates or plan_topic_query for topical metric questions such as stunting, wasting, mortality, immunization, literacy, or similar phenomena. Use search_dataflows when the user is asking for a known dataset, domain, or flow, not when the main problem is to identify the right indicator first. If a discovery resource is attached or guided_discover is available, calling this first is usually redundant and increases cost. Avoid it for topic-first questions unless guided_discover returned unresolved.

list_dataflows_groupedC

List dataflows grouped by a theme hint inferred from flow IDs. Optionally pass prefixMap to map id prefixes to human-friendly labels.

get_default_theme_prefix_mapB

Return the starter mapping of flow id prefixes to theme labels.

list_theme_prefixesC

Scan dataflows and return common id prefixes with counts and examples.

list_theme_prefix_conflictsB

List prefixes that map to multiple domains in the configured theme-prefix CSV.

describe_flowC

Return a human-friendly summary of a dataflow, including dimension info.

list_dimensionsC

List ordered dimensions for a flow with codelist references.

list_codesB

List codes for a specific dimension, optionally filtered by a query string. Results can be enriched with hierarchy-aware hints so callers can see whether a code looks atomic, aggregate, or structurally ambiguous at discovery time.

search_reference_candidatesB

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.

find_indicator_candidatesA

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.

search_indicatorsC

Alias for find_indicator_candidates with identical behavior and parameters.

guided_discoverB

Execute a guided SDMX discovery flow from one of three user-facing entry modes: subject, location, or time.

This tool is intended to be called after attaching one of the discovery resources. The selected discovery mode is the visible user entry path, but backend query construction still follows the configured query-dimension policy order. For cost control, prefer this single tool over chaining search_dataflows, expand_ref_area_group, list_codes, and resolve_and_query_data after a discovery resource has been attached.

get_flow_structureB

Fetch a flow's structure. Large ones summarize codelists; use list_codes for codes.

build_keyC

Build an SDMX key string from human-friendly dimension selections. Pass a mapping of dimension names to a single value or list of values.

list_hierarchical_codelistsC

List hierarchical codelists for an agency, optionally filtered by text.

describe_hierarchical_codelistC

Describe a hierarchical codelist and expose its immediate roots.

resolve_hierarchyB

Resolve the best agency hierarchy for a flow dimension/code. Returns resolved, ambiguous, or unresolved so the assistant does not guess.

expand_dimension_groupC

Expand a dimension code through the best matching agency hierarchy.

expand_ref_area_groupB

Expand an aggregate REF_AREA code into its descendant members using hierarchy metadata present in the official SDMX structure payload when available.

resolve_dimension_fallbackC

Validate an aggregate dimension code and, when unresolved, return a hierarchy-based retry plan.

resolve_ref_area_fallbackB

Validate an aggregate REF_AREA query and, when it does not resolve, return an official retry plan based on hierarchy-derived member REF_AREA codes.

plan_queryB

Resolve a query into a concrete SDMX URL and highlight wildcard dimensions before execution.

validate_query_scopeB

Preflight whether a concrete query resolves from the configured SDMX service. This is intended to fail early before any narrative answer is attempted.

query_dataB

Query SDMX data with guardrails.

  • Requires a bounded time window unless caller explicitly accepts the risk.

  • Returns CSV rows and the query URL. Long results are cut at whole rows; see notes.responsePage.

get_single_observationA

Compact exact-value tool.

Use this when the user asks for one indicator, one location, and one period/latest value. Prefer code-level filters when available. Otherwise provide subject/location/time text and the configured query-dimension policy will resolve them. Returns only a compact value payload; it does not return raw CSV. Set verbose=true to include all coded filter dimensions and provenance attributes.

get_indicator_tableB

Compact latest-by-location table tool.

Use this when the user asks for multiple countries, a region/group table, a comparison, or a ranking for one indicator and one period/latest value. Returns compact rows rather than raw CSV. Set verbose=true to include constant coded dimensions and provenance attributes in every row.

get_time_seriesB

Compact time-series tool.

Use this when the user asks for trends, change over time, a chart, or a series. Set time to a single period, a range like '2000:2024', or 'all'. Returns compact period/value rows rather than raw CSV. Set verbose=true to include coded filter dimensions and provenance attributes.

pingA

Returns server and build information.

Use this to verify which version of the server is running after a deploy, or to confirm the server is reachable before making data queries.

resolve_and_query_dataA

Validate a query, try one hierarchy-based aggregate fallback when needed, and then return a shaped result. This is intended for common user-facing questions that expect one compact answer rather than raw SDMX payloads.

Use this only after the subject/indicator dimension has already been resolved to a concrete code and a suitable flowRef has already been chosen. Do not use this as the first discovery step for topical questions such as stunting or wasting.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
discover_by_subjectGuided entry point for topic-first discovery.
discover_by_locationGuided entry point for geography-first discovery.
discover_by_timeGuided entry point for time-first discovery.

TDQS

C2.9/5.0

Scored across 31 tools

Disambiguation2/5

Several tools have genuinely overlapping boundaries: find_indicator_candidates and search_indicators are an explicit alias pair, expand_ref_area_group/expand_dimension_group and resolve_ref_area_fallback/resolve_dimension_fallback are near-duplicates, and query_data, resolve_and_query_data, get_single_observation, get_indicator_table, get_time_series and guided_discover all retrieve data with only output-shape differences. The long descriptions do a lot of work to steer selection, but an agent must read multi-sentence guidance to pick correctly, and identical-behavior aliases guarantee misselection risk.

Naming Consistency4/5

Names are uniformly snake_case and mostly follow a verb_noun shape (list_codes, describe_flow, search_dataflows, build_key, validate_query_scope). Minor deviations exist: 'ping' has no noun, 'guided_discover' is adjective_verb, and 'find_indicator_candidates' vs 'search_indicators' use different verbs for the same operation.

Tool Count2/5

31 tools is heavy for an SDMX read/query server and the surface is inflated by aliases, paired generic/specific fallback tools, and three separate theme-prefix utilities. Many tools earn their place individually, but the total count pushes well past the 25-tool threshold where scope creep and choice burden set in.

Completeness4/5

The lifecycle is well covered: discovery (dataflows, indicators, hierarchical codelists), structure inspection (dimensions, codes, hierarchies), key construction and planning, validation preflight, execution, and compact shaped outputs for single observation/table/series, plus server health. Remaining gaps are minor—no explicit attribute/metadata or multi-flow comparison tool—and workarounds exist via verbose flags and query_data.

Maintenance

ActivityActive
ResponsivenessNo recent community issues