Create or update buy box
set_buy_boxCreate or update the buy box for a category. Any field names are allowed.
Call get_buy_box first and REUSE the field names already in the box.
criteria: fields to set; each value you send replaces that field's value. A value of null deletes that field.
add: {field: [items]} appends items to any list field (created if missing, duplicates skipped). Use this to add one item without resending the whole list.
remove: {field: [items]} removes items from a list field (case-insensitive for text).
remove_fields: [field, ...] deletes whole fields.
replace=true: start from an empty box instead of merging. Order within one call: remove_fields, then criteria, then add, then remove. Server fields (_meta, requires_confirmation, last_updated) are ignored in criteria.
expected_revision: pass _meta.revision from your last get_buy_box so you don't overwrite another agent's change. If the box changed since, nothing is saved and the error returns the current box: re-read it and ask the user before writing again if a field you were changing was changed. Use 0 to create a box only if it doesn't exist. Field names are normalized to snake_case. If a new field looks like an existing one (e.g. max_miles vs max_mileage), it is saved and _meta.warnings names the existing field: tell the user and fix it with remove_fields. Do not store health details, account numbers, or passwords. Returns the saved box.
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": {
"category": "<category>"
},
"name": "set_buy_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | ||
| remove | No | ||
| replace | No | ||
| category | Yes | ||
| criteria | No | ||
| remove_fields | No | ||
| expected_revision | No |