Assemble a contract
contract_assembleCreate a contract or proposal from library clauses. Returns the file path, clause order, filled variables, and missing facts as bracketed prompts.
Instructions
Call this tool to build a contract or proposal document from library clauses. Returns the path written, the clauses used in document order, which variables were filled, and the facts still missing as bracketed prompts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title, for example 'Service Agreement - Beta Corp' | |
| client | No | Client name; also fills the {{client}} variable | |
| format | No | docx (default) or markdown; the document opens with the not-legal-advice line either way | |
| values | No | Values for the {{variables}} in the chosen clauses, for example {"fee":"4500","late_fee_percent":"2"}. Any variable you leave out stays in the document as a bracketed prompt such as [late fee percent], never as an invented value | |
| out_path | No | Where to write the file. Default: the server data directory, under a name built from the client and the title | |
| overwrite | No | Replace out_path if a file is already there. Without it an existing file is never touched | |
| categories | No | Instead of ids: every clause in these categories, ordered by category. Free tier: up to 8 clauses per document | |
| clause_ids | No | Clause ids in the order they should appear; this is the document order. Free tier: up to 8 clauses per document |