find_clauses
Search contracts for legal concepts or free-text terms in Arabic or English and retrieve the matching clause text with anchors, allowing direct verification of the original wording.
Instructions
Find the clauses that deal with a legal concept and return their real text with anchors, so the model reviews the actual wording instead of a summary of it. Supported concepts: auto_renewal, unilateral_termination, penalty, governing_law, arbitration, confidentiality, non_compete, limitation_of_liability, notice, payment_terms, force_majeure, assignment, entire_agreement. Matching runs over an Arabic aware folded copy of the text, so a clause still matches whichever way it spells a term. Pass query instead of, or as well as, concept to search for free text. Results are ranked, and every result lists the terms that matched so the ranking can be audited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the document. Accepts .pdf, .docx or a plain text file (.txt, .md). Absolute paths are safest. The format is detected from the file content, not the extension. | |
| limit | No | Maximum number of clauses to return. Default 5. | |
| query | No | Free text to search for, in Arabic or English. Can be used on its own or alongside a concept to narrow it. | |
| concept | No | The legal concept to search for. |