Skip to main content
Glama

legal_clause_extractor

Read-onlyIdempotent

Structured extraction of clauses, obligations and deadlines from legal documents (SaaS contracts, NDAs, employment agreements, loan agreements, leases, M&A deals, IP licences). Complements contract_risk_scanner with granular per-clause output.

ICP: legal ops, M&A lawyers, paralegals, contract managers, compliance officers.

Capabilities: • Auto-detects document type (7 types) and language (EN/FR/DE/ES/PT) • Extracts parties with roles (buyer, seller, licensor, employee, etc.) • Splits document into sections and classifies 16+ clause types • Per-clause: 20 obligation patterns (EN/FR/DE), 10 deadline patterns, 18 risk detectors • Document-level: red flags (liability cap, auto-renewal, IP overreach, etc.), missing clauses per doc type • Global deadline calendar with P0/P1/P2 severity • Cross-reference map between sections • Cache: 7 days (legal docs stable once provided)

100% pure compute — no external fetch required. Accepts 10k–100k char documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoOptional. Language hint (e.g. 'en', 'fr', 'de'). Defaults to auto-detection.
asyncNoIf true, returns a job_id immediately (<200ms) instead of waiting for the result. Poll the result with job_result(job_id). Use for slow tools to avoid client timeouts.
document_textYesFull text of the legal document (10k–100k chars typical). Plain text or lightly HTML-formatted. EN/FR/DE/ES/PT supported.
document_typeNoOptional. Document type hint. Defaults to auto-detection. Use "auto" or omit to let the tool detect from content.
target_clausesNoOptional. Filter extraction to specific clause types. E.g. ["term", "termination", "liability", "ip", "confidentiality", "governing_law", "indemnification"]. If omitted or empty, all clauses are extracted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
sourcesYes
red_flagsYes
word_countYes
jurisdictionNo
governing_lawNo
lang_detectedYes
quality_scoreYes
effective_dateNo
cross_referencesYes
parties_detectedYes
clauses_extractedYes
key_deadlines_globalYes
document_type_detectedYes
missing_clauses_expectedYes

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior. The description goes well beyond that by disclosing caching (7 days), pure compute (no external fetch), input size expectations (10k–100k chars), auto-detection of doc type/language, and output granularity (16+ clause types, risk detectors, deadline calendar). This adds substantial behavioral context beyond the structured annotations.

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?

The description is longer than average but well-organized: a clear opening sentence, a lead paragraph on purpose, followed by bullet-point capabilities and a purity note. Every line earns its place with concrete technical detail (e.g., 20 obligation patterns, P0/P1/P2 severity). It is dense yet scannable, so it earns a 4 rather than a 5 only because it could be tightened slightly without losing value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (5 parameters, output schema, many capabilities), the description is comprehensive. It covers input constraints, output features, caching, compute semantics, and targeted users. The presence of an output schema means return details are not required, and the description fills all contextual gaps (auto-detection, cache, pure compute, doc types).

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% with detailed param descriptions (lang, async, document_text, document_type, target_clauses). The tool description adds only minor param-related context, such as typical document size (10k–100k chars) and supported languages, but mostly repeats what the schema already explains. It does not significantly enhance parameter understanding beyond the structured fields.

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 states a specific verb+resource: 'Structured extraction of clauses, obligations and deadlines from legal documents'. It lists concrete document types (SaaS contracts, NDAs, employment agreements, etc.) and explicitly distinguishes itself from sibling contract_risk_scanner by offering 'granular per-clause output'.

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?

The description provides clear context: it names contract_risk_scanner as a complementary alternative and identifies target users (legal ops, M&A lawyers, etc.). However, it does not explicitly state when not to use this tool or give exclusions/alternatives beyond the one sibling mention.

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.

TDQS

C2.4/5.0
Disambiguation1/5

Over 50 tools share the identical template 'Gapup agent-payable C-suite expertise' with similar French descriptions and reference cases, making their boundaries indistinguishable. Clusters like competitor_intel, competitive_deep_dive, competitor_moves, competitor_profiles, competitor_pricing_radar, competitor_pricing_scrape, and competitor_recommendations heavily overlap in purpose.

Naming Consistency1/5

Names are chaotic: mix of French and English, snake_case and camelCase, verb_noun, noun, and adjective forms with no uniform pattern. Examples like 'bp_narratif', 'content_enrichment', 'ai_governance_full_report_async', and 'job_result' show no coherent naming convention.

Tool Count1/5

271 tools is far beyond any reasonable MCP server scope, creating an overwhelming selection burden for agents. This count vastly exceeds the 25+ threshold for 'too many' and makes navigation impractical.

Completeness2/5

While the server covers many business domains, it lacks lifecycle operations (e.g., no update/delete tools for the deliverables it generates) and the input specifications are vague ('documented case fields' without documentation), creating functional dead ends. The sheer breadth does not compensate for these gaps.