Skip to main content
Glama
SDMX MCP

SDMX MCP

by unicef-drp

Plan Topic Query

plan_topic_query

Transforms topical questions about metrics into an indicator-first SDMX workflow, ranking indicator candidates and identifying required dimensions before dataflow queries.

Instructions

Plan a topical user question into an indicator-first SDMX workflow.

Use this as the first tool for questions about a phenomenon or metric such as stunting, wasting, mortality, literacy, vaccination, or similar subject-matter topics. This tool reads the configured query-dimension policy, highlights the highest-priority required dimension, and returns ranked indicator candidates before any flow-level query. Do not start with search_dataflows for topical questions unless the user explicitly asks for a dataset or dataflow by name.

For a one-country question, pass refArea; if no candidate has data the response says so.

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": {
      "question": "<question>"
    },
    "name": "plan_topic_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
refAreaNo
questionYes
flowLimitNo
flowQueryNo
indicatorLimitNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it does disclose real behavior: it reads the configured query-dimension policy, surfaces the highest-priority required dimension, returns ranked indicator candidates, and handles the empty-result case ('if no candidate has data the response says so'). It does not state that the tool is purely read-only or describe any cost/latency characteristics, which is a minor remaining gap given the output schema covers the response shape.

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?

Front-loaded with the action statement, then usage, then the negative routing rule, then a parameter tip — a sensible order. The middle sentences are dense but each carries routing information; the only slight redundancy is restating 'indicator-first' framing across two sentences.

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 exists, so return values need not be explained, and the workflow position and routing are well covered. However, for a five-parameter tool with zero schema coverage, leaving three tuning parameters (flowQuery, flowLimit, indicatorLimit) unexplained means an agent cannot confidently set them.

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% with five parameters, and the description only explains two of them: 'question' implicitly and 'refArea' explicitly ('For a one-country question, pass refArea'). flowQuery, flowLimit, and indicatorLimit are never mentioned, so their purpose and interaction (e.g., how flowQuery narrows the flow scan versus the indicator ranking) must be guessed from names alone.

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?

States a specific verb and resource ('Plan a topical user question into an indicator-first SDMX workflow') and immediately scopes the subject matter with concrete examples (stunting, wasting, mortality, literacy, vaccination). It also contrasts itself with the sibling search_dataflows, so an agent can distinguish it without opening a schema.

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?

Gives explicit positioning ('Use this as the first tool for questions about a phenomenon or metric') and an explicit exclusion with the condition that overrides it ('Do not start with search_dataflows ... unless the user explicitly asks for a dataset or dataflow by name'). This is when/when-not/alternative in three sentences.

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