Skip to main content
Glama

text_diff

Unified diff between two texts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
text_aYesFirst text
text_bYesSecond text
context_linesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / args
      Removed value: -{
      -  "description": "Tool arguments",
      -  "properties": {
      -    "text": {
      -      "description": "Primary input text",
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / context_lines
      Added value: +{
      +  "default": 3,
      +  "type": "integer"
      +}
    • addedInput schema / properties / text_a
      Added value: +{
      +  "description": "First text",
      +  "type": "string"
      +}
    • addedInput schema / properties / text_b
      Added value: +{
      +  "description": "Second text",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[]New value: +[
      +  "text_a",
      +  "text_b"
      +]
  2. Added

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose whether the operation is read-only, the exact diff format, or the effect of context_lines. For a simple pure function, some behavioral transparency is still expected.

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?

One sentence, front-loaded, and free of filler. Every word earns its place.

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-text diff, the description is mostly sufficient, but the unexplained context_lines parameter and lack of output format details leave gaps. Since there is no output schema, the description should cover a bit more about the result and the meaning of context_lines.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers text_a and text_b with minimal 'First text'/'Second text' descriptions, but context_lines has no description. The tool description adds nothing beyond the schema and fails to explain the third parameter's purpose or default behavior.

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 phrase 'Unified diff' clearly indicates a diff computation between two texts. It is specific enough to distinguish from siblings like compare_texts or text_similarity by implying a particular output format, though it doesn't explicitly contrast itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives such as compare_texts or text_similarity. There are no hints about prerequisites, use cases, 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.