Tool reference
These are the things the assistant can do. It chooses the right one itself from what you ask; you never type a tool name. The reference helps you know what to expect, and why a request can be refused.
Every tool checks your own access first. If you don't have what a tool needs, it says so and does nothing. The access names are the ones in Settings → Team; "Write" includes "Read".
Reading the table
Changes data: No means it only looks. Yes means it creates something. Can't be undone is marked separately.
Looking things up
| Tool | What it does | Needs | Changes data |
|---|---|---|---|
findCustomers | Finds customers by name or tax id. Up to 8 matches. | Write on Quotations or Orders (Cart) | No |
findProducts | Finds products by name or SKU, with selling and cost prices. Up to 8. Add for purchase to include products that are only bought. | Write on Quotations or Orders (Cart); for purchase, write on Purchase orders | No |
findVendors | Finds vendors (suppliers) by name or tax id. Up to 8. | Write on Purchase orders | No |
listOrders | Lists orders, newest first, narrowed by number, customer name or status (OPEN, CLOSED). Up to 25. | Read on Orders (Cart) | No |
listQuotations | Lists the newest quotations, optionally by status. Up to 25. | Read on Quotations | No |
listInvoices | Lists the newest invoices and their reversals, optionally by status. Up to 25. | Read on Invoices | No |
The lookups ask for write access because they exist to build documents: someone who can only read quotations can list them, but not search customers to quote.
Creating
| Tool | What it does | Needs | Notes |
|---|---|---|---|
createCustomer | Creates a customer: name, type (individual, business or government), tax id, email. | Write on Partners | A business or government customer needs a tax id. |
createVendor | Creates a vendor, with the same details. | Write on Partners | |
createProduct | Creates a product: name, selling price, and optionally cost price, unit, SKU and description. | Write on Products | Counts stock by default; a service or other uncounted item can say so. A purchase-only item can be marked not sellable. |
createQuotation | Creates a quotation for a customer from products and/or free-text lines. | Write on Quotations | Uses your numbering. Lines can carry their own discount, and the whole quotation can have one. A catalogue quantity discount applies unless the price was given. |
convertQuotationToOrder | Turns a quotation into an open order. | Write on Quotations | Works once per quotation. |
createOrder | Creates an open order from products and/or free-text lines. | Write on Orders (Cart) | The customer is optional (a walk-in sale has none). Discounts work as on quotations. |
createPurchaseOrder | Creates a draft purchase order to a vendor. | Write on Purchase orders | Nothing is sent to the vendor and stock doesn't change; you send and receive it in Linear7. A catalogue product with no cost price needs one given. |
Invoices and PDFs
| Tool | What it does | Needs | Notes |
|---|---|---|---|
issueInvoice | Issues the invoice for an open order. | Write on Orders (Cart) | Can't be undone. It closes the order, takes the next invoice number, and records the payment as cash. |
generatePdf | Makes the PDF of a quotation or an invoice and gives a download link. | Read on Quotations or Invoices | English. The link works for 10 minutes. |
Limits
- Search results are capped (8 for lookups, 25 for lists), so be specific: a tax id or SKU finds exactly one.
- 120 requests a minute per person. The assistant rarely gets near it.
- The same plan limits apply as in the app: invoices a month, business partners and users.
- A workspace whose free month or subscription ended is read-only: lookups, lists and PDFs still work, but nothing can be created. See Access and safety.