Skip to main content
Glama

DraftCompare Legal Diff

Audit Legal Risk Changes

audit_legal_risks
Read-onlyIdempotent

Runs DraftCompare deterministic legal risk rules over all changes between original and revised texts (up to 8,000 chars each). Flags HIGH and MEDIUM risk modifications affecting money, percentages, liability, indemnification, termination, liquidated damages, jurisdiction, confidentiality, exclusivity, or obligation/negation flips (shall/must/may/not/without prior) in English and Spanish.

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": "audit_legal_risks"
  }
}

Input Schema

NameRequiredDescriptionDefault
min_severityNoMinimum risk severity to include: "high", "med" (default), or "low".med
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

A4/5.0
Behavior4/5

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

Annotations declare read-only, idempotent, closed-world, non-destructive, so safety profile is covered. The description adds meaningful behavior: deterministic rules, the 8,000-char cap per text, the severity threshold behavior, bilingual English/Spanish coverage. It doesn't describe the output shape, but no output schema exists so this is a real gap — though what's disclosed is substantive.

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 dense sentence plus a second enumerating trigger categories — front-loaded with the core action, no filler, every clause carries information.

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

Completeness2/5

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

For a tool with no output schema at all, the description says nothing about what the return contains: severities, categories, locations, counts. An agent cannot anticipate the response shape. The absence of any output explanation is the main shortfall.

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

Parameters4/5

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

Schema coverage is 100%, so baseline 3 applies. The description adds meaning beyond schema by clarifying the rules only flag HIGH and MEDIUM risk by default and noting the char cap, giving context for min_severity's effect and the limits on the text params.

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?

Specific verb ('Runs DraftCompare deterministic legal risk rules') plus resource (changes between original and revised texts) plus precise scope (up to 8,000 chars each) and enumerates the risk categories. An agent can distinguish this from compare_drafts and audit_critical_figures from the description alone.

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 description implies when this applies — reviewing changes for legal risk — but never says when to prefer it over siblings like audit_critical_figures (figures vs. legal clauses) or compare_drafts (raw diff). No explicit exclusions or prerequisites stated.

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