Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Get Flow Structure

get_flow_structure

Retrieve an SDMX dataflow's structure, including dimensions and summarized codelists, to understand data organization before querying.

Instructions

Fetch a flow's structure. Large ones summarize codelists; use list_codes for 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>"
    },
    "name": "get_flow_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowRefYes

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 burden. It does disclose one genuine behavioral trait: large flows return summarized codelists rather than full ones — useful for anticipating truncated output. It says nothing about permissions, cost, or what happens to codelist detail in the summarized case beyond the redirect to list_codes.

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 purpose and immediately followed by the caveat and the alternative. The telegraphic style ('Large ones summarize codelists') is efficient but borders on ambiguous — 'ones' requires the reader to infer flows.

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 shape needn't be explained, and the summarization caveat is the key thing an agent must know. Still, with zero annotation coverage and zero parameter documentation, the definition leaves the agent without any hint on obtaining a valid flowRef or on how summarized output differs structurally.

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?

One required parameter (flowRef) at 0% schema description coverage, and the description adds no meaning: no format, no source of valid refs, no mention of where to obtain one (e.g. search_dataflows). The name is self-evident but that is all the agent gets.

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?

"Fetch a flow's structure" gives a specific verb (fetch) and resource (flow structure), and the second clause distinguishes the output mode from list_codes. It does not differentiate from describe_flow, and 'structure' itself is left unelaborated.

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?

It explicitly routes code lookups to list_codes, which is real when-to-use guidance. But it gives no guidance on when to prefer this over describe_flow or other flow-related siblings, and no preconditions are stated.

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