Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Get Single Observation

get_single_observation

Retrieve one exact SDMX data point for a specified indicator, location, and period, returning a compact value payload instead of raw CSV.

Instructions

Compact exact-value tool.

Use this when the user asks for one indicator, one location, and one period/latest value. Prefer code-level filters when available. Otherwise provide subject/location/time text and the configured query-dimension policy will resolve them. Returns only a compact value payload; it does not return raw CSV. Set verbose=true to include all coded filter dimensions and provenance attributes.

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_single_observation"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNolatest
labelsNo
filtersNo
flowRefYes
subjectNo
verboseNo
locationNo
extraFiltersNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/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 meaningful behavior: the return is a compact value payload rather than raw CSV, and verbose=true expands output with coded filter dimensions and provenance, and unresolved text inputs are resolved by a configured policy. It says nothing about what happens on ambiguous or zero matches (error vs. first-match), permissions, or limits.

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?

Five short sentences, front-loaded with the usage trigger before implementation guidance. The opening fragment "Compact exact-value tool" is the weakest line, but no sentence is outright 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?

The output schema is present, so return values need not be detailed, and the description still usefully flags the compact-payload shape. However, for an 8-parameter, annotation-free tool with zero schema descriptions, key gaps remain around filters vs. extraFilters, labels, and the required flowRef.

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 description coverage is 0% across 8 parameters, so the description must compensate and it only partly does. It explains the resolution semantics of subject/location/time text versus code-level filters and the effect of verbose, but labels, extraFilters, the shape of filters, and the required flowRef are left entirely to the bare schema.

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?

"Compact exact-value tool" plus the usage sentence establishes that it retrieves a single observation value for one indicator, location, and period. The line "Returns only a compact value payload; it does not return raw CSV" distinguishes it from the bulk data-retrieval siblings, though no sibling is named explicitly.

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

Usage Guidelines4/5

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

It gives a concrete selection rule (one indicator + one location + one period/latest) and a preferred input strategy: code-level filters first, otherwise free-text subject/location/time resolved by the query-dimension policy. It lacks explicit when-not guidance, e.g. pointing to get_time_series for multiple periods or query_data for bulk retrieval.

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