Compare stock across stores
commerce_find_stock_discrepanciesCompares stock levels for the same product across connected stores to surface discrepancies without changing anything. Pair items by config mapping or unique SKU/EAN and flag ambiguous matches.
Instructions
Compares stock for the same product on several connections. Pairs items by explicit config mapping first, then by SKU/EAN only when unique in each store; ambiguous or unmatched items are listed rather than guessed. Changes nothing. Optionally pass sourceOfTruth (a connection id) to get suggested updates, which can be turned into a reviewable proposal with commerce_prepare_stock_update.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "commerce_find_stock_discrepancies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionIds | No | Connection ids to include (see commerce_list_connections). Omit for all connections. | |
| sourceOfTruth | No | ||
| maxItemsPerConnection | No |