{"uid":"cap_0YWrWl87YOADUqmq7gPws","slug":"gapup-legal-clause-extractor-840aa8aa","name":"Gapup Legal Clause Extractor","description":"REST gateway for the Gapup MCP catalogue — 271 AI tools accessible via standard HTTP. Authentication via Authorization: Bearer <api_key>. Native MCP transport available at /mcp.","url":"https://mcp.gapup.io/api/v1/call/legal_clause_extractor","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lang":{"type":"string","description":"Optional. Language hint (e.g. 'en', 'fr', 'de'). Defaults to auto-detection."},"async":{"type":"boolean","description":"If 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_text":{"type":"string","maxLength":500000,"minLength":100,"description":"Full text of the legal document (10k–100k chars typical). Plain text or lightly HTML-formatted. EN/FR/DE/ES/PT supported."},"document_type":{"enum":["saas_contract","employment","nda","loan_agreement","lease","merger_agreement","licence_ip","other","auto"],"type":"string","description":"Optional. Document type hint. Defaults to auto-detection. Use \"auto\" or omit to let the tool detect from content."},"target_clauses":{"type":"array","items":{"type":"string"},"description":"Optional. Filter extraction to specific clause types. E.g. [\"term\", \"termination\", \"liability\", \"ip\", \"confidentiality\", \"governing_law\", \"indemnification\"]. If omitted or empty, all clauses are extracted."}}},"responseSchema":{"type":"json","example":{"tool":"legal_clause_extractor","result":{},"source":"rest-api"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J9LsscXbJT1GVC_Asslw8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and categorizes specific legal clauses (termination, liability, IP, confidentiality, etc.) from full-text legal documents across multiple languages and document types","exampleAgentPrompt":"Extract all termination, liability, indemnification, and governing law clauses from this SaaS contract text I'm pasting — it's in English and about 40,000 characters long.","exampleUseCases":null,"resultDescription":"A structured JSON object containing the extracted legal clauses organized by clause type, with the relevant text spans identified from the source document, returned under the 'result' key alongside tool name and source metadata.","failureModes":["Document text too short (under 100 chars) — validation error","Document text exceeds 500,000 character limit — payload too large error","Unsupported language not in EN/FR/DE/ES/PT — may return empty or partial results","Invalid document_type enum value — validation error","Payment not provided or invalid API key — 402/401 error","Async job polling required if async=true — result not immediately available, must poll with job_id","No matching clauses found for specified target_clauses filter — empty result set"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract and categorize specific legal clauses from contract documents at scale, especially when you need to filter for particular clause types (e.g. only termination and IP clauses) or process documents in French, German, Spanish, or Portuguese in addition to English. Prefer this over general document summarization when structured, clause-level extraction is needed for legal review workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:45:01.303Z","isFirstParty":false}