Skip to main content
Glama

Lookup Kit

text_diff

Read-only

Text diff, compare two texts and find the differences. Compare two texts and return what was added and removed, by line or by word, with a unified-style summary and a similarity score. Price: $0.002 per call (x402, USDC on Base).

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
aYes
bYes
byNoline

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only and closed-world safety, and the description adds genuinely new behavioral context: the exact return composition (added/removed, unified summary, similarity score) and, importantly, that the call is paid via x402/USDC on Base at $0.002. It does not state the 4000-character input ceiling or failure behavior.

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

Conciseness3/5

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

The first two sentences are largely redundant — both restate 'compare two texts and find the differences.' The pricing sentence is well-placed and earns its space, but the opening could be halved without losing 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 simple two-input read-only tool with no output schema, the description is largely complete: it explains what is returned, the granularity option, and the payment requirement. The main residual gap is the undocumented input size limit and any error/precondition behavior.

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 0%, so the description must carry parameter meaning. It does explain the 'by' parameter's two modes (line or word), which is the only non-obvious parameter, but 'a' and 'b' are only vaguely described as 'two texts' and the 4000-character max is left to the schema.

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?

States a specific verb and resource ('compare two texts', 'find the differences') and enumerates the output shape (added/removed, unified-style summary, similarity score). It does not name or differentiate against any sibling tool, but the purpose is unmistakable.

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?

Usage is implied by the description ('compare two texts'), but there is no explicit when-to-use guidance, no mention of when line vs word granularity is preferable, and no alternatives named despite siblings like text_stats and text_split existing.

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.

Resources