Skip to main content
Glama

text_diff

Shows added and removed lines and words between two versions of a text with a similarity score. 0.002 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
aYesOriginal text
bYesNew text
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations at all, the description carries the full load. It usefully discloses the return content (added/removed lines and words, similarity score) and the x402 pricing model, which is genuinely behavioral context. However, it says nothing about input size limits, whether the operation is pure/stateless, or latency, leaving gaps for a fully unannotated tool.

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 tightly packed sentences with the capability front-loaded and pricing second; no filler or redundancy.

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?

No output schema exists, but the description tells the agent what is returned (diffs plus a similarity score) and how payment works, which covers most of what's needed. Missing only edge-case context like maximum text size or failure behavior, a minor gap for a stateless compute tool.

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%, and the paymentProof parameter already documents the full 402 payment flow in the schema. The description restates the 'two versions of a text' framing of a and b but adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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 — shows added and removed lines and words between two text versions — plus a return detail (similarity score). This clearly distinguishes it from neighboring text utilities like text_stats or ai_rewrite, so an agent can select it 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?

The comparison purpose implies when to use it (comparing two versions of a text), but there are no explicit when/when-not conditions and no sibling alternative is named. Usage guidance is inferred rather than stated.

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.