predict_age_country
Pack: agify · Endpoint: https://gateway.pipeworx.io/agify/mcp
Estimate someone’s age from their first name within a specific country (e.g., ‘US’, ‘FR’, ‘JP’). Returns predicted age and regional confidence count.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | First name to predict age for. |
country_code | string | yes | ISO 3166-1 alpha-2 country code (e.g. “US”, “GB”, “DE”) to localize the prediction. |
Example call
Arguments
{
"name": "John",
"country_code": "US"
}
curl
curl -X POST https://gateway.pipeworx.io/agify/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"predict_age_country","arguments":{"name":"John","country_code":"US"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('predict_age_country', {
"name": "John",
"country_code": "US"
});
More examples
{
"name": "Hans",
"country_code": "DE"
}
Response shape
Always returns: name, predicted_age, sample_size, country
| Field | Type | Description |
|---|---|---|
name | string | The name that was analyzed |
predicted_age | number | null | Predicted age based on country-specific statistics, or null if unavailable |
sample_size | number | Number of data points used for regional prediction (confidence measure) |
country | string | ISO country code for the region used in prediction |
Full JSON Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name that was analyzed"
},
"predicted_age": {
"type": [
"number",
"null"
],
"description": "Predicted age based on country-specific statistics, or null if unavailable"
},
"sample_size": {
"type": "number",
"description": "Number of data points used for regional prediction (confidence measure)"
},
"country": {
"type": "string",
"description": "ISO country code for the region used in prediction"
}
},
"required": [
"name",
"predicted_age",
"sample_size",
"country"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"agify": {
"url": "https://gateway.pipeworx.io/agify/mcp"
}
}
}
See Getting Started for client-specific install steps.