suggest_nonempty_queries
Recovers empty SDMX queries by suggesting nearby non-empty alternatives, relaxing one filter at a time and ranking results by minimal deviation from the original query.
Instructions
Suggest nearby non-empty SDMX queries when the original returns no data.
Given an exact query that may be empty, explores bounded relaxations —
removing one filter at a time — and returns validated alternatives ranked
by minimal deviation from the original.
Args:
data_url: The exact SDMX data URL to recover from
relax_dimensions: Only relax these dimensions (None = try all)
max_suggestions: Maximum number of suggestions to return
max_probes: Maximum HTTP probes to make (budget)
strategy: Recovery strategy (currently only least_change)
intent_hint: One of generic, kpi, timeseries, ranking, map
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:
Suggestion result with ranked non-empty alternatives
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_url | Yes | ||
| endpoint | No | ||
| strategy | No | least_change | |
| max_probes | No | ||
| intent_hint | No | generic | |
| max_suggestions | No | ||
| relax_dimensions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Diagnostic notes | |
| probes_used | No | Number of probes consumed | |
| suggestions | No | Ranked non-empty alternatives | |
| original_status | Yes | Probe status of the original query | |
| original_query_fingerprint | No | Fingerprint of original |