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

NameTypeRequiredDescription
namestringyesFirst name to predict age for.
country_codestringyesISO 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

FieldTypeDescription
namestringThe name that was analyzed
predicted_agenumber | nullPredicted age based on country-specific statistics, or null if unavailable
sample_sizenumberNumber of data points used for regional prediction (confidence measure)
countrystringISO 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.

Regenerated from source · build May 9, 2026