Skip to main content
Glama

Predict Gender Country

predict_gender_country
Read-onlyIdempotent

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

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": "Alexander",
      "country_code": "US"
    },
    "name": "predict_gender_country"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFirst name to predict gender for.
country_codeYesISO 3166-1 alpha-2 country code (e.g. "US", "GB", "DE") to localize the prediction.

Output Schema

NameRequiredDescriptionDefault
nameYesThe name that was analyzed
genderYesPredicted gender (male, female, or null if uncertain)
countryNoISO country code used for region-specific prediction
probabilityYesConfidence probability from 0 to 1
sample_sizeYesNumber of samples used in prediction

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "country": {
      +      "description": "ISO country code used for region-specific prediction",
      +      "type": "string"
      +    },
      +    "gender": {
      +      "description": "Predicted gender (male, female, or null if uncertain)",
      +      "enum": [
      +        "male",
      +        "female",
      +        null
      +      ],
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "name": {
      +      "description": "The name that was analyzed",
      +      "type": "string"
      +    },
      +    "probability": {
      +      "description": "Confidence probability from 0 to 1",
      +      "type": "number"
      +    },
      +    "sample_size": {
      +      "description": "Number of samples used in prediction",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "gender",
      +    "probability",
      +    "sample_size"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "country_code": "US",
      +    "name": "Alexander"
      +  },
      +  {
      +    "country_code": "DE",
      +    "name": "Andrea"
      +  }
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive behavior. The description adds value by stating the return fields (gender, probability, regional sample size) and confirming the country-specific scope, which are not covered by annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, focused sentence that front-loads the core purpose, followed by output details. Every word contributes value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple two-parameter schema, rich output schema, and strong annotations, the description fully covers the tool's behavior and return values. No critical information is missing for an agent to select and invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with clear descriptions for both 'name' and 'country_code'. The description provides sample country codes but does not add semantic meaning beyond the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action ('Predict gender from a first name') and a specific resource ('in a specific country'), with examples. This distinguishes it from the sibling tool predict_gender, which likely lacks country-specific context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'in a specific country' implies the tool is for country-aware predictions, which is useful context. However, it does not explicitly mention alternatives like the simpler predict_gender tool or state when not to use this variant, so it lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.