{
  "name": "text.stats",
  "group": "text",
  "summary": "Count characters, words, bytes, sentences and estimated tokens; score readability.",
  "description": "Measures text the way a form validator, a database column and a model context window each measure it — characters, UTF-8 bytes and estimated tokens are three different numbers, and conflating them is how 'it fits' turns into a truncation bug. Also returns Flesch reading ease and Flesch-Kincaid grade level.",
  "keywords": [
    "word count",
    "character count",
    "token count",
    "readability",
    "flesch",
    "byte length",
    "reading time"
  ],
  "endpoint": "https://fluentedi.com/v1/text/stats",
  "mcp_name": "text_stats",
  "makes_network_request": false,
  "parameters": {
    "type": "object",
    "properties": {
      "text": {
        "description": "Text to measure.",
        "type": "string",
        "maxLength": 500000
      },
      "top_words": {
        "description": "How many of the most frequent words to return (0 disables).",
        "type": "integer",
        "default": 10,
        "minimum": 0,
        "maximum": 100
      }
    },
    "required": [
      "text"
    ],
    "additionalProperties": false
  },
  "examples": [
    {
      "description": "Measure a draft",
      "url": "https://fluentedi.com/v1/text/stats?text=The%20quick%20brown%20fox%20jumps%20over%20the%20lazy%20dog.%20It%20was%20a%20bright%20cold%20day%20in%20April.",
      "args": {
        "text": "The quick brown fox jumps over the lazy dog. It was a bright cold day in April."
      }
    }
  ],
  "suggestion": null
}