How to Use IMF economic observations in Grok
Returns observations from an IMF dataset, such as consumer price indexes or historical exchange rates. Use it to retrieve the figures for a country and period after identifying the dataset and series.
Prompts to try with IMF economic observations in Grok
Copy an example into Grok, or ask in your own words.
Use IMF economic observations to show US inflation observations from 2020 through 2024, with the measure and period beside each value.
Use IMF economic observations to look this up and give me the result as a table.
Pull the latest numbers from IMF economic observations and tell me what changed since last week.
Check IMF economic observations and summarize what you find in three bullet points.
Pull the newest data from IMF economic observations and give me the result as a table.
How to set up IMF economic observations in Grok
Pick the way that suits you. Each takes about two minutes.
Use the Grok connector
- Add a custom connector
In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.
- Check that it is connected
Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.
Use the Spiral skill
- Send Grok this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run IMF economic observations
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "data-imf-org/datasets/data", "input": { "dataflow_id": "<dataflow_id>" } }'
Then paste one of the prompts above: Grok finds IMF economic observations on Spiral, shows the price and runs it.
IMF economic observations providers and prices
Spiral runs IMF economic observations through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Grok for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page size | 1 to 1000 | 100 | page_size |
| Last n observations | 1 to 10000 | last_n_observations |
Every API field of IMF Data · Data is on its tool page: open its card above.
What can you do with IMF economic observations in Grok?
Prepare a sourced economic comparison of Brazil and Mexico using IMF definitions and figures. A chat app can find suitable datasets, explain their metadata, and present historical observations or WEO projections in a readable table.
Country growth comparison
Find the relevant IMF datasets, inspect their series definitions, and compare annual growth figures for the United States, Germany, and Japan. Add WEO projections from a single edition to extend the comparison.
Inflation research brief
Identify IMF inflation datasets and their available series, retrieve historical observations, and add WEO inflation projections for Brazil and Mexico. Label the historical measures and projected measures separately.
Fiscal comparison for a budget review
Locate fiscal datasets and inspect definitions before comparing government indicators for France, Italy, and Spain. Retrieve historical values and WEO projections for the measures available across all three countries.
External balance briefing
Find balance-of-payments datasets, check current-account series definitions, and retrieve historical observations for India and Indonesia. Add WEO current-account projections to show the outlook alongside the history.
Dataset coverage assessment
Search IMF sources for a proposed comparison of Canada, Australia, and Japan. Inspect their dimensions and available series, then retrieve sample observations to establish which comparisons the data supports.
More on IMF economic observations and Grok
Overview
IMF economic observations in other agents
Questions about IMF economic observations in Grok
Can Grok use IMF economic observations?
Yes. Add Spiral to Grok as an MCP server, and Grok can find and run IMF economic observations like any built-in tool.
How much does IMF economic observations cost in Grok?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.
Do I need an Alexandria account to use IMF economic observations in Grok?
No. Spiral runs IMF economic observations on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up IMF economic observations in Grok?
About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.
Does Grok wait while IMF economic observations runs?
IMF economic observations runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.
How often does IMF update WEO?
The full WEO database is published twice a year, in April and October. Use its edition to identify the forecast exercise behind the figures.
How far back does WEO go, and how far ahead does it forecast?
WEO history starts in 1980. Many indicators and country groups have five-year forecasts, while some have only two forecast years.
Does every country have a complete WEO history?
No. Some countries have incomplete or unavailable observations for certain years, so a country comparison may have gaps even within WEO's coverage period.
What economic subjects does WEO cover?
WEO includes national accounts, inflation, unemployment, balance of payments, fiscal indicators, and trade. It provides country figures and country-group aggregates.
Why can valid IMF codes still return no observations?
SDMX datasets need not contain every possible combination of dimension codes. Availability constraints identify which combinations are present, so valid country and indicator codes alone do not establish coverage.
Start using IMF economic observations in Grok
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Grok:
set up https://spiral.ai/SKILL.md


