Skip to main content
Glama

ToolForte

Text Diff

text_diff
Read-onlyIdempotent

Compute an exact line-based diff between two texts with add/remove/unchanged stats.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modifiedYesThe text after the change
originalYesThe text before the change

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNo
statsNo
resultNoThe result, when it is not an object

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Changed3 schema fields changed
    • addedInput schema / properties / modified / description
      Added value: +"The text after the change"
    • addedInput schema / properties / original / description
      Added value: +"The text before the change"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "lines": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "result": {
      +      "description": "The result, when it is not an object"
      +    },
      +    "stats": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "added": {
      +          "type": "number"
      +        },
      +        "removed": {
      +          "type": "number"
      +        },
      +        "unchanged": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • removedInput schema / properties / modified / description
      Removed value: -"The text after the change"
    • removedInput schema / properties / original / description
      Removed value: -"The text before the change"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": {},
      -  "properties": {
      -    "lines": {
      -      "items": {},
      -      "type": "array"
      -    },
      -    "result": {
      -      "description": "The result, when it is not an object"
      -    },
      -    "stats": {
      -      "additionalProperties": {},
      -      "properties": {
      -        "added": {
      -          "type": "number"
      -        },
      -        "removed": {
      -          "type": "number"
      -        },
      -        "unchanged": {
      -          "type": "number"
      -        }
      -      },
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  4. Changed3 schema fields changed
    • addedInput schema / properties / modified / description
      Added value: +"The text after the change"
    • addedInput schema / properties / original / description
      Added value: +"The text before the change"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "lines": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "result": {
      +      "description": "The result, when it is not an object"
      +    },
      +    "stats": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "added": {
      +          "type": "number"
      +        },
      +        "removed": {
      +          "type": "number"
      +        },
      +        "unchanged": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and purity are covered. The description adds that the diff is exact and line-based and mentions output stats, which is modest value but says nothing about limits, ordering, or edge cases beyond what the schema/annotations carry.

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 sentence that front-loads the operation and tacks on the return stats. Every clause earns its place, with no filler or repetition of the name.

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

Completeness5/5

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

For a simple, side-effect-free two-input utility with full schema coverage, complete annotations, and an output schema, the description needs to do little. Nothing an agent needs in order to invoke this correctly 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 description coverage is 100% with only two well-named string parameters, so the schema fully documents the inputs. The description's 'two texts' framing adds nothing beyond the schema, making 3 the correct baseline.

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+resource ('Compute an exact line-based diff') and the algorithm's scope plus the shape of what it returns (add/remove/unchanged stats). No sibling tool overlaps with diffing, and an agent can immediately tell what this does.

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 operation is self-evident enough that usage is implied (call it to diff two texts), but there is no explicit when-to-use statement, no exclusions, and no mention of alternatives among the siblings. Minimum viable guidance.

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