Spiral gives your agent every tool with one account. Browse the tools →

Factory Droid · Finance

How to Use World Bank indicator observations in Factory Droid

Returns indicator values for countries or aggregate areas across reporting periods. Use it for statistical tables and comparisons once you have chosen the measures and economies.

Prompts to try with World Bank indicator observations in Factory Droid

Copy an example into Factory Droid, or ask in your own words.

Use World Bank indicator observations to look this up and give me the result as a table. Save the result in ./assets.

World Bank indicator observationsFactory Droid
Try asking
  • Pull the latest numbers from World Bank indicator observations and tell me what changed since last week.

  • Check World Bank indicator observations and summarize what you find in three bullet points.

  • Pull the newest data from World Bank indicator observations and give me the result as a table.

  • Check World Bank indicator observations every morning and tell me only when something changed.

How to set up World Bank indicator observations in Factory Droid

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

Use Spiral's MCP server

  1. Add the server

    Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.

    droid mcp add spiral https://api.spiral.ai/mcp --type http
  2. Sign in

    Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

  3. Check it

    Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.

    droid mcp list

Use the Spiral skill

  1. Send Factory Droid 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run World Bank indicator 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-worldbank-org/indicators/data",
        "input": {
          "indicator_ids": [
            "<indicator_ids>"
          ]
        }
      }'

Then paste one of the prompts above: Factory Droid finds World Bank indicator observations on Spiral, shows the price and runs it.

World Bank indicator observations providers and prices

Spiral runs World Bank indicator observations through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
World Bank Data · Data
data-worldbank-org/indicators/data

Settings you can ask for

Ask Factory Droid for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Mrv1 to 10000

Most recent N periods with a value per series. Exclusive with date.

Page1 to 100001

1-based page number; pass next_page from the previous output to continue.

Gapfillon or off

With mrv: carry the latest earlier value into periods with no value.

Footnoteon or off

Ask upstream for per-observation footnotes.

Per page1 to 100050

Rows per page (upstream per_page).

Every API field of World Bank Data · Data is on its tool page: open its card above.

What can you do with World Bank indicator observations in Factory Droid?

Build a country research browser with World Bank classifications, indicator descriptions, and labeled statistical observations. A coding agent can use the returned records to populate selectors and connect each displayed measure to its statistical documentation.

Build a country market brief

Define a comparison set for Brazil, Mexico, and Chile, verify their classifications, select economic measures, and assemble a table with the selected indicators' definitions.

Check statistics for a published article

Verify Brazil's identity and a population measure's definition, inspect methodological notes, and compare indicator observations with observations labeled by database dimensions.

Compare an economy with a regional benchmark

Check Brazil's regional classification, identify the corresponding aggregate, and compare country and regional observations with their dimension labels.

Validate a population data import

Check India's country record and population definition, inspect source notes, and reconcile indicator observations with database observations after resolving their dimension labels.

Questions about World Bank indicator observations in Factory Droid

Can Factory Droid use World Bank indicator observations?

Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run World Bank indicator observations like any built-in tool.

How much does World Bank indicator observations cost in Factory Droid?

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

Do I need an Alexandria account to use World Bank indicator observations in Factory Droid?

No. Spiral runs World Bank indicator 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 World Bank indicator observations in Factory Droid?

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

Does Factory Droid wait while World Bank indicator observations runs?

World Bank indicator observations runs in the background. Factory Droid starts the run, checks on it and gives you the json when it's ready.

How broad is World Bank development data coverage?

The World Bank's December 2024 selection guide describes World Development Indicators as covering over 1,400 indicators and 217 economies, with history reaching 1960. Those figures describe WDI, rather than every database available through the World Bank.

Does every country have a value for every year?

No. Some World Bank indicators come from sporadic surveys and are available only every few years, so country and year coverage varies by measure.

Can I get regional statistics as well as country statistics?

Yes. World Bank aggregate observations cover regions, income levels, and lending groups. Their codes can be used in the country position of a data request.

Does a single response contain all matching results?

Not necessarily. The upstream World Bank API defaults to 50 results per page, so larger selections require additional pages.

Where can I check what a statistic actually measures?

World Bank statistical metadata can include a long definition, sources, periodicity, and methodology. Indicator records also identify the source organization and source database.

Get started

Start using World Bank indicator observations in Factory Droid

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Factory Droid:

Set up Factory Droid

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options