World Bank country data

GDP and population for a country - two key World Bank indicators in one call.

$0.005 per call · one payment for the whole workflow
POST /api/skill/world-data
Sample output + API docs →

3 tools run server-side in one request. You pay once, settle once, and get a single response - no orchestration, no per-step payments, and a partial-success envelope if any step fails. USDC over x402 on any supported chain.

When to use this pack

An agent needs basic economic context for a country: what's the GDP and how many people live there? These are the two most-requested World Bank indicators and together they give GDP per capita as a derived metric.

Tools in this pack

All 3 run inside the single $0.005 call above. Each is also callable on its own if you only need one part.

Bought one at a time, these 1 tools cost $0.005 together; the pack is that sum less a 10% bundle discount, rounded up to the $0.001 settlement floor, which is $0.005.

Workflow

  1. Call world-bank-indicator with country and indicator='NY.GDP.MKTP.CD' to get GDP (current USD).
  2. Call world-bank-indicator with country and indicator='SP.POP.TOTL' to get total population.
  3. Call world-bank-indicator with country and indicator='FP.CPI.TOTL.ZG' to get inflation (annual consumer-price %) - the price-stability read that turns a raw GDP + population snapshot into economic context.

Arguments

NameRequiredDescriptionExample
countryyesISO 3166-1 alpha-2 country code (e.g. US, GB, JP)US

What one call returns

A JSON object with pack, args, steps, summary; steps holds one entry per tool (world-bank-indicator, world-bank-indicator, world-bank-indicator), each with its own result or error. Full example on the API page.

Call it directly

Any x402 client pays the 402 and gets the whole workflow back in one response. With the agent402-client SDK (npm i agent402-client, an ES module):

import { Agent402 } from "agent402-client";
// payFetch: an x402-wrapped fetch your wallet signs (@x402/fetch).
// Tools on the free tier need no options: new Agent402() pays them by proof-of-work.
// an existing prepaid credits key also works: new Agent402({ creditsKey })
const client = new Agent402({ fetch: payFetch });
const result = await client.call("skill-world-data", {"country":"US"});

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Get key indicators for the US using Agent402's world-data skill pack: (1) World Bank GDP NY.GDP.MKTP.CD, (2) population SP.POP.TOTL, (3) inflation FP.CPI.TOTL.ZG. Compute GDP per capita and note the inflation backdrop.

← All skill packs