Create invoice
Create a draft invoice for a client or a completed job.
MCP tool jobber_write → create_invoice
write
Creates an invoice in Draft status from a job or from line items. A draft is not sent and not due, so create_invoice reaches no one and runs without asking first. Check the total, then send it with send_invoice.
Parameters
| Name | Type | Description |
|---|---|---|
| client_id string required | string | Client ID from list_clients. |
| job_id string | string | Invoice this job. Without it, pass line_items. |
| line_items array | array | Items with name, quantity and unit_price. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "jobber_write",
"arguments": {
"operation": "create_invoice",
"arguments": {
"client_id": "client_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": "inv_20431",
"number": 1051,
"status": "draft",
"total": 480,
"balance": 480,
"currency": "USD"
},
"isError": false
}