Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Query Data

query_data

Fetch SDMX data with bounded time windows and row-safe CSV output, returning the query URL for verification.

Instructions

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.

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

Input Schema

NameRequiredDescriptionDefault
keyNo
formatNocsv
labelsNoname
maxObsNo
offsetNo
filtersNo
flowRefYes
endPeriodNo
resultShapeNo
startPeriodNo
lastNObservationsNo
allowUnboundedTimeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.3/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 disclose non-obvious behavior: a time-window guardrail with an explicit escape hatch, CSV output plus the query URL, and truncation at whole rows rather than mid-row. It stops short of describing pagination mechanics (offset/maxObs) or failure modes, which would materially affect how an agent retries.

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 tight bullets with the guardrail front-loaded, and no filler sentences. The trailing pointer to 'notes.responsePage' is opaque without knowing that output field, which costs a bit.

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

Completeness2/5

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

For a 12-parameter data-retrieval tool with zero schema documentation, the description is too thin. The output schema excuses it from explaining return values, but the absence of any guidance on key construction, filters, labeling, or how offset/maxObs relate to the row truncation leaves the agent guessing on most invocations.

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 12 parameters, so the description must compensate and largely does not. It gives meaning only to the time-window pair and implicitly to allowUnboundedTime ('explicitly accepts the risk'); key, filters, labels, resultShape, lastNObservations, offset, and maxObs receive no explanation anywhere.

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 ('Query SDMX data') and immediately frames the operation as guarded. It does not differentiate itself from siblings such as get_time_series, get_single_observation, or resolve_and_query_data, so an agent cannot rule those out from this text alone.

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

Usage Guidelines3/5

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

The 'bounded time window unless caller explicitly accepts the risk' rule is a real usage precondition that implies when the tool is appropriate. However there is no explicit when-to-use-versus-alternative guidance despite several closely related siblings, so the routing decision is left to inference.

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