Skip to main content
Glama

tksq_diff

Compare original and compressed text with a word-level diff that highlights removed and substituted content, or compress a single input first and review the changes.

Instructions

Show a word-level diff between original and compressed text. Highlights what was removed and what was substituted. Accepts either two texts to compare, or a single text that will be compressed first.

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": {
      "original": "<original>"
    },
    "name": "tksq_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoCompression level (only used if compressed is omitted)
domainNoDictionary domain (only used if compressed is omitted)
languageNoLanguage for compression dictionaries (only used if compressed is omitted)
originalYesThe original text
compressedNoThe compressed text to compare against. If omitted, the original will be compressed automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a non-obvious behavior — automatic compression when 'compressed' is omitted — but says nothing about the shape of the returned diff, whether the auto-compression is observable, or any cost/latency implications of running compression implicitly.

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?

Three short sentences, front-loaded with the core action and followed by output semantics and the input-mode rule. No filler or redundancy.

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?

The input schema is fully documented and the description qualitatively characterizes the output (a word-level diff highlighting removals and substitutions), which is sufficient to understand what comes back despite the absence of an output schema. Minor gap: the exact rendering of the diff is not specified.

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 each parameter already documents its own role, including the 'only used if compressed is omitted' caveats. The description restates the original/compressed interaction at a high level but adds no new detail such as how the level/domain/language choices affect the auto-compression path.

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?

The description opens with a specific verb and resource ('Show a word-level diff between original and compressed text') and immediately scopes the output ('what was removed and what was substituted'). This is clearly distinguishable from the compression sibling tools, which produce text rather than a comparison.

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

Usage Guidelines4/5

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

It explains the two operating modes: pass two texts to compare, or pass one and let the tool compress it first. That tells the agent how to invoke it in either situation, but it never states when to prefer this over a plain compression call or what the prerequisites are.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.