Create Excel invoice
create_invoiceGenerate a formatted .xlsx invoice from issuer, customer, dates, currency, and line items; returns its absolute path and total without overwriting existing files.
Instructions
Save a formatted .xlsx invoice in the configured output directory. Returns its absolute path and total. Existing files are never overwritten.
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": {
"issuer": "<issuer>",
"customer": "<customer>",
"invoiceNumber": "<invoiceNumber>",
"issueDate": "<issueDate>",
"dueDate": "<dueDate>",
"currency": "<currency>",
"items": "<items>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| notes | No | ||
| issuer | Yes | Invoice issuer; registrationNumber is an optional Japanese registration number. | |
| dueDate | Yes | ||
| currency | Yes | ||
| customer | Yes | The customer receiving the invoice. | |
| issueDate | Yes | ||
| invoiceNumber | Yes | ||
| outputFilename | No | Optional .xlsx filename, never a path. Defaults to invoice.xlsx. |