Skip to main content
Glama

Family-Name Stats

get_family_name_stats
Read-onlyIdempotent

Family name frequency statistics

Returns the number of times family names appear in events for the selected source types, place and period. Results are ordered by frequency. Open Archives uses this endpoint to power its family name frequency visualisation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_family_name_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNo
eventtypeNo
eventplaceNo
number_showNo
eventyearendNo
eventyearstartNo

Output Schema

NameRequiredDescriptionDefault
colsNo
rowsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / eventtype / anyOf
      Added value: +[
      +  {
      +    "const": 0,
      +    "type": "number"
      +  },
      +  {
      +    "const": 1,
      +    "type": "number"
      +  },
      +  {
      +    "const": 2,
      +    "type": "number"
      +  },
      +  {
      +    "const": 3,
      +    "type": "number"
      +  },
      +  {
      +    "const": 6,
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / eventtype / enum
      Removed value: -[
      -  0,
      -  1,
      -  2,
      -  3,
      -  6
      -]
    • removedInput schema / properties / eventtype / type
      Removed value: -"number"
    • addedInput schema / properties / number_show / minimum
      Added value: +-9007199254740991
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "description": "Google DataTable-compatible response format used by the FamilyNames and Professions endpoints.\n",
      +  "properties": {
      +    "cols": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "rows": {
      +      "items": {
      +        "properties": {
      +          "c": {
      +            "items": {
      +              "properties": {
      +                "v": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "number"
      +                    }
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds genuinely new behavior: results are aggregated over selected source types, place and period, and returned sorted by frequency. It says nothing about caps, defaults when filters are omitted, or empty-result behavior.

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

Conciseness4/5

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

Front-loaded and short: purpose first, then scope, then ordering. The closing sentence about Open Archives' visualisation is mild filler but does hint at the expected result volume, so it earns marginal keep.

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

Completeness2/5

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

An output schema exists, so return shape need not be explained, but with six undocumented parameters (including an enum-valued eventtype and a number_show cap) the definition is not complete enough for an agent to construct a correct call. Key semantics are missing rather than merely terse.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the description must compensate and largely fails. It only loosely maps to eventplace ('place') and eventyearstart/end ('period'); it never explains lang, number_show, or the numeric eventtype codes (0/1/2/3/6), leaving those parameters unusable from the description alone.

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

Purpose4/5

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

States a specific verb and resource: it counts how often family names appear in events, scoped by source type, place and period. That contrasts clearly with siblings such as get_first_name_stats or get_profession_stats, though the description never names an alternative explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: the reader can infer it is the right tool for surname-frequency breakdowns over a place and period, but the description gives no explicit when-to-use rule, no exclusions, and no pointer to get_first_name_stats for the related question.

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.