Skip to main content
Glama

Frequency

frequency
Read-onlyIdempotent

Return year-by-year corpus frequency counts for a word from Wordnik; optionally constrain to a startYear-endYear range.

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": {
      "word": "algorithm"
    },
    "name": "frequency"
  }
}

Input Schema

NameRequiredDescriptionDefault
wordYes
endYearNo
startYearNo
useCanonicalNo

Output Schema

NameRequiredDescriptionDefault
wordNoThe word
frequencyNoFrequency data by year
totalCountNoTotal frequency count

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / frequency / items / properties / year / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "string"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "word": "algorithm"
      +  },
      +  {
      +    "endYear": 2020,
      +    "startYear": 1990,
      +    "word": "internet"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "frequency": {
      +      "description": "Frequency data by year",
      +      "items": {
      +        "properties": {
      +          "count": {
      +            "description": "Usage count",
      +            "type": "number"
      +          },
      +          "year": {
      +            "description": "Year",
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "totalCount": {
      +      "description": "Total frequency count",
      +      "type": "number"
      +    },
      +    "word": {
      +      "description": "The word",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds real context beyond that: the upstream source is Wordnik and results are bucketed by year. It says nothing about what the counts represent (per-million vs. raw occurrences), rate limits, or what happens for words with no data.

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?

A single sentence that front-loads the operation, then the optional constraint. Every clause earns its place and there is no redundant restatement of the name or annotations.

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?

An output schema exists, so return-shape explanation is not required, and the core operation is clear. The gaps are the undefined `useCanonical` parameter and the unspecified unit/scale of the frequency counts, which an agent would need to interpret results.

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 4 parameters, so the description must carry the burden. It clarifies startYear and endYear as a range bound, but says nothing about `word` (presumably the required lookup term) and nothing at all about `useCanonical`, which is the least self-explanatory parameter in the schema.

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?

"Return year-by-year corpus frequency counts for a word from Wordnik" gives a specific verb (return), resource (frequency counts), granularity (year-by-year), and data source (Wordnik). The optional range constraint is also stated. It falls short of 5 only because it does not differentiate itself from word-level siblings like definitions, phrases, or hyphenation.

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?

The optional startYear-endYear clause implies the main usage variant (trend-over-time vs. full history), which is useful guidance. However, there is no explicit when-to-use framing, no statement of when to prefer other word tools, and no prerequisites or limits mentioned.

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.