factbook_compare
Pack: cia-factbook · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/factbook_compare for the schema, then POST the same URL with its arguments for the data.
Compare CIA World Factbook fields side by side across up to 10 countries — population, median age, life expectancy, real GDP per capita, GDP growth, inflation, unemployment, public debt, military expenditures, area, internet users, etc. Use for “compare population and GDP per capita of Kenya, Nigeria and Ghana” or “life expectancy in Japan vs Germany”. Field names match the Factbook headings (case-insensitive, partial match allowed; “Economy > Exports” pins a section). factbook_fields lists the exact names.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
countries | array | yes | Two to ten country names or ISO codes, e.g. [“Kenya”, “Nigeria”, “Ghana”]. |
items | string | no | |
fields | array | yes | Factbook field names, e.g. [“Population”, “Real GDP per capita”, “Life expectancy at birth”]. Max 10. |
items | string | no |
Example call
Arguments
{
"countries": [
"Kenya",
"Nigeria",
"Ghana"
],
"fields": [
"Population",
"Real GDP per capita",
"Life expectancy at birth"
]
}
curl
curl -X POST https://gateway.pipeworx.io/cia-factbook/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"factbook_compare","arguments":{"countries":["Kenya","Nigeria","Ghana"],"fields":["Population","Real GDP per capita","Life expectancy at birth"]}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('factbook_compare', {
"countries": [
"Kenya",
"Nigeria",
"Ghana"
],
"fields": [
"Population",
"Real GDP per capita",
"Life expectancy at birth"
]
});
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the cia-factbook pack
{
"mcpServers": {
"cia-factbook": {
"url": "https://gateway.pipeworx.io/cia-factbook/mcp"
}
}
}
See Getting Started for client-specific install steps.