Draft invoice from a job
invoice_from_jobConvert a job description into a draft sales invoice with line items and 10% GST; preview it by default and create a draft only when confirmed.
Instructions
Turn a job description into a DRAFT sales invoice (ACCREC) with line items and 10% GST. Example: '3 hours labour at $120/hr, materials $450, call out fee $90'. Dry run by default: with confirm=false it returns the preview and creates nothing. With confirm=true it creates the invoice as DRAFT only. It is never approved or sent. Lines without a price are not charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_description": "<job_description>"
},
"name": "invoice_from_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Optional explicit lines. Overrides parsing of job_description | |
| confirm | No | ||
| contact | No | Customer name to look up | |
| due_days | No | ||
| reference | No | ||
| contact_id | No | Xero ContactID, if you already have it | |
| job_description | Yes | ||
| amounts_include_gst | No |