Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Expand Ref Area Group

expand_ref_area_group

Expands an aggregate REF_AREA code into its descendant geographic members using official SDMX hierarchy metadata when available, enabling queries across all sub-areas.

Instructions

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

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

Input Schema

NameRequiredDescriptionDefault
flowRefYes
refAreaCodeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations, so the description carries full behavioral burden. The qualifier 'when available' hints at conditional behavior, but it never says what happens when hierarchy metadata is absent (empty result, error, or passthrough of the original code), and it does not point at the fallback sibling.

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 front-loaded sentence with no filler. Slightly convoluted phrasing in the trailing clause but nothing that could be cut without losing information.

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 spelled out. Still, for a hierarchy-expansion tool the description leaves unresolved what metadata source is used and how the caller should handle the 'not available' case, which is the main risk in calling it.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It clarifies that refAreaCode must be an aggregate/parent-level code, which is real added meaning, but flowRef is never mentioned and no format or codelist expectations are given.

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: expands an aggregate REF_AREA code into descendant members, sourced from SDMX hierarchy metadata. That is enough to separate it from expand_dimension_group, though the description never names that sibling explicitly.

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?

Implies usage context (aggregate REF_AREA codes needed when a query should cover a whole region) but never states when to call this versus resolve_ref_area_fallback or resolve_hierarchy, nor any prerequisites such as requiring a flow that has hierarchy metadata.

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