Skip to main content
Glama

Tanod Text

utilpeek: diff two texts (line, word or character)

diff_text
Read-onlyIdempotent

utilpeek: Diff two texts: unified line diff, word or character changes. Returns the differences between two texts: similarity ratio, counts and hunks; in line mode a git-compatible unified diff, in word or char mode change records (equal, insert, delete, replace) with exact character offsets into a and b. Input: a and b, optional mode and context. At most 1,000 hunks and 5,000 change records, then truncated. 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. Tanod does not log or store the submitted text; it is processed in memory for this answer. Docs: https://tanod.dev/learn/text-diff-api.html

Input Schema

TableJSON 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 (0-10, default 3).

Output Schema

TableJSON 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. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "changes": {
      +      "items": {
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "context": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "hunks": {
      +      "items": {
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "identical": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "mode": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "similarity": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "properties": {
      +        "library": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "stats": {
      +      "properties": {
      +        "a_units": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "b_units": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "deleted": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "inserted": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "unchanged": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "units": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "truncated": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "unified": {
      +      "type": [
      +        "string",
      +        "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