Optional: Create a weekly standing order
create_standing_orderSaves a buyer's recurring weekly grocery order and usual delivery day without placing an order, so agents can renew the same repeat order each week.
Instructions
Save the buyer's recurring weekly order (e.g. milk + butter + cream every Monday). Places no order.
items: [{product_ids: [...candidates], amount, unit: 'L' | 'KG' | 'SALES_UNIT', label: 'milk'}]. weekday: mon..sun, the usual delivery day. Renew it each week with renew_standing_order.
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": {
"mandate_id": "<mandate_id>",
"agent_id": "<agent_id>",
"name": "<name>",
"items": "<items>"
},
"name": "create_standing_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| items | Yes | ||
| weekday | No | mon | |
| agent_id | Yes | ||
| mandate_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | SO-XXXXXXXX | |
| name | Yes | ||
| buyer | Yes | ||
| items | Yes | ||
| active | Yes | ||
| cadence | Yes | ||
| agent_id | Yes | ||
| created_at | Yes | ||
| mandate_id | Yes | ||
| updated_at | Yes |