Utility functions for World Bank economic data integration.
Provides EU member state → World Bank country code mapping,
CSV parsing for MCP responses, indicator formatting, and economic
context building for EU Parliament article enrichment.
Functions in this module are designed to be stateless and avoid observable
side effects, with the exception of explicitly recording metadata such as
data timestamps in returned objects.
⚠️ For AI Agents / Agentic Workflows
The constants below (POLICY_INDICATORS, EU_COUNTRY_CODES,
COMPARISON_COUNTRIES) are a convenience subset used by TypeScript
code for formatting and parsing. They do NOT represent the full World Bank
indicator inventory.
For indicator selection in articles and analysis:
Read analysis/worldbank/indicator-catalog.md — 200+ indicators by EP policy domain
Use search-indicators MCP tool to discover indicators on demand by keyword
Read analysis/worldbank/eu-country-mapping.md for country codes + comparison groups
Read analysis/worldbank/chart-integration-guide.md for Chart.js + Mermaid templates
The World Bank MCP server has thousands of indicators beyond the ones listed
here. Use search-indicators to find the best match for any policy topic.
Description
Utility functions for World Bank economic data integration.
Provides EU member state → World Bank country code mapping, CSV parsing for MCP responses, indicator formatting, and economic context building for EU Parliament article enrichment.
Functions in this module are designed to be stateless and avoid observable side effects, with the exception of explicitly recording metadata such as data timestamps in returned objects.
⚠️ For AI Agents / Agentic Workflows
The constants below (POLICY_INDICATORS, EU_COUNTRY_CODES, COMPARISON_COUNTRIES) are a convenience subset used by TypeScript code for formatting and parsing. They do NOT represent the full World Bank indicator inventory.
For indicator selection in articles and analysis:
analysis/worldbank/indicator-catalog.md— 200+ indicators by EP policy domainsearch-indicatorsMCP tool to discover indicators on demand by keywordanalysis/worldbank/eu-country-mapping.mdfor country codes + comparison groupsanalysis/worldbank/chart-integration-guide.mdfor Chart.js + Mermaid templatesThe World Bank MCP server has thousands of indicators beyond the ones listed here. Use
search-indicatorsto find the best match for any policy topic.