Skip to main content
Glama

diff_text

Read-onlyIdempotent

Diff checker — line-oriented text diff. Same result as POST /v1/security/diff and /v1/text/diff: lines of type equal, add or remove with line numbers, plus added, removed, equal and changes counts.

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": {
      "textA": "<textA>",
      "textB": "<textB>"
    },
    "name": "diff_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textAYesOriginal text.
textBYesChanged text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changed
    • addedInput schema / properties / textA / description
      Added value: +"Original text."
    • addedInput schema / properties / textB / description
      Added value: +"Changed text."
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is fully covered. The description adds real value by describing the output format (typed lines with line numbers plus added/removed/equal/changes counts), which matters because there is no output schema. However, it says nothing about size limits, input handling, or ordering of results, so this is solid rather than rich.

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 and then a compact response preview, with the core identity front-loaded. Every clause earns its place: identity, response shape, and counts.

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?

For a two-parameter read-only tool with full schema coverage and annotations, the definition covers the operation and the return shape, which is exactly the gap left by the missing output schema. Minor details such as result ordering or limits on input size are absent, but nothing essential for a correct call 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%: textA is documented as the "Original text" and textB as the "Changed text", which is the key asymmetry. The description only reinforces this through the line-oriented framing and adds no syntax or formatting detail beyond the schema, so baseline 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?

States a specific operation and resource: "line-oriented text diff" plus the exact response shape (equal/add/remove lines with counts). It is clearly a diff tool, but it never distinguishes itself from the sibling text_similarity, which an agent could plausibly pick instead for a closely related task.

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 gives no when-to-use or when-not-to-use guidance, and it does not point at any alternative tool. The only routing hint is the API-endpoint equivalence, which tells the agent nothing about tool selection.

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