get_historical
Pack: disease · Endpoint: https://gateway.pipeworx.io/disease/mcp
Get daily COVID-19 timeline for a country or globally. Returns historical progression of cases, deaths, and recoveries by date.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
country | string | no | Country name or “all” for global data (default: “all”) |
days | number | no | Number of days of history to return (default: 30) |
Example call
Arguments
{
"country": "all",
"days": 30
}
curl
curl -X POST https://gateway.pipeworx.io/disease/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_historical","arguments":{"country":"all","days":30}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_historical', {
"country": "all",
"days": 30
});
More examples
{
"country": "GB",
"days": 90
}
Response shape
Always returns: country, days, timeline
| Field | Type | Description |
|---|---|---|
country | string | Country name or ‘all’ for global data |
days | number | Number of days of history returned |
timeline | object |
Full JSON Schema
{
"type": "object",
"properties": {
"country": {
"type": "string",
"description": "Country name or 'all' for global data"
},
"days": {
"type": "number",
"description": "Number of days of history returned"
},
"timeline": {
"type": "object",
"properties": {
"cases": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "Daily case counts by date (YYYY/M/D format)"
},
"deaths": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "Daily death counts by date (YYYY/M/D format)"
},
"recovered": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "Daily recovery counts by date (YYYY/M/D format)"
}
},
"required": [
"cases",
"deaths",
"recovered"
]
}
},
"required": [
"country",
"days",
"timeline"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"disease": {
"url": "https://gateway.pipeworx.io/disease/mcp"
}
}
}
See Getting Started for client-specific install steps.