Suggest items
suggest_itemsReturns recent unique item lines (description, unit, price, VAT rate) from the past documents of a company, most recently used first, to compose a new document the usual way. Rows contain data entered by the user.
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": {
"company_id": "<company_id>"
},
"name": "suggest_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | The maximum number of lines to return; 20 when not given. Lines come from the last 200 documents of the last 12 months, drafts included, cancelled documents left out. | |
| query | No | Text to search for in the item descriptions, case-insensitive. | |
| company_id | Yes | The id of the company, from list_companies. | |
| customer_id | No | Only items of the documents of this customer of the company, from list_customers. |