Skip to main content
Glama

text_diff

Read-only

Text diff — Line-by-line diff of two texts: added, removed and unchanged counts, similarity ratio and a plus/minus change list. Pass ?a= (original) and ?b= (changed). Price: $0.003 USDC (Base, via x402).

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
bYeschanged text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false, openWorldHint true), and the description adds a genuinely important behavioral fact beyond them: the call costs $0.003 USDC on Base via x402. It stops short of noting rate limits or failure/payment-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.

Conciseness5/5

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

Two sentences, front-loaded with the operation and output shape, with input and payment details trailing. Nothing is redundant and every clause conveys new 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 two-string, read-only tool with a fully documented schema, the description covers inputs, return fields, and payment cost, which is enough to call it correctly. Payment failure handling and exact output formatting are the only minor omissions.

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 coverage is 100% with both parameters documented ('original text', 'changed text'), so the schema does the heavy lifting. The description only restates the mapping and adds the wire format (?a=/?b=), which is marginal added meaning.

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?

States a specific verb and resource ('Line-by-line diff of two texts') and enumerates the result shape: added, removed, unchanged counts, similarity ratio, plus/minus change list. An agent can distinguish it from text_readability or ai_similarity without opening the schema.

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 operation ('diff two texts') and it explains how to pass inputs, but there is no explicit when-to-use vs when-not, and it never points to alternatives such as ai_similarity for a single score.

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