Skip to main content
Glama

get_sdmx_structure

Read-only

A table's dimensions in key order with their codes (id, name, parent). Use search to find the codes for labels like 'Ontario' instead of guessing.

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": {
      "productId": "<productId>"
    },
    "name": "get_sdmx_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
searchNoReturn only codes whose name contains this text (case-insensitive), across all dimensions, e.g. 'Ontario'. Separate several terms with ';'.
dimensionNoKey position: return every code of that dimension (default: first 10 per dimension), plus leaf_key, its lowest-level codes as a '+' OR.
productIdYes8-digit table id (table 18-10-0004-01 → 18100004).

Output Schema

NameRequiredDescriptionDefault
_sdmx_urlYes
productIdYes
dimensionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • addedInput schema / properties / dimension
      Added value: +{
      +  "description": "Key position: return every code of that dimension (default: first 10 per dimension), plus leaf_key, its lowest-level codes as a '+' OR.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / productId / description
      Added value: +"8-digit table id (table 18-10-0004-01 → 18100004)."
    • removedInput schema / properties / productId / title
      Removed value: -"Productid"
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "Return only codes whose name contains this text (case-insensitive), across all dimensions, e.g. 'Ontario'. Separate several terms with ';'.",
      +  "type": "string"
      +}
    • removedOutput schema / $defs
      Removed value: -{
      -  "SDMXCode": {
      -    "additionalProperties": true,
      -    "properties": {
      -      "id": {
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "name": {
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "parent": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Parent code id in the hierarchy, if any.",
      -        "title": "Parent"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name"
      -    ],
      -    "title": "SDMXCode",
      -    "type": "object"
      -  },
      -  "SDMXDimension": {
      -    "additionalProperties": true,
      -    "properties": {
      -      "_code_count": {
      -        "title": "Code Count",
      -        "type": "integer"
      -      },
      -      "_message": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Message"
      -      },
      -      "_truncated": {
      -        "title": "Truncated",
      -        "type": "boolean"
      -      },
      -      "codelist": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Codelist"
      -      },
      -      "codes": {
      -        "items": {
      -          "$ref": "#/$defs/SDMXCode"
      -        },
      -        "title": "Codes",
      -        "type": "array"
      -      },
      -      "id": {
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "name": {
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "position": {
      -        "description": "1-based slot in the dot-separated key.",
      -        "title": "Position",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "position",
      -      "codes",
      -      "_code_count",
      -      "_truncated"
      -    ],
      -    "title": "SDMXDimension",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / _sdmx_url / title
      Removed value: -"Sdmx Url"
    • removedOutput schema / properties / dimensions / items / $ref
      Removed value: -"#/$defs/SDMXDimension"
    • addedOutput schema / properties / dimensions / items / additionalProperties
      Added value: +true
    • addedOutput schema / properties / dimensions / items / type
      Added value: +"object"
    • removedOutput schema / properties / dimensions / title
      Removed value: -"Dimensions"
    • removedOutput schema / properties / name
      Removed value: -{
      -  "title": "Name",
      -  "type": "string"
      -}
    • removedOutput schema / properties / productId / title
      Removed value: -"Productid"
    • changedOutput schema / required
      Previous value: -[
      -  "name",
      -  "productId",
      -  "dimensions",
      -  "_sdmx_url"
      -]New value: +[
      +  "productId",
      +  "dimensions",
      +  "_sdmx_url"
      +]
    • removedOutput schema / title
      Removed value: -"SDMXStructureOutput"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description adds that dimensions come back in key order with hierarchical id/name/parent codes, which is useful structure beyond the annotations, but it says nothing about default truncation (first 10 per dimension), error behavior, or cost.

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 return shape and ending with an actionable tip. The opening is a fragment, but nothing is wasted and there is no filler.

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?

With an output schema, full parameter coverage, and read-only annotations, the essentials are present. What is missing is the relational context an agent needs in a five-tool family: how this structure lookup feeds into get_sdmx_data or get_series_info, and how it differs from search_cubes_by_title.

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

Parameters3/5

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

Schema coverage is 100%, so all three parameters are already documented, including the ';' separator and the dimension default of 10 per dimension. The description only reinforces the search use case ('instead of guessing') without adding format or constraint detail beyond the schema, so the baseline 3 applies.

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 states a specific resource and return shape: a table's dimensions in key order, each with codes carrying id, name and parent. That is enough to distinguish it from get_sdmx_data (which fetches values) and search_cubes_by_title (which finds tables), though the tool verb itself is only implied by the name.

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 gives real guidance for one case: use the search parameter to resolve labels like 'Ontario' rather than guessing code ids. It says nothing about when to choose this tool over get_series_info or get_sdmx_data, so the sibling-selection guidance is only implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.