LexPact UK Contracts

v1.0.2
io.github.Idadabhai/lexpact Checked 4 days ago Published 13 days ago

Generate UK-law contracts: NDA, service, freelance, recruiter terms of business, IR35.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_contract_templates List LexPact contract templates

List the 5 contract types LexPact can generate, their required/optional fields, and party role labels. Call this first if you don't already know the field requirements for a contract_type.

generate_contract Generate a contract

Generate a UK jurisdiction-aware contract (nda, service_agreement, freelance_agreement, recruiter_terms_of_business, or ir35_agreement). Collect all required fields through conversation before calling — never invent party names, addresses, dates, or amounts. On a validation error, read error.suggestion in the response and fix the request yourself.

ParameterTypeDescription
contract_type *stringWhich contract to generate. Call list_contract_templates if unsure which fields each type needs.
effective_date *stringContract start date, YYYY-MM-DD.
jurisdiction *stringGoverning jurisdiction.
parties *arrayExactly two parties, in order: party_a first, then party_b.
scope_of_work *stringPlain-English description of what this contract covers.
custom_termsobjectOptional free-text extension, e.g. { additional_clauses: "..." }.
deliverablesstringservice_agreement only — required for that type.
duration_monthsstringnda only.
feeobjectRecruitment fee terms — recruiter_terms_of_business only.
ip_ownershipstringservice_agreement only.
jurisdiction_otherstringRequired only when jurisdiction is INTERNATIONAL.
kill_fee_percentagenumberfreelance_agreement only.
nda_typestringnda only.
output_formatstringDefault markdown. pdf returns a 1-hour signed download URL instead.
paymentobjectPayment terms — shape depends on contract_type (service_agreement/freelance_agreement/ir35_agreement). Call list_contract_templates for the exact fields.
substitution_clausebooleanir35_agreement only.

get_contract Get a previously generated contract

Retrieve a contract by id. Returns status "processing" while generation is still running (call again in about 30 seconds) and "completed" with the contract once done. content_markdown is always populated regardless of the original output_format — PDF URLs are only returned once, inline, by generate_contract.

ParameterTypeDescription
id *stringThe contract id returned by generate_contract.