Skip to main content
Glama

Tidy Byte Tools API

Diff two texts

text_diff
Read-onlyIdempotent

Line-level diff of two strings, plus a unified patch.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "text_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNoThe original text, compared line by line.
bNoThe changed text to compare against a.
toNoOptional name for the changed text in the patch header. Default "b".
fromNoOptional name for the original text in the patch header. Default "a".

Output Schema

NameRequiredDescriptionDefault
okYes
toolYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / a / description
      Added value: +"The original text, compared line by line."
    • addedInput schema / properties / b / description
      Added value: +"The changed text to compare against a."
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "Optional name for the original text in the patch header. Default \"a\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "Optional name for the changed text in the patch header. Default \"b\".",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds that the diff is line-granular and that a unified patch is produced, but says nothing about how the two outputs are combined, error behavior on non-string input, or size limits.

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 short sentence, front-loaded with the core operation and trailing the secondary output. Nothing is redundant or padded.

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?

With full schema coverage, an output schema, and annotations covering safety and idempotency, the description only needs to convey the comparison model, which it does via 'line-level'. A minor gap is whether callers always receive both the diff and the patch or whether that is configurable.

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%, so the schema already explains 'a', 'b', 'from' and 'to', including their defaults. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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?

The sentence names a specific operation and resource ('Line-level diff of two strings') and adds the output artifact ('plus a unified patch'), so the agent knows both what it computes and what it gets. It does not reference any sibling, but the sibling set (base64, hash, json_format, etc.) contains no competing diff tool, so confusion risk is low.

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: 'line-level' signals the tool suits line-structured text rather than word/character comparison, which is a meaningful scoping hint. There is no explicit when-to-use, when-not-to-use, or named alternative, and no note on input size limits.

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.