Skip to main content
Glama

diff

diff

Line-by-line diff of two texts (250 sats/call; free tier 100 calls/mo)

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": {
      "originalText": "<originalText>",
      "modifiedText": "<modifiedText>"
    },
    "name": "diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
modifiedTextYesModified text string.
originalTextYesOriginal text string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations only declare openWorldHint, so the description carries most of the burden. It usefully discloses cost behavior (250 sats/call, 100 free calls/month), which is genuinely valuable for an agent deciding whether to call it, but it says nothing about the returned diff format, handling of large inputs, or error 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?

A single compact sentence with the operation front-loaded and the pricing parenthetical appended without waste. Nothing in it is padding.

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

Completeness3/5

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

For a simple two-parameter tool the description is sufficient to invoke it correctly, and the cost note is helpful. However, with no output schema, the agent has no idea whether the result is a unified diff, a structured object, or a side-by-side listing, which is a meaningful gap for a diff 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 coverage is 100% and both required parameters (originalText, modifiedText) are documented in the schema. The description adds no meaning beyond that, which is acceptable at the baseline but nothing more.

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 ('Line-by-line diff of two texts'), which is enough to distinguish it from unrelated siblings like hash or math. It does not differentiate from the sibling v_json_diff, leaving the agent to guess whether this handles plain text vs JSON structured comparison.

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 only implied by the purpose statement: an agent can infer it is for comparing two text strings. There is no guidance on when to prefer it over v_json_diff, nor any stated preconditions or exclusions.

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