Skip to main content
Glama

Get contract analysis

clm_get_contract_analysis
Read-onlyIdempotent

Get stored AI overview, risks, obligations and other insights; unavailable fields are null. Use clm_get_contract for metadata and documents, or clm_read_contract_document for source text. This read performs no extraction and uses no Parser credits.

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": {
      "id": "<id>"
    },
    "name": "clm_get_contract_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Contract identifier"New value: +"ID"
    • removedInput schema / properties / id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "deviations": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "derivedFrom": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "evidenceQuote": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "expected": {
      -                "type": "string"
      -              },
      -              "found": {
      -                "type": "string"
      -              },
      -              "headline": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "playbookRuleId": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "severity": {
      -                "enum": [
      -                  "low",
      -                  "medium",
      -                  "high"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "severity",
      -              "expected",
      -              "found"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "gaps": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "context": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "derivedFrom": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "evidenceQuote": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "headline": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "impact": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "missing": {
      -                "description": "Missing or unclear core term",
      -                "type": "string"
      -              },
      -              "severity": {
      -                "enum": [
      -                  "low",
      -                  "medium",
      -                  "high"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "missing",
      -              "severity"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "obligations": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "action": {
      -                "description": "Obligation or commitment",
      -                "type": "string"
      -              },
      -              "derivedFrom": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "dueDate": {
      -                "anyOf": [
      -                  {
      -                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "evidenceQuote": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "headline": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "party": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "party_a",
      -                      "party_b",
      -                      "third_party",
      -                      "mutual"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "recurrenceInterval": {
      -                "anyOf": [
      -                  {
      -                    "type": "number"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "recurrenceUnit": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "days",
      -                      "weeks",
      -                      "months",
      -                      "quarters",
      -                      "years"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "severity": {
      -                "enum": [
      -                  "low",
      -                  "medium",
      -                  "high"
      -                ],
      -                "type": "string"
      -              },
      -              "timingType": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "scheduled",
      -                      "recurring",
      -                      "triggered",
      -                      "none"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "triggerEvent": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "windowRelation": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "within",
      -                      "after",
      -                      "before"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "windowUnit": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "days",
      -                      "weeks",
      -                      "months",
      -                      "quarters",
      -                      "years"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "windowValue": {
      -                "anyOf": [
      -                  {
      -                    "type": "number"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "required": [
      -              "action",
      -              "severity"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "overview": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "riskAllocation": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "category": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "clause": {
      -                "description": "Risk allocation term summary",
      -                "type": "string"
      -              },
      -              "derivedFrom": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "evidenceQuote": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "favors": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "us",
      -                      "counterparty",
      -                      "mutual"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "headline": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "rationale": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "severity": {
      -                "enum": [
      -                  "low",
      -                  "medium",
      -                  "high"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "clause",
      -              "severity"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "risks": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "category": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "derivedFrom": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "evidenceQuote": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "headline": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "issue": {
      -                "description": "Short label of the concern",
      -                "type": "string"
      -              },
      -              "rationale": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "severity": {
      -                "enum": [
      -                  "low",
      -                  "medium",
      -                  "high"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "severity",
      -              "issue"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "warranties": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "derivedFrom": {
      -                "anyOf": [
      -                  {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "type": "array"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "evidenceQuote": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "headline": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "party": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "party_a",
      -                      "party_b",
      -                      "third_party",
      -                      "mutual"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "severity": {
      -                "enum": [
      -                  "low",
      -                  "medium",
      -                  "high"
      -                ],
      -                "type": "string"
      -              },
      -              "statement": {
      -                "description": "Representation, warranty, or guarantee",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "statement",
      -              "severity"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the bar is lower. The description still adds real behavior: absent fields come back as null rather than erroring, and the call performs no extraction and consumes no Parser credits — a cost/latency cue an agent cannot get from annotations.

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?

Three short sentences, front-loaded with what is returned, then alternatives, then the cost/side-effect note. Nothing is redundant with the title or 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, the description carries the burden of describing the return payload and does so at a high level (overview, risks, obligations, other insights, nulls). It stops short of describing the shape or nesting of those insights, which is a minor residual gap for an agent parsing results.

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?

Only one parameter (id, uuid) and schema description coverage is 100%, so the baseline is 3. The description adds no syntax or format detail about the id beyond what the schema states.

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 plus resource ('Get stored AI overview, risks, obligations and other insights') with the scope stated up front. It explicitly distinguishes itself from clm_get_contract and clm_read_contract_document, so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names two concrete alternatives and the condition that selects them (metadata/documents vs. source text), which is exactly when-to-use guidance. It also states when not to expect extraction work, closing the main ambiguity.

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.