Skip to main content
Glama

DraftCompare Legal Diff

Get Executive Comparison Stats

get_comparison_stats
Read-onlyIdempotent

Computes fast executive triage statistics comparing original and revised texts (up to 8,000 chars each): word and character counts, net delta, similarity percentage, added/removed/updated counts, critical figure change count, and HIGH/MEDIUM/LOW risk 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": {
      "original_text": "<original_text>",
      "revised_text": "<revised_text>"
    },
    "name": "get_comparison_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
revised_textYesRevised contract or clause text (max 8,000 characters).
original_textYesOriginal contract or clause text (max 8,000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/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 is covered. The description adds genuinely useful context beyond them: the 8,000-character ceiling per text, the 'fast' performance characteristic, and a full enumeration of computed metrics, which matters given there is no output schema. It doesn't say whether inputs are truncated or rejected past the limit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-formed sentence that front-loads the purpose and the use case ('fast executive triage') before listing outputs. The metric enumeration is long but each item is informative given the absence of an output schema.

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 no output schema, enumerating the returned metrics is exactly the compensating information an agent needs, and the annotations cover the safety profile. Minor gap: it doesn't describe the shape or units of the response (percentages vs. fractions, delta sign convention) or what happens at the 8,000-character boundary.

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% and both parameters are already documented with their own descriptions and the 8,000-character constraint. The description's 'up to 8,000 chars each' simply restates the schema rather than adding new meaning about format or required content. Baseline 3 applies when the schema does the heavy lifting.

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 verb ('computes') and a specific resource ('executive triage statistics comparing original and revised texts') and enumerates the exact metrics returned, so an agent knows precisely what it gets back. It does not explicitly contrast itself with siblings like compare_drafts or audit_critical_figures, so differentiation is implied rather than stated.

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?

'fast executive triage' signals a lightweight summary use case, implicitly steering toward it for a quick overview rather than a deep audit. However, no alternative tool is named and no when-not-to-use condition is given, so the agent must infer the routing decision.

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