KosmoKrator

data

World Bank CLI for AI Agents

Use the World Bank CLI from KosmoKrator to call World Bank tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

6 functions 6 read 0 write No credentials auth

World Bank CLI Setup

World Bank can be configured headlessly with `kosmokrator integrations:configure worldbank`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure worldbank --enable --read allow --write ask --json
kosmokrator integrations:doctor worldbank --json
kosmokrator integrations:status --json

Credentials

Authentication type: No credentials none. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

No credentials are required.

Call World Bank Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call worldbank.worldbank_countries '{
  "query": "example_query",
  "region": "example_region",
  "income_level": "example_income_level"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:worldbank worldbank_countries '{
  "query": "example_query",
  "region": "example_region",
  "income_level": "example_income_level"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs worldbank --json
kosmo integrations:docs worldbank.worldbank_countries --json
kosmo integrations:schema worldbank.worldbank_countries --json
kosmo integrations:search "World Bank" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to World Bank.

worldbank.worldbank_countries

Read read

List or search countries from the World Bank. Optional query filters by name. Filter by region (EAS, ECS, LCN, MEA, NAC, SAS, SSF) or income level (HIC, UMC, LMC, LIC).

Parameters
query, region, income_level

Generic CLI call

kosmo integrations:call worldbank.worldbank_countries '{"query":"example_query","region":"example_region","income_level":"example_income_level"}' --json

Provider shortcut

kosmo integrations:worldbank worldbank_countries '{"query":"example_query","region":"example_region","income_level":"example_income_level"}' --json

worldbank.worldbank_indicators

Read read

Search economic indicators by keyword. If no query is provided, returns common indicators. Use the indicator code with `worldbank_get_data` to fetch data. Common indicator codes: {$indicators}

Parameters
query

Generic CLI call

kosmo integrations:call worldbank.worldbank_indicators '{"query":"example_query"}' --json

Provider shortcut

kosmo integrations:worldbank worldbank_indicators '{"query":"example_query"}' --json

worldbank.worldbank_topics

Read read

List the 21 World Bank topic categories (e.g., Education, Health, Economy). Optionally provide a topic ID to list indicators in that topic.

Parameters
topic_id

Generic CLI call

kosmo integrations:call worldbank.worldbank_topics '{"topic_id":"example_topic_id"}' --json

Provider shortcut

kosmo integrations:worldbank worldbank_topics '{"topic_id":"example_topic_id"}' --json

worldbank.worldbank_country_info

Read read

Get detailed information for a specific country by ISO code, including region, income level, lending type, capital city, and coordinates.

Parameters
code

Generic CLI call

kosmo integrations:call worldbank.worldbank_country_info '{"code":"example_code"}' --json

Provider shortcut

kosmo integrations:worldbank worldbank_country_info '{"code":"example_code"}' --json

worldbank.worldbank_get_data

Read read

Fetch economic indicator data for one or more countries from the World Bank. Supports date ranges and most-recent-value mode. Use `worldbank_indicators` to find indicator codes and `worldbank_countries` to find ISO codes.

Parameters
indicator, countries, date_range, mrnev, per_page

Generic CLI call

kosmo integrations:call worldbank.worldbank_get_data '{"indicator":"example_indicator","countries":"example_countries","date_range":"example_date_range","mrnev":"example_mrnev","per_page":"example_per_page"}' --json

Provider shortcut

kosmo integrations:worldbank worldbank_get_data '{"indicator":"example_indicator","countries":"example_countries","date_range":"example_date_range","mrnev":"example_mrnev","per_page":"example_per_page"}' --json

worldbank.worldbank_compare_data

Read read

Compare a single economic indicator across multiple countries. Returns the most recent value for each country side-by-side. Use `worldbank_indicators` to find indicator codes.

Parameters
indicator, countries, date_range

Generic CLI call

kosmo integrations:call worldbank.worldbank_compare_data '{"indicator":"example_indicator","countries":"example_countries","date_range":"example_date_range"}' --json

Provider shortcut

kosmo integrations:worldbank worldbank_compare_data '{"indicator":"example_indicator","countries":"example_countries","date_range":"example_date_range"}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

worldbank.worldbank_countries

List or search countries from the World Bank. Optional query filters by name. Filter by region (EAS, ECS, LCN, MEA, NAC, SAS, SSF) or income level (HIC, UMC, LMC, LIC).

Operation
Read read
Schema command
kosmo integrations:schema worldbank.worldbank_countries --json
ParameterTypeRequiredDescription
query string no Search query — country name or ISO code to filter results.
region string no Filter by region code: EAS (East Asia), ECS (Europe & Central Asia), LCN (Latin America), MEA (Middle East), NAC (North America), SAS (South Asia), SSF (Sub-Saharan Africa).
income_level string no Filter by income level: HIC (High), UMC (Upper Middle), LMC (Lower Middle), LIC (Low).

worldbank.worldbank_indicators

Search economic indicators by keyword. If no query is provided, returns common indicators. Use the indicator code with `worldbank_get_data` to fetch data. Common indicator codes: {$indicators}

Operation
Read read
Schema command
kosmo integrations:schema worldbank.worldbank_indicators --json
ParameterTypeRequiredDescription
query string no Search keyword for indicators (e.g. "GDP", "inflation", "education"). If omitted, returns common indicators.

worldbank.worldbank_topics

List the 21 World Bank topic categories (e.g., Education, Health, Economy). Optionally provide a topic ID to list indicators in that topic.

Operation
Read read
Schema command
kosmo integrations:schema worldbank.worldbank_topics --json
ParameterTypeRequiredDescription
topic_id string no Topic ID to list indicators for that topic. Omit to see all available topics.

worldbank.worldbank_country_info

Get detailed information for a specific country by ISO code, including region, income level, lending type, capital city, and coordinates.

Operation
Read read
Schema command
kosmo integrations:schema worldbank.worldbank_country_info --json
ParameterTypeRequiredDescription
code string yes ISO country code (e.g. "US", "CN", "DE").

worldbank.worldbank_get_data

Fetch economic indicator data for one or more countries from the World Bank. Supports date ranges and most-recent-value mode. Use `worldbank_indicators` to find indicator codes and `worldbank_countries` to find ISO codes.

Operation
Read read
Schema command
kosmo integrations:schema worldbank.worldbank_get_data --json
ParameterTypeRequiredDescription
indicator string yes World Bank indicator code (e.g. "NY.GDP.MKTP.CD", "SP.POP.TOTL"). Use worldbank_indicators to find codes.
countries string no Semicolon-separated ISO country codes (e.g. "US;CN;DE"). Use "all" for global data (default).
date_range string no Date range filter (e.g. "2020:2023", "2023", "2000:2023"). Omit to use mrnev (most recent value).
mrnev string no Number of most recent non-empty values to return per country (default: "1" when no dateRange).
per_page string no Number of results per page (default: "100", max: 500).

worldbank.worldbank_compare_data

Compare a single economic indicator across multiple countries. Returns the most recent value for each country side-by-side. Use `worldbank_indicators` to find indicator codes.

Operation
Read read
Schema command
kosmo integrations:schema worldbank.worldbank_compare_data --json
ParameterTypeRequiredDescription
indicator string yes World Bank indicator code (e.g. "NY.GDP.MKTP.CD", "SP.POP.TOTL"). Use worldbank_indicators to find codes.
countries string yes Semicolon-separated ISO country codes (e.g. "US;CN;DE;JP").
date_range string no Date range filter (e.g. "2020:2023"). Omit to get most recent value per country.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.