Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Resolve And Query Data

resolve_and_query_data

Validate an SDMX query, apply one hierarchy-based aggregate fallback if needed, and return a compact shaped result.

Instructions

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.

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>",
      "filters": "<filters>"
    },
    "name": "resolve_and_query_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelsNoname
filtersYes
flowRefYes
endPeriodNo
resultShapeNolatest_single_value
startPeriodNo
lastNObservationsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose non-obvious behavior: a single automatic hierarchy-based aggregate fallback and result shaping. It does not explain what happens if validation or the fallback fails, whether the fallback is reported to the caller, or how resultShape changes output, so significant gaps remain.

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 action, then prerequisites, then exclusions; each sentence carries distinct information and there is no filler. Mild redundancy between the "intended for" sentence and the "not a first discovery step" sentence keeps it from a 5.

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?

An output schema exists, so return values needn't be described, and the workflow position of the tool is clearly established. However, for a 7-parameter tool with a nested free-form filters object at 0% schema coverage, the description should say more about how to construct the filters argument.

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 7 parameters, including a free-form nested filters object with additionalProperties and undocumented resultShape/labels/period options. The description alludes to flowRef being pre-chosen and to a shaped result but never defines any parameter's acceptable values or meaning, leaving the schema gap unaddressed.

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 uses a precise multi-step verb chain (validate -> fallback -> shaped result) and contrasts the output with "raw SDMX payloads," which implicitly distinguishes it from the raw-data sibling. It stops short of naming that sibling, but an agent can still tell this is the compact single-answer path.

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?

It gives an explicit precondition (indicator dimension already resolved, flowRef already chosen) and an explicit exclusion ("Do not use this as the first discovery step for topical questions such as stunting or wasting"). Even without naming the discovery tools, the when-not condition is unambiguous.

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