Skip to main content
Glama

Tanod Text

utilpeek: sort, dedupe and clean up lines of text

text_lines
Read-onlyIdempotent

utilpeek: Sort, dedupe, trim, shuffle or number the lines of a text. Returns the text's lines transformed by operations in order: trim, remove_empty, dedupe (keeps the first), sort (lexical, natural or length; stable), reverse, shuffle (seeded, repeatable) and number; optionally the most frequent lines with counts. At most 200,000 lines. Input: text, operations and optional sort_mode, descending, case_insensitive, seed, number_start, number_separator, count_unique and top_n. 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoShuffle seed: same seed, same order.
textYesThe text (at most 200,000 characters).
top_nNoWith count_unique: how many of the most frequent lines to return (1-1000, default 100).
sort_modeNoFor sort: lexical (default, by character), natural (numbers by value: item 9 before item 10) or length (shortest first).lexical
descendingNoFor sort: largest first (default false: ascending).
operationsYesApplied in order: trim, remove_empty, dedupe, sort, reverse, shuffle, number.
count_uniqueNoAlso return the most frequent lines with counts.
number_startNoFor number: the first line's number (-1,000,000 to 1,000,000; default 1).
case_insensitiveNodedupe / sort / count compare casefolded lines.
number_separatorNoFor number: text between the number and the line (at most 10 characters; default ". ")..

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNo
seedNo
textNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
sourceNo
removedNo
lines_inNo
lines_outNo
operationsNo
unique_linesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / descending / description
      Added value: +"For sort: largest first (default false: ascending)."
    • addedInput schema / properties / number_separator / description
      Added value: +"For number: text between the number and the line (at most 10 characters; default \". \")."
    • addedInput schema / properties / number_start / description
      Added value: +"For number: the first line's number (-1,000,000 to 1,000,000; default 1)."
    • addedInput schema / properties / sort_mode / description
      Added value: +"For sort: lexical (default, by character), natural (numbers by value: item 9 before item 10) or length (shortest first)."
    • addedInput schema / properties / top_n / description
      Added value: +"With count_unique: how many of the most frequent lines to return (1-1000, default 100)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "lines_in": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "lines_out": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "operations": {
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "removed": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "seed": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "text": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "top": {
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "unique_lines": {
      +      "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