Skip to main content
Glama

ai_redline

Read-only

Redline: explain changes between two versions — Compare two versions of a contract, policy, terms page or any document and get a reviewed redline. Offline sentence-level diff (modified / added / removed, word changes, deterministic flags for changed numbers, dates, negation and key legal terms like shall/may, liability, termination, fees), then Workers AI classifies each change (category, material/minor/cosmetic, who it favors, plain-English impact) and lists top concerns and questions to ask. Params: old=, new= (up to 15,000 chars each), optional context= (e.g. lease, SaaS terms) and perspective= (e.g. tenant). Includes a Markdown table. Not legal advice. Price: $0.01 USDC (Base, via x402).

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": {
      "old": "<old>",
      "new": "<new>"
    },
    "name": "ai_redline"
  }
}

Input Schema

NameRequiredDescriptionDefault
newYesTenant shall pay rent of $1,650 on the 1st of each month. Pets are not allowed. A late fee of 10% applies after 5 days.
oldYesTenant shall pay rent of $1,500 on the 1st of each month. Pets are allowed with approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: a two-stage pipeline (offline sentence-level diff with deterministic flags for numbers, dates, negation and key legal terms, then Workers AI classification), the 15,000-char input ceiling, output format (Markdown table plus top concerns and questions), a model-output disclaimer ('Not legal advice'), and cost ($0.01 USDC on Base via x402). Price and length limits are exactly the operational facts an agent needs before invoking this.

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?

Purpose is front-loaded and the rest is dense but information-bearing: pipeline, params, output, disclaimer, price. A single long paragraph is harder to scan than a short bullet list, but there is little wasted wording.

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, the description covers the return shape (Markdown table, top concerns, questions to ask) and limits, so an agent can call it and interpret the result. The only completeness defect is the mismatch between the advertised optional parameters and the actual two-parameter schema.

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 already 100%, and the description does add a real constraint not present in the schema (up to 15,000 chars each). However it also advertises optional 'context=' and 'perspective=' parameters that do not exist in the input schema, which can mislead an agent into passing unsupported arguments.

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 and resource ('explain changes between two versions', 'get a reviewed redline') and scopes it to contracts, policies, terms pages or any document. It does not explicitly differentiate from plausible siblings such as ai_compare, so an agent must infer the distinction from the legal/redline framing.

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?

Gives a clear usage picture: compare two versions of a contract/policy/terms page, and supply optional context (lease, SaaS terms) and perspective (tenant) to shape the review. It stops short of naming when NOT to use it or pointing to an alternative for simpler diffs.

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