Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Resolve Hierarchy

resolve_hierarchy

Resolve the best agency hierarchy for a flow dimension and code, returning resolved, ambiguous, or unresolved status so the assistant avoids guessing.

Instructions

Resolve the best agency hierarchy for a flow dimension/code. Returns resolved, ambiguous, or unresolved so the assistant does not guess.

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>",
      "dimension": "<dimension>",
      "code": "<code>"
    },
    "name": "resolve_hierarchy"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
flowRefYes
dimensionYes

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 are supplied, so the description carries the full burden. It does disclose the meaningful behavioral trait that the call returns a tri-state outcome (resolved/ambiguous/unresolved) rather than silently picking one, which prevents hallucinated hierarchies. However, it says nothing about whether the tool is read-only, whether 'ambiguous' returns a candidate list, or what happens for unknown flows, leaving real behavioral gaps.

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 with no filler, and the core action is front-loaded before the rationale clause. The second sentence earns its place by explaining why the tri-state return matters, though 'so the assistant does not guess' is slightly meta framing rather than tool-specific detail.

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 the resolved/ambiguous/unresolved payloads need not be explained in prose. But with zero annotation coverage and zero parameter documentation, the description leaves the identifier formats and the practical consequence of an 'ambiguous' result unstated — gaps an agent would notice on first invocation.

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% for three required parameters. The phrase 'flow dimension/code' loosely maps to dimension and code, but adds no format, casing, or identifier-type guidance, and flowRef — arguably the most error-prone parameter — is not explained at all (ID vs. URN vs. name, or what an 'agency hierarchy' reference looks like).

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 names a specific verb and resource: resolving an agency hierarchy for a flow dimension/code, plus the qualifier 'best' indicating selection among candidates. That is clearer than a generic 'resolve' tool, but it never distinguishes itself from nearby siblings such as resolve_dimension_fallback or resolve_ref_area_fallback, which an agent would have to inspect separately to disambiguate.

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?

'so the assistant does not guess' implies the intended moment of use (resolve before asserting a hierarchy), but it never states when not to use it, what to do with an ambiguous result, or which alternative tools handle fallback resolution. Usage is implied rather than specified.

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