predict_nationality

Pack: nationalize · Endpoint: https://gateway.pipeworx.io/nationalize/mcp

Predict likely nationalities from a first name. Returns up to 5 country codes ranked by probability (0.0–1.0). Use when inferring someone’s origin from their given name.

Parameters

NameTypeRequiredDescription
namestringyesFirst name to predict nationality for.

Example call

Arguments

{
  "name": "Maria"
}

curl

curl -X POST https://gateway.pipeworx.io/nationalize/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"predict_nationality","arguments":{"name":"Maria"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('predict_nationality', {
  "name": "Maria"
});

More examples

{
  "name": "Yuki"
}

Response shape

Always returns: name, sample_size, nationalities

FieldTypeDescription
namestringThe input first name
sample_sizenumberSample size from nationalize.io dataset
nationalitiesarrayList of predicted nationalities ranked by probability
Full JSON Schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The input first name"
    },
    "sample_size": {
      "type": "number",
      "description": "Sample size from nationalize.io dataset"
    },
    "nationalities": {
      "type": "array",
      "description": "List of predicted nationalities ranked by probability",
      "items": {
        "type": "object",
        "properties": {
          "country_code": {
            "type": "string",
            "description": "ISO country code"
          },
          "probability": {
            "type": "number",
            "description": "Probability score between 0.0 and 1.0"
          }
        },
        "required": [
          "country_code",
          "probability"
        ]
      }
    }
  },
  "required": [
    "name",
    "sample_size",
    "nationalities"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "nationalize": {
      "url": "https://gateway.pipeworx.io/nationalize/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026