[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [IMF dataset structure](https://spiral.ai/integrations/grok/imf-dataset-structure)

# How to Use IMF dataset structure in Grok

Returns the dimensions, concepts, and codes that describe an IMF dataset. Use it to understand a series and check available country, indicator, and frequency combinations before retrieving figures.

|  |  |
| --- | --- |
| Model | IMF dataset structure |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with IMF dataset structure in Grok

- Use IMF dataset structure to explain the dimensions and available country codes in WEO, focusing on Canada and Australia.
- Use IMF dataset structure to look this up and give me the result as a table.
- Pull the latest numbers from IMF dataset structure and tell me what changed since last week.
- Check IMF dataset structure and summarize what you find in three bullet points.
- Pull the newest data from IMF dataset structure and give me the result as a table.

## How to set up IMF dataset structure in Grok

Pick the way that suits you. Each takes about two minutes.

### Use the Grok connector

1. **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.

```text
https://api.spiral.ai/mcp
```

2. **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.

3. **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

1. **Send Grok this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run IMF dataset structure**: One request; the result comes back by polling or a webhook.

```bash
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/structure",
    "input": {
      "dataflow_id": "<dataflow_id>"
    }
  }'
```

Then paste one of the prompts above: Grok finds IMF dataset structure on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok

## IMF dataset structure tools and prices

- [IMF Data · Structure](https://spiral.ai/tools/alexandria/data-imf-org/datasets/structure) (Alexandria): $0.00873 per call.

## What can you do with IMF dataset structure 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.

### WEO forecast revision review

Locate WEO releases, inspect indicator definitions, and compare US and German growth projections between the April 2025 and October 2025 editions. Show the change for the same forecast year.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Grok guides](https://spiral.ai/integrations/grok)

## IMF dataset structure in other agents

- [Amp](https://spiral.ai/integrations/amp/imf-dataset-structure)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/imf-dataset-structure)
- [Claude](https://spiral.ai/integrations/claude-desktop/imf-dataset-structure)
- [Claude Code](https://spiral.ai/integrations/claude-code/imf-dataset-structure)
- [Cline](https://spiral.ai/integrations/cline/imf-dataset-structure)
- [Codex](https://spiral.ai/integrations/codex/imf-dataset-structure)
- [Cursor](https://spiral.ai/integrations/cursor/imf-dataset-structure)
- [Devin](https://spiral.ai/integrations/devin/imf-dataset-structure)
- [dots](https://spiral.ai/integrations/dots/imf-dataset-structure)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/imf-dataset-structure)
- [Gemini](https://spiral.ai/integrations/gemini/imf-dataset-structure)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/imf-dataset-structure)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/imf-dataset-structure)
- [goose](https://spiral.ai/integrations/goose/imf-dataset-structure)
- [Grok Build](https://spiral.ai/integrations/grok-build/imf-dataset-structure)
- [Hermes](https://spiral.ai/integrations/hermes/imf-dataset-structure)
- [Instinct](https://spiral.ai/integrations/instinct/imf-dataset-structure)
- [Manus](https://spiral.ai/integrations/manus/imf-dataset-structure)
- [Muse](https://spiral.ai/integrations/muse/imf-dataset-structure)
- [Muse Code](https://spiral.ai/integrations/muse-code/imf-dataset-structure)
- [n8n](https://spiral.ai/integrations/n8n/imf-dataset-structure)
- [Notion](https://spiral.ai/integrations/notion/imf-dataset-structure)
- [OpenClaw](https://spiral.ai/integrations/openclaw/imf-dataset-structure)
- [opencode](https://spiral.ai/integrations/opencode/imf-dataset-structure)
- [Perplexity](https://spiral.ai/integrations/perplexity/imf-dataset-structure)
- [Raycast](https://spiral.ai/integrations/raycast/imf-dataset-structure)
- [VS Code](https://spiral.ai/integrations/vscode/imf-dataset-structure)
- [Windsurf](https://spiral.ai/integrations/windsurf/imf-dataset-structure)
- [Zapier](https://spiral.ai/integrations/zapier/imf-dataset-structure)

## More Grok guides

- [IMF dataset search](https://spiral.ai/integrations/grok/imf-dataset-search)
- [IMF economic observations](https://spiral.ai/integrations/grok/imf-economic-observations)
- [IMF World Economic Outlook forecasts](https://spiral.ai/integrations/grok/imf-world-economic-outlook-forecasts)
- [Japan MOF government bond yields](https://spiral.ai/integrations/grok/japan-mof-government-bond-yields)
- [IBGE statistical table search](https://spiral.ai/integrations/grok/ibge-statistical-table-search)
- [Japan MOF sanctions list](https://spiral.ai/integrations/grok/japan-mof-sanctions-list)

## Questions about IMF dataset structure in Grok

**Can Grok use IMF dataset structure?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run IMF dataset structure like any built-in tool.

**How much does IMF dataset structure 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 dataset structure in Grok?**

No. Spiral runs IMF dataset structure 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 dataset structure 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 dataset structure runs?**

IMF dataset structure 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.

