Compare one item
compare_itemCompare one item across two Shopify stores: check if each has it, list differing fields, and verify referenced items exist in the target. Use for a targeted check instead of a full store diff.
Instructions
Compare a single item between two stores, side by side: whether each has it, every field that differs (entry by entry inside JSON values), and whether the items it points at (products, pages, metaobjects...) exist in the target. Reads only that item where possible, so it is quick. Returns { status (identical, different, only in source, only in target, in neither), changes, refs, notCompared }. Use it for a targeted check instead of diff_stores; take the key from a diff_stores result.
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": {
"source": "<source>",
"target": "<target>",
"resource": "<resource>",
"key": "<key>"
},
"name": "compare_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The item's key, as diff_stores lists it: "size_guide/shirts" (metaobjects), "faq" (pages), "PRODUCT.custom.fabric" (metafield_definitions)... | |
| format | No | "markdown" returns a report. | |
| source | Yes | Store alias, or "dir:<path>" for a snapshot folder made with export_snapshot. | |
| target | Yes | Store alias, or "dir:<path>" for a snapshot folder made with export_snapshot. | |
| resource | Yes | Resource type of the item |