Problem
shopify_tag_order forwards NaN/negative orderId and empty tags to Shopify: Number("abc") is interpolated into the order URL with no check.
Where
src/tools.ts (Number(args.orderId), String(args.tags ?? "")) + connectors.ts URL interpolation.
Acceptance
Add a failing test first calling the tool with {orderId: "abc", tags: ""}, expecting a validation error and zero fetch calls. Then fix.
Problem
shopify_tag_orderforwardsNaN/negativeorderIdand emptytagsto Shopify:Number("abc")is interpolated into the order URL with no check.Where
src/tools.ts(Number(args.orderId),String(args.tags ?? "")) +connectors.tsURL interpolation.Acceptance
Add a failing test first calling the tool with
{orderId: "abc", tags: ""}, expecting a validation error and zerofetchcalls. Then fix.