Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Build Key

build_key

Converts human-friendly dimension selections into an SDMX key string for querying data by flow reference. Pass dimension names mapped to one value or a list of values.

Instructions

Build an SDMX key string from human-friendly dimension selections. Pass a mapping of dimension names to a single value or list of values.

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

Input Schema

NameRequiredDescriptionDefault
flowRefYes
selectionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.7/5.0
Behavior2/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 and does not meet it: it never says whether the key respects SDMX dimension ordering, whether missing dimensions become wildcards, whether values are validated against codelists, or whether the operation is pure/non-mutating. "Human-friendly" hints that labels may be resolved to codes, but that is never stated.

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 tight sentences, front-loaded with the purpose and followed by the one input hint that matters. Nothing is redundant, though the second sentence effectively substitutes for the documentation that the other dimensions needed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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, but for a tool whose whole job is producing a positional SDMX key the definition omits the required flowRef, key ordering, wildcard handling, and error behavior. That leaves meaningful gaps for a two-parameter tool with no annotations and no schema descriptions.

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%, so both parameters are undocumented in the schema. The description partially compensates by explaining `selections` as a mapping of dimension names to a single value or list of values, but the required `flowRef` parameter is never mentioned at all, and nothing is said about accepted value formats or dimension-name casing.

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 output artifact ("Build an SDMX key string") and the input concept (dimension selections), which is far more informative than the tautological title. It stops short of distinguishing itself from siblings such as plan_query or validate_query_scope, so an agent must infer where key-building ends and query planning begins.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no prerequisite (e.g., needing a flowRef or knowing dimension IDs first), and no mention of alternatives like plan_query or query_data. The agent can only infer from the name that this is a preparatory step before querying.

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