legal-risk

legal-risk is a command for Claude Code from ololand-ai/ololand-plugins. It costs 21 tokens per session (329 once invoked), scanned A, original, Apache-2.0.

A legal-document review workflow for loan covenants and MAC/MAE clauses. Covenants are contract limits such as leverage or coverage requirements; MAC/MAE clauses address major adverse changes in a deal.

In plain words
What is it for?
Use it to analyze credit agreements and merger agreements, classify covenant and MAC/MAE risk, and retain page-level quotes for review.
Why use it?
It identifies possible obligations, defaults, carve-outs, and other risks from the actual contract wording instead of relying on an unsourced summary.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the ololand-forensic-qoe plugin — 10 skills, 8 commands shipped together

Good fit Use it to analyze credit agreements and merger agreements, classify covenant and MAC/MAE risk, and retain page-level quotes for review.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ololand-ai/ololand-plugins/legal-risk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ololand-ai/ololand-plugins

Made for: Claude Code.

Or install ololand-forensic-qoe, the plugin that ships this one along with the rest of its 10 skills, 8 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for legal-risk

README.md
[![agentmods](https://agentmods.dev/badge/commands/ololand-ai/ololand-plugins/legal-risk/github.svg)](https://agentmods.dev/commands/ololand-ai/ololand-plugins/legal-risk)
Your own site
<a href="https://agentmods.dev/commands/ololand-ai/ololand-plugins/legal-risk"><img src="https://agentmods.dev/badge/commands/ololand-ai/ololand-plugins/legal-risk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for legal-risk

Your own site · 80×15
<a href="https://agentmods.dev/commands/ololand-ai/ololand-plugins/legal-risk"><img src="https://agentmods.dev/badge/commands/ololand-ai/ololand-plugins/legal-risk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00329
Opus 5 $0.00010 $0.00164
Sonnet 5 $0.00004 $0.00066
Haiku 4.5 $0.00002 $0.00033

Measured 9d ago against content hash a1ba7860d3d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

legal-risk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ololand-forensic-qoe/commands/legal-risk.md · 21 lines

What it actually says

Covenant + MAC/MAE Risk

Use this workflow when a forensic review needs sourced legal-risk analysis in addition to the accounting battery.

  1. Call mcp__ololand__list_deal_documents(deal_id) and identify the credit agreement/loan documents and merger agreement.
  2. Retrieve the raw clause text with mcp__ololand__grep_filing or mcp__ololand__search_deal_documents; do not pass an LLM summary.
  3. Call mcp__ololand__analyze_covenants(text) for leverage, coverage, cross-default, and other covenant terms. Preserve each returned source_quote.
  4. Call mcp__ololand__analyze_mac_mae(text) on the raw MAC/MAE provision. Preserve source_quotes, carve-outs, scope, and risk assessment.
  5. Report the deal risk level, exact source quotes/page references, and any missing or insufficient text. These analyzers are deterministic text-in/dict-out MCP tools and do not finalize legal conclusions.

Guardrails

  • Source every clause from the deal corpus before analysis; never invent covenant or MAC/MAE terms.
  • Keep accounting findings and legal-clause findings separate, then explain their interaction (for example, a covenant breach plus a broad MAC/MAE carve-out).
  • This workflow does not approve patches, IC packages, or document versions; those approvals are app/human-session only.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 21 lines · 21 tokens per session scan A a1ba7860d3d9

Subscribe to this mod's changes

legal-risk is a command published in the GitHub repository ololand-ai/ololand-plugins (0 stars, last pushed 8d ago), licensed Apache-2.0. It adds 21 tokens to every session and 329 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.