predict_gender_country

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

Predict gender from a first name in a specific country (e.g., “US”, “FR”, “DE”). Returns gender, probability, and regional sample size.

Parameters

NameTypeRequiredDescription
namestringyesFirst name to predict gender for.
country_codestringyesISO 3166-1 alpha-2 country code (e.g. “US”, “GB”, “DE”) to localize the prediction.

Example call

Arguments

{
  "name": "Alexander",
  "country_code": "US"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('predict_gender_country', {
  "name": "Alexander",
  "country_code": "US"
});

More examples

{
  "name": "Andrea",
  "country_code": "DE"
}

Response shape

Always returns: name, gender, probability, sample_size

FieldTypeDescription
namestringThe name that was analyzed
genderstring | nullPredicted gender (male, female, or null if uncertain)
probabilitynumberConfidence probability from 0 to 1
sample_sizenumberNumber of samples used in prediction
countrystringISO country code used for region-specific prediction
Full JSON Schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name that was analyzed"
    },
    "gender": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "male",
        "female",
        null
      ],
      "description": "Predicted gender (male, female, or null if uncertain)"
    },
    "probability": {
      "type": "number",
      "description": "Confidence probability from 0 to 1"
    },
    "sample_size": {
      "type": "number",
      "description": "Number of samples used in prediction"
    },
    "country": {
      "type": "string",
      "description": "ISO country code used for region-specific prediction"
    }
  },
  "required": [
    "name",
    "gender",
    "probability",
    "sample_size"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026