list_countries
Pack: who-gho · Endpoint: https://gateway.pipeworx.io/who-gho/mcp
List all countries recognized by the WHO with their ISO codes. Useful for finding the correct country code to use with get_data.
Example call
Arguments
{}
curl
curl -X POST https://gateway.pipeworx.io/who-gho/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_countries","arguments":{}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_countries', {});
Response shape
Always returns: total, countries
| Field | Type | Description |
|---|---|---|
total | number | Total number of countries |
countries | array | List of all countries with ISO codes |
Full JSON Schema
{
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of countries"
},
"countries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": [
"string",
"null"
],
"description": "ISO country code"
},
"name": {
"type": [
"string",
"null"
],
"description": "Country name"
},
"parent_code": {
"type": [
"string",
"null"
],
"description": "Parent region code if applicable"
},
"parent_name": {
"type": [
"string",
"null"
],
"description": "Parent region name if applicable"
}
}
},
"description": "List of all countries with ISO codes"
}
},
"required": [
"total",
"countries"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"who-gho": {
"url": "https://gateway.pipeworx.io/who-gho/mcp"
}
}
}
See Getting Started for client-specific install steps.