Skip to main content
Glama

ai_contract_risk

Read-only

AI contract risk review — Review a contract, terms of service or agreement for risk: overall risk level, flagged clauses (auto-renewal, liability, indemnity, termination, price changes, IP, non-compete, data use and more) with a short excerpt, why it matters and a suggested change, plus protections that are missing. Orientation only, not legal advice. Price: $0.012 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": {
      "text": "<text>"
    },
    "name": "ai_contract_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYescontract or terms text
partyNooptional: whose side to review from, e.g. the customer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, destructiveHint, openWorldHint), so the bar is lower, and the description still adds genuinely useful context: a paid invocation at $0.012 USDC on Base via x402, plus a scope disclaimer that this is orientation, not legal advice. It does not disclose failure modes, rate limits, or expected latency, which keeps it below 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?

Core purpose and output contents are front-loaded in one dense sentence, with the pricing constraint separated at the end. The clause enumeration is long but earns its place by telling the agent what categories of risk are detected.

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?

There is no output schema, yet the description adequately describes the return structure (risk level, flagged clauses with excerpt/why/suggestion, missing protections). Combined with pricing and the legal disclaimer, an agent has what it needs to call it and interpret results; only error/edge-case behavior is unaddressed.

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%, so both parameters (text, party) are already documented in the schema. The description never elaborates on the 'party' parameter or text length limits, so it adds no meaning beyond structured data; baseline 3 applies.

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 gives a specific verb and resource ('Review a contract, terms of service or agreement for risk') and then enumerates the exact deliverable: overall risk level, flagged clauses with excerpt/rationale/suggested change, and missing protections. That level of specificity cleanly separates it from sibling risk tools like ip or realestate_site_risk.

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 only implied by the domain — an agent can infer it applies to contract or ToS text — and the 'Orientation only, not legal advice' caveat sets boundaries. However, no explicit when-to-use/when-not conditions or named alternatives are given, so guidance stays at the minimum viable level.

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