Skip to main content
Glama

mechacut

text_diff

Unified line diff between two texts, fixed labels (before/after), configurable context (default 3), stats (hunks/added/removed), identical flag, exact sha256. Free under 32 KB, x402 above.

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": "text_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesoriginal text
bYesmodified text
contextNocontext lines (0-20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses fixed before/after labels, the default context of 3, output stats (hunks/added/removed), an identical flag, exact sha256, and pricing behavior under/above 32 KB. It does not describe error behavior or what happens at the payment threshold, but the main behavioral traits are covered.

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 description is a single front-loaded sentence with no filler, and the core purpose comes first. It is dense and slightly telegraphic in its feature list, but every clause contributes useful information.

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

Completeness4/5

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

For a tool with no annotations and no output schema, the description covers the essential return traits (stats, identical flag, sha256) and the pricing boundary. It does not fully explain the unified-diff output structure or x402 payment flow, but it is largely complete for this tool's complexity.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already documented in the input schema. The description repeats the default context of 3 but adds no syntax or format details for the a and b text parameters beyond what the schema provides.

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

Purpose4/5

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

The description states a specific operation: a unified line diff between two texts, with fixed before/after labels and configurable context. It distinguishes itself from csv_diff and json_diff by being a line diff over plain text, though it does not explicitly route against text_apply_diff or text_patch.

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

Usage Guidelines3/5

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

The implied use case is comparing two text blobs, which is clear enough from the description. However, it provides no explicit when-to-use or when-not-to-use guidance versus siblings such as text_apply_diff, text_patch, csv_diff, or json_diff.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.