Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Resolve Ref Area Fallback

resolve_ref_area_fallback

Validates an aggregate REF_AREA query and, if it cannot resolve, returns an official retry plan using hierarchy-derived member REF_AREA codes.

Instructions

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.

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

Input Schema

NameRequiredDescriptionDefault
labelsNo
filtersNo
flowRefYes
endPeriodNo
refAreaCodeYes
startPeriodNo
lastNObservationsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses the core contract (validate, and on failure return a retry plan built from hierarchy-derived members) and implies this is a planning step rather than a data fetch, but it never states whether the tool is read-only, whether it has side effects, or what happens on a successful validation.

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?

A single well-formed sentence with the action front-loaded and no filler. It is efficient, though the terseness leaves no room for the usage or parameter context this tool needs.

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 values need not be explained, and the description does convey the validate-then-fallback mechanism. Still, for a 7-parameter, zero-coverage tool with no annotations, the definition omits what 'retry plan' means operationally and how the period/observation/filter parameters constrain the fallback.

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, so the description must compensate and it largely does not. Only the REF_AREA concept is addressed; flowRef, startPeriod, endPeriod, lastNObservations, filters, and labels are given no meaning, and the relationship between flowRef and refAreaCode is unexplained.

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 and resource ('Validate an aggregate REF_AREA query') and adds a distinctive outcome ('return an official retry plan based on hierarchy-derived member REF_AREA codes'), so an agent can tell this apart from a plain query tool. It stops short of naming the siblings it overlaps with, such as expand_ref_area_group or resolve_dimension_fallback.

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 phrase 'when it does not resolve' implies a fallback workflow — call this after an aggregate REF_AREA query fails — but the trigger condition is not made explicit and no alternative tool is named for the case where the query does resolve. Usage is inferable rather than stated.

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