Skip to main content
Glama

Profession Stats

get_profession_stats
Read-onlyIdempotent

Profession frequency statistics

Returns the number of times professions appear in records for the selected period and place. Results are ordered by frequency. Open Archives uses this endpoint to power its profession 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_profession_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNo
eventplaceNo
number_showNo
eventyearendNo
eventyearstartNo

Output Schema

NameRequiredDescriptionDefault
colsNo
rowsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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 / number_show / maximum
      Added value: +9007199254740991
    • 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/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior — the result is an aggregation of counts ordered by frequency, scoped by period and place — but says nothing about result volume, default limits, or how unnormalized profession labels are handled.

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?

Three short sentences, front-loaded with the core purpose and the ordering guarantee. The closing sentence about Open Archives' visualization is mild context padding but does clarify the intended consumer, so it does not seriously hurt the structure.

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

Completeness3/5

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

With five parameters at 0% schema description coverage and no required parameters, an agent needs more than this: default result size, language effect on output, and whether empty filters return global counts are all unstated. The existence of an output schema excuses it from describing the return shape, which keeps this at a minimum-viable level rather than failing.

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%, so the description carries the burden, and it only vaguely gestures at period ('eventyearstart'/'eventyearend') and place ('eventplace'). It says nothing about 'lang' (the enum of nl/en/de/fr controlling result language) or 'number_show' (a result cap), leaving two parameters entirely unexplained.

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?

The description states a specific verb and resource: it returns counts of profession occurrences in records, ordered by frequency. The subject matter ('profession') is specific enough to separate it from the sibling *_stats tools such as get_first_name_stats or get_source_type_stats, though it 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 Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no alternatives are mentioned. The phrase 'for the selected period and place' hints that eventplace and the year range narrow the aggregation, but it is not framed as a usage instruction, and nothing indicates what happens when all five optional parameters are omitted.

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.