Skip to main content
Glama

Penniless Text Diff

text_diff

Produces a unified diff plus added/removed counts between two texts (LCS line diff, configurable context lines). Body {old, new, context?} -> {ok, identical, added, removed, hunks, unified}. Costs $0.001 USDC on Base per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newYesChanged text
oldYesOriginal text
contextNoContext lines per hunk (default 3)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the pricing per call, the input/output payload shape, the use of LCS line diffing, the 'identical' flag behavior, and the returned fields, which is substantial transparency for an 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.

Conciseness4/5

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

The description is a single dense sentence that packs a lot of purpose, algorithm, request/response shape, and cost information. It is not visually structured, but it is concise and every element contributes meaning.

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?

The tool is simple, has only three documented parameters, and provides an output schema. The description adds the algorithm, response fields, and cost model, making it operationally sufficient. It could still mention failure modes or expected request limits, but nothing critical is missing.

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%, so the schema fully documents old, new, and context. The description adds little beyond restating 'context?' in the body format and mentioning configurable context lines, which is useful but does not substantially increase semantic understanding beyond the schema.

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?

The description uses a specific verb and resource: 'Produces a unified diff plus added/removed counts between two texts.' It clarifies the method (LCS line diff) and the optional context-lines parameter, making the tool's purpose distinct from any sibling.

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 description clearly implies the tool is for comparing two text bodies and getting a unified diff with line counts Poisson. However, it does not explicitly state when to prefer this tool over alternatives, nor does it mention exclusions such as very large texts or unsupported line-ending styles.

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.