Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Validate Query Scope

validate_query_scope

Checks whether a concrete SDMX data query resolves against the configured service before answering, helping fail early on invalid flow references, keys, filters, or periods.

Instructions

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

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": "validate_query_scope"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
labelsNoname
filtersNo
flowRefYes
endPeriodNo
startPeriodNo
lastNObservationsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. 'Preflight' and 'fail early' imply a non-destructive check that does not return the full dataset, which is useful context, but it does not explicitly state read-only semantics, whether the service is contacted over the network, or whether failures throw versus return a status. With an output schema present, return-value explanation is not required.

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 short sentences, front-loaded with the core action and followed by the timing rationale; nothing is padded or redundant. It is efficient, though the compactness comes at the cost of the missing parameter detail noted elsewhere.

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 description covers what the tool does and when in the workflow to use it, and an output schema relieves it of explaining return values. Against 7 undocumented parameters and zero annotations, however, an agent still lacks the information needed to construct a valid call, so it is only partially complete for this complexity.

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

Parameters1/5

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

The tool has 7 parameters (flowRef required, plus key, filters, labels, startPeriod, endPeriod, lastNObservations) at 0% schema description coverage, and the description explains none of them. Terms like flowRef, key, labels, and lastNObservations have non-obvious SDMX-specific meanings that are left entirely undocumented.

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 specific verb ('Preflight whether... resolves') and a specific resource ('a concrete query' against 'the configured SDMX service'), so the agent knows this is a validation check rather than a data fetch. It stops short of naming a sibling such as query_data or plan_query to sharpen the distinction, so it is clear but not fully differentiated.

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?

'Intended to fail early before any narrative answer is attempted' gives an implied ordering cue: call this before composing an answer. However, it never states when NOT to use it, what a failure outcome means for next steps, or how it relates to the many sibling planning/query tools, leaving the routing decision largely to inference.

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