get_data

Pack: who-gho · Endpoint: https://gateway.pipeworx.io/who-gho/mcp

Get health data values for a WHO indicator code. Returns numeric values by country and year. Example: get_data(“WHOSIS_000001”, country=“USA”, year=“2020”). Use get_indicators first to find the indicator code.

Parameters

NameTypeRequiredDescription
indicatorstringyesWHO indicator code (e.g., “WHOSIS_000001” for life expectancy)
countrystringnoISO 3-letter country code (e.g., “USA”, “GBR”, “JPN”)
yearstringnoYear to filter by (e.g., “2020”)

Example call

Arguments

{
  "indicator": "WHOSIS_000001",
  "country": "USA",
  "year": "2020"
}

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":"get_data","arguments":{"indicator":"WHOSIS_000001","country":"USA","year":"2020"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_data', {
  "indicator": "WHOSIS_000001",
  "country": "USA",
  "year": "2020"
});

More examples

{
  "indicator": "WHOSIS_000015",
  "country": "GBR"
}

Response shape

Always returns: indicator, total, returned, data

FieldTypeDescription
indicatorstringThe requested indicator code
totalnumberTotal number of data values found
returnednumberNumber of data values actually returned (max 100)
dataarrayArray of data values (max 100 returned)
Full JSON Schema
{
  "type": "object",
  "properties": {
    "indicator": {
      "type": "string",
      "description": "The requested indicator code"
    },
    "total": {
      "type": "number",
      "description": "Total number of data values found"
    },
    "returned": {
      "type": "number",
      "description": "Number of data values actually returned (max 100)"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO country code"
          },
          "year": {
            "type": [
              "string",
              "null"
            ],
            "description": "Year of the data point"
          },
          "value": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Numeric or string value"
          },
          "low": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lower bound estimate"
          },
          "high": {
            "type": [
              "string",
              "null"
            ],
            "description": "Upper bound estimate"
          },
          "dimension": {
            "type": [
              "string",
              "null"
            ],
            "description": "First dimension value (Dim1)"
          },
          "dimension_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Type of first dimension"
          },
          "comments": {
            "type": [
              "string",
              "null"
            ],
            "description": "Comments or notes on the value"
          }
        }
      },
      "description": "Array of data values (max 100 returned)"
    }
  },
  "required": [
    "indicator",
    "total",
    "returned",
    "data"
  ]
}

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.

Regenerated from source · build May 9, 2026