data
World Bank CLI for Headless Automation
Use the World Bank CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
6 functions 6 read 0 write No credentials auth
World Bank CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The World Bank CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# World Bank CLI for Headless Automation
kosmokrator integrations:configure worldbank --enable --read allow --write ask --json
kosmo integrations:call worldbank.worldbank_countries '{"query":"example_query","region":"example_region","income_level":"example_income_level"}' --json Discovery Before Execution
Agents and scripts can inspect World Bank docs and schemas 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 Useful World Bank CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
worldbank.worldbank_countries | Read | query, region, income_level | 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). |
worldbank.worldbank_indicators | Read | query | 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} |
worldbank.worldbank_topics | Read | topic_id | List the 21 World Bank topic categories (e.g., Education, Health, Economy). Optionally provide a topic ID to list indicators in that topic. |
worldbank.worldbank_country_info | Read | code | Get detailed information for a specific country by ISO code, including region, income level, lending type, capital city, and coordinates. |
worldbank.worldbank_get_data | Read | indicator, countries, date_range, mrnev, per_page | 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. |
worldbank.worldbank_compare_data | Read | indicator, countries, date_range | 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. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.