Skip to main content
Glama

text_keywords

Read-onlyIdempotent

utilpeek: Extract the keywords and keyphrases of a text. For raw frequencies use text_frequency; for names and places use extract_entities. Returns the top keyphrases of a text by RAKE (phrases between stop words and punctuation, scored by word degree / frequency), with score and count. Typically under 0.3 s. Price: USD 0.002. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/keyword-extraction-api.html

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "text_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text (at most 200,000 characters).
top_nNoKeyphrases to return, best first.
languageNoStop-word language: de, en (default), es, fr, it, nl or pt.en
max_wordsNoLongest keyphrase, in words.

Output Schema

NameRequiredDescriptionDefault
noteNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
methodNo
sourceNo
keywordsNo
languageNo
candidatesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / properties / language / title
      Removed value: -"Language"
    • removedInput schema / properties / max_words / title
      Removed value: -"Max Words"
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • changedInput schema / properties / top_n / description
      Previous value: -"Keyphrases to return, best first (1-100, default 10)."New value: +"Keyphrases to return, best first."
    • removedInput schema / properties / top_n / title
      Removed value: -"Top N"
    • removedInput schema / title
      Removed value: -"text_keywordsArguments"
    • removedOutput schema / properties / keywords / items
      Removed value: -{
      -  "properties": {
      -    "count": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "phrase": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "score": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
  2. Changed3 schema fields changed
    • addedInput schema / properties / language / description
      Added value: +"Stop-word language: de, en (default), es, fr, it, nl or pt."
    • addedInput schema / properties / top_n / description
      Added value: +"Keyphrases to return, best first (1-100, default 10)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "candidates": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "keywords": {
      +      "items": {
      +        "properties": {
      +          "count": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "phrase": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "score": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "language": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "method": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources