Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

text_lines

Read-onlyIdempotent

Clean and organize text lines by applying trim, dedupe, sort, reverse, shuffle, or numbering operations in order, with optional frequency counts.

Instructions

utilpeek: Sort, dedupe, trim, shuffle or number the lines of a text. For find and replace use text_replace. Returns lines after operations run in order: trim, remove_empty, dedupe (keep first), sort (lexical, natural, exact numeric or length; stable), reverse, shuffle (seeded) and number. Optional counts of the most frequent lines. At most 200,000 lines. Typically under 0.3 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored.

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>",
      "operations": "<operations>"
    },
    "name": "text_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoShuffle seed: same seed, same order.
textYesThe text (at most 200,000 characters).
top_nNoWith count_unique: how many lines to return.
sort_modeNoSort by character (lexical), digit run (natural), first number's exact value (numeric; no number sorts last), or length.lexical
descendingNoFor sort: largest first.
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.
case_insensitiveNodedupe / sort / count compare casefolded lines.
ignore_invisibleNoDedupe also ignores zero-width chars, BOM, soft hyphen.
number_separatorNoFor number: text between the number and the line..

Output 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
lines_without_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description still adds substantial operational context: deterministic operation ordering, stable sort, dedupe keeping the first occurrence, seeded shuffle reproducibility, the 200k line cap, typical latency, price, per-IP daily free quota, and a data-handling promise. That is exactly the beyond-annotations value this dimension rewards.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then the alternative, then the return/ordering semantics, then limits and commercial terms. Dense but ordered well; the price, quota and elapsed-time sentences are useful agent context rather than filler, though they push length toward the upper end.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with an output schema, the description covers the non-inferable essentials: execution order, sort/dedupe tie-breaking, determinism, size limits, throughput and privacy. Return value structure is left to the output schema, appropriately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks: that operations run in a fixed sequence, that sort is stable, and that dedupe keeps the first occurrence. These are behaviors that change results and are not stated in the parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb set and resource ('Sort, dedupe, trim, shuffle or number the lines of a text') and immediately names the sibling it is not ('For find and replace use text_replace'). An agent can distinguish this from text_replace, text_frequency and text_stats without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly redirects find-and-replace work to text_replace, which is a genuine when-not rule. It does not route to other plausible siblings such as text_frequency for the counting behavior, but the core selection guidance is present and unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools