Skip to main content
Glama
nescoffee-create

SDMX MCP Gateway

build_key

Build a correctly formatted SDMX key from dimension values, ordering dimensions per dataflow structure. Leave unspecified dimensions empty to request all values, preparing valid keys for data URL creation.

Instructions

Build a properly formatted SDMX key from dimension values.

This helper tool constructs the key string with dimensions in the correct order
according to the dataflow structure. Unspecified dimensions are left empty
(meaning "all values").

Use this before build_data_url() to ensure your key has the correct format.

Args:
    dataflow_id: The dataflow identifier
    filters: Optional dict mapping dimension IDs to values
    agency_id: The agency (uses session endpoint if not specified)
    endpoint: Optional endpoint key (e.g. "FBOS", "ECB") to target a
        specific provider for this call only. Defaults to the session's
        current endpoint.

Returns:
    Structured result with the constructed key and usage information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filtersNo
endpointNo
agency_idNo
dataflow_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesConstructed SDMX key
usageYesHow to use this key
versionYesResolved dataflow version
dataflow_idYesDataflow identifier
key_templateYesTemplate showing dimension positions
dimensions_usedYesDimension values that were specified
dimensions_wildcardYesDimensions left as wildcard (all values)
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: 'Unspecified dimensions are left empty (meaning "all values")' and 'constructs the key string with dimensions in the correct order according to the dataflow structure.' It also mentions the structured result. However, it does not disclose error handling or validation behavior (e.g., what happens if a dimension value is invalid), which would have made it fully transparent. Hence a 4 rather than 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a concise introduction, a key behavioral note, an explicit usage direction, and a formatted Args list. Every sentence adds value; there is no fluff or repetition. It is appropriately sized for a non-trivial helper tool.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's role as a helper, the description covers its purpose, usage sequence relative to build_data_url, handling of unspecified dimensions, and return value. The output schema exists, so the description need not detail the return structure. It is suitably complete for an agent to invoke it correctly.

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

Parameters5/5

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

Despite 0% schema description coverage, the description includes an Args section that richly explains each parameter: dataflow_id is 'the dataflow identifier', filters is 'Optional dict mapping dimension IDs to values', agency_id 'uses session endpoint if not specified', and endpoint is explained with examples ('FBOS', 'ECB') and defaulting behavior. This fully compensates for the schema's lack of descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Build a properly formatted SDMX key from dimension values' and elaborates that it 'constructs the key string with dimensions in the correct order.' This specific verb+resource distinguishes it from sibling tools like build_data_url and validate_query, especially with the explicit 'Use this before build_data_url()' guidance.

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

Usage Guidelines5/5

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

The description explicitly tells the agent when to use it: 'Use this before build_data_url() to ensure your key has the correct format.' It also clarifies optional endpoint and agency overrides, providing clear context for when to employ the tool versus alternatives. This is strong usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nescoffee-create/sdmx-mcp-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server