[Integrations](https://spiral.ai/integrations) › [Windsurf](https://spiral.ai/integrations/windsurf) › [IMF economic observations](https://spiral.ai/integrations/windsurf/imf-economic-observations)

# How to Use IMF economic observations in Windsurf

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.

|  |  |
| --- | --- |
| Model | IMF economic observations |
| 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 economic observations in Windsurf

- Use IMF economic observations to retrieve US inflation observations for 2020 through 2024, preserving the returned measure labels and periods in a CSV for this project.
- Use IMF economic observations to look this up and give me the result as a table. Save the result in ./assets.
- 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 Windsurf

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

### Use Spiral's MCP server

1. **Add the server**: Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: `~/.config/devin/mcp_config.json` on macOS and Linux, `%APPDATA%\devin\mcp_config.json` on Windows. Add this:

```json
{
  "mcpServers": {
    "spiral": {
      "url": "https://api.spiral.ai/mcp"
    }
  }
}
```

2. **Sign in**: Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

```bash
devin mcp login spiral
```

3. **Check it**: Spiral is listed under This computer in Customize › MCPs. From the terminal:

```bash
devin mcp list
```

### Use the Spiral skill

1. **Send Windsurf 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 economic observations**: 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/data",
    "input": {
      "dataflow_id": "<dataflow_id>"
    }
  }'
```

Then paste one of the prompts above: Windsurf finds IMF economic observations on Spiral, shows the price and runs it.

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

## IMF economic observations tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| key |  | — | Dimension -> codes. Dimension names follow the structure (COUNTRY, INDICATOR, FREQUENCY, COUNTERPART_COUNTRY, UNIT, ...); REF_AREA, FREQ and COUNTERPART_AREA are accepted aliases. Omitted dimensions are wildcards. |
| cursor |  | — | cursor |
| page_size | 1 to 1000 | 100 | page_size |
| end_period |  | — | end_period |
| start_period |  | — | SDMX period: 2020, 2024-Q1, 2025-01. |
| last_n_observations | 1 to 10000 | — | last_n_observations |

## What can you do with IMF economic observations in Windsurf?

Build a country comparison table with IMF series definitions beside the figures. A coding agent can turn dataset discovery, metadata, observations, or WEO projections into documented inputs for your project's analysis.

### 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.

## Overview

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

## IMF economic observations in other agents

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

## More Windsurf guides

- [IMF dataset structure](https://spiral.ai/integrations/windsurf/imf-dataset-structure)
- [Japan MOF government bond yields](https://spiral.ai/integrations/windsurf/japan-mof-government-bond-yields)
- [IMF dataset search](https://spiral.ai/integrations/windsurf/imf-dataset-search)
- [Japan MOF sanctions list](https://spiral.ai/integrations/windsurf/japan-mof-sanctions-list)
- [IMF World Economic Outlook forecasts](https://spiral.ai/integrations/windsurf/imf-world-economic-outlook-forecasts)
- [Japan MOF sanctions name search](https://spiral.ai/integrations/windsurf/japan-mof-sanctions-name-search)

## Questions about IMF economic observations in Windsurf

**Can Windsurf use IMF economic observations?**

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run IMF economic observations like any built-in tool.

**How much does IMF economic observations cost in Windsurf?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.

**Do I need an Alexandria account to use IMF economic observations in Windsurf?**

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 Windsurf?**

About two minutes: add the server, then sign in, then check it.

**Does Windsurf wait while IMF economic observations runs?**

IMF economic observations runs in the background. Windsurf 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.

