Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

diff_text

Read-onlyIdempotent

Compare two texts to produce unified line diffs or word and character changes, including similarity scores, counts, and hunks.

Instructions

utilpeek: Diff two texts: unified line diff, word or character changes. For PDF or Word files use compare_documents. Returns similarity, counts and hunks. Line mode returns a unified patch that preserves CRLF. Word and char modes return changes with exact character offsets. At most 1,000 hunks and 5,000 changes. Do not apply a truncated patch. Parsed in an isolated, resource-limited child process without network; input over its limits is a 422 (not charged). Typically under 0.5 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/text-diff-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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "diff_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesThe old text (at most 100,000 characters).
bYesThe new text (at most 100,000 characters).
modeNoline (default; a unified diff), word or char (at most 20,000 characters per side).line
contextNoUnchanged lines around each hunk.

Output Schema

NameRequiredDescriptionDefault
modeNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
hunksNo
statsNo
sourceNo
changesNo
contextNo
unifiedNo
identicalNo
truncatedNo
similarityNo

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, closed-world), yet the description adds substantial behavior beyond them: output shape (similarity, counts, hunks), CRLF preservation in line mode, exact character offsets in word/char mode, truncation caps of 1,000 hunks and 5,000 changes with an explicit warning not to apply a truncated patch, sandboxed execution, 422-not-charged on oversized input, sub-0.5s latency, pricing/free tier, and no-logging privacy. This is unusually complete disclosure for a read-only tool.

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?

The core purpose and the sibling routing are front-loaded in the first two sentences, and the remaining sentences are dense with operationally useful facts rather than filler. Some commercial detail (price, free-tier quota, docs URL) is slightly promotional but still relevant to call planning.

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 a text-diff tool with a full output schema, the description covers everything an agent needs: limits, truncation handling, mode output formats, failure semantics, and cost. Return values needn't be explained further because an output schema is present.

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 all four parameters are already documented, including the 20,000-character cap for word/char modes. The description nevertheless adds meaning beyond the schema by explaining what each mode returns (unified patch preserving CRLF vs. offset-annotated changes). The 'context' parameter is not elaborated on in the description, which is the only gap.

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?

The description opens with a specific verb and resource ('Diff two texts') and immediately enumerates the three diff granularities. It also names the sibling tool (compare_documents) that handles the document-file case, so the agent can distinguish this tool from its nearest alternative without opening a 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?

It gives a clear routing rule: use compare_documents for PDF or Word files, diff_text for raw text. It also implicitly steers mode choice via the per-mode limits (line vs word/char). What's missing is guidance on when a plain diff is the wrong tool versus similarity-oriented siblings, but the one explicit exclusion is well stated.

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