Skip to main content
Glama

Tanod Text

utilpeek: count word frequencies in a text

text_frequency
Read-onlyIdempotent

utilpeek: Count word and n-gram frequencies in a text. Returns the most frequent words or 2-3 word n-grams (n-grams never cross punctuation) with count and share, dropping stop words (en, es, fr, de, pt, it, nl, or none), and optionally character counts. Input: text, optional language, remove_stopwords, top_n, ngram, case_sensitive, min_length, include_numbers and characters. Typically under 0.3 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Tanod does not log or store the submitted text; it is processed in memory for this answer. Docs: https://tanod.dev/learn/keyword-extraction-api.html

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text (at most 200,000 characters).
ngramNoTerm length in words: 1 (default), 2 or 3; n-grams never span punctuation.
top_nNoMost frequent terms to return (1-1000, default 50).
languageNoStop-word list to drop (none = keep every word).en
charactersNoAlso count characters (whitespace excluded).
min_lengthNoShortest word counted, in characters (1-50, default 1; single words only, ngram=1).
case_sensitiveNoCount "Word" and "word" apart (default false: terms are lowercased).
include_numbersNoAlso count numeric tokens such as 2026 (default false).
remove_stopwordsNoDrop the stop words of `language` (default true).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
ngramNo
totalNo
sourceNo
uniqueNo
languageNo
charactersNo
stopwords_removedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / case_sensitive / description
      Added value: +"Count \"Word\" and \"word\" apart (default false: terms are lowercased)."
    • addedInput schema / properties / include_numbers / description
      Added value: +"Also count numeric tokens such as 2026 (default false)."
    • addedInput schema / properties / min_length / description
      Added value: +"Shortest word counted, in characters (1-50, default 1; single words only, ngram=1)."
    • addedInput schema / properties / ngram / description
      Added value: +"Term length in words: 1 (default), 2 or 3; n-grams never span punctuation."
    • addedInput schema / properties / remove_stopwords / description
      Added value: +"Drop the stop words of `language` (default true)."
    • addedInput schema / properties / top_n / description
      Added value: +"Most frequent terms to return (1-1000, default 50)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "characters": {
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "language": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "ngram": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "stopwords_removed": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "top": {
      +      "items": {
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "total": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "unique": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources