Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

List Codes

list_codes

Retrieve codes for a specific SDMX dimension, filter them by query, and optionally include hierarchy-aware hints that identify atomic, aggregate, or structurally ambiguous codes during discovery.

Instructions

List codes for a specific dimension, optionally filtered by a query string. Results can be enriched with hierarchy-aware hints so callers can see whether a code looks atomic, aggregate, or structurally ambiguous at discovery time.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
offsetNo
flowRefYes
dimensionYes
includeHierarchyHintsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

With no annotations, the description carries the full burden. It does disclose a non-obvious behavior — that results may include hierarchy-aware hints classifying codes as atomic, aggregate, or ambiguous — which is real value. But it is silent on pagination behavior (limit/offset defaults), permissions, error conditions, and cost, which matter for a 6-parameter listing tool.

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 front-loaded sentences with the core operation stated first, and no filler. The second sentence is a little wordy ("so callers can see whether a code looks...") but still earns its place by disclosing behavior.

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 described. Still, for a required-parameter listing tool with zero schema coverage and no annotations, the description leaves too much unspecified — notably pagination, the meaning of flowRef/dimension, and what a hierarchy hint looks like.

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% and the description explains only two things obliquely: a query-string filter and hierarchy hints. It never defines flowRef, dimension, limit, offset, or the fact that includeHierarchyHints defaults to true, leaving half a dozen parameters undocumented in both schema and prose.

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 concrete verb and resource: "List codes for a specific dimension," which tells an agent exactly what the tool returns. It does not differentiate itself from plausible siblings such as list_hierarchical_codelists or list_dimensions, so it stops short of a 5.

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 "at discovery time" implies the tool's role in a discovery workflow and hints at filtering via a query string. However, it never says when to use this versus resolve_hierarchy or list_hierarchical_codelists, and offers no exclusions or prerequisites.

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