gpi_ranking
Pack: global-peace-index · 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/gpi_ranking for the schema, then POST the same URL with its arguments for the data.
Rank countries by Global Peace Index score — the N most peaceful or N least peaceful countries in one call, with rank and score. PREFER for “most peaceful countries”, “least peaceful/most dangerous countries”, “top 10 most peaceful nations”, “which countries have the worst peace ranking”. direction defaults to “most_peaceful”.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | no | How many countries to return (default 10, max 50). |
direction | string | no | Which end of the ranking to return. Default “most_peaceful”. |
Example call
Arguments
{
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/global-peace-index/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"gpi_ranking","arguments":{"limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('gpi_ranking', {
"limit": 5
});
More examples
{
"limit": 5,
"direction": "least_peaceful"
}
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 global-peace-index pack
{
"mcpServers": {
"global-peace-index": {
"url": "https://gateway.pipeworx.io/global-peace-index/mcp"
}
}
}
See Getting Started for client-specific install steps.