Skip to main content
Glama

DraftCompare Legal Diff

Audit Critical Numbers, Dates & Deadlines

audit_critical_figures
Read-onlyIdempotent

Deterministically extracts and compares critical contractual figures between original and revised texts (up to 8,000 chars each): monetary amounts ($, €, £, ¥, USD/EUR/GBP), percentages (%), dates (canonicalized across ISO, DD/MM/YYYY, English, and Spanish formats to prevent false positives), and deadlines/terms (days, business days, months, years).

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_critical_figures"
  }
}

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.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description still adds real value beyond them: deterministic behavior, date canonicalization across ISO/DD-MM-YYYY/English/Spanish to avoid false positives, and the 8,000-char ceiling. It does not describe what the comparison output looks like, which keeps it from a 5.

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 dense sentence with the core action front-loaded and the qualifiers (currency list, canonicalization rationale, deadline units) neatly parenthesized. Every clause carries information, though the currency enumeration is slightly over-specified for the length budget and there is no closing routing sentence.

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 two-input comparison tool with no output schema, the description explains the inputs thoroughly but says nothing about the shape of the result — whether it returns matched pairs, added/removed/changed classifications, or confidence markers. An agent can call it, but cannot anticipate what to do with the response.

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 both parameters are documented in the schema, so the description is not required to carry parameter meaning. It restates the 8,000-char limit and the original/revised roles without adding format or edge-case guidance (e.g., behavior when only one side contains a figure). 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?

Specific verb pair ('extracts and compares') plus a precisely bounded resource ('critical contractual figures') with enumerated categories: monetary amounts, percentages, dates, deadlines. An agent immediately knows what the tool returns conceptually. It does not, however, distinguish itself from the sibling 'compare_drafts', which sounds like it operates on the same original/revised pair.

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?

Usage is implied by the scope ('up to 8,000 chars each', original vs revised pair), so an agent can infer when it fits. But there is no explicit when-to-use versus 'compare_drafts' or 'audit_legal_risks', and no stated exclusions or prerequisites (e.g., what happens on longer inputs).

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