Predict Nationality
predict_nationalityPredict 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.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "Maria"
},
"name": "predict_nationality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | First name to predict nationality for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The input first name | |
| sample_size | Yes | Sample size from nationalize.io dataset | |
| nationalities | Yes | List of predicted nationalities ranked by probability |