Apply uploaded product matching file
upsert_item_relation_from_tmpUpsert Commerce Item Relation From Tmp
When to use: SKU 매칭 엑셀 업로드의 커밋 단계 — 이미 tmp 테이블에 적재된 내용을 원본에 반영할 때.
When NOT to use: 몇 건만 고치는 거라면 절대 쓰지 않는다 — update_item_relation 으로 해당 행만 덮어쓴다. tmp 에 아무것도 올리지 않은 상태로 호출하면 기존 매칭이 통째로 날아갈 수 있다.
Limitations: ⚠️ replace 모드는 스코프 원본을 통째로 갈아엎는다 — DROP TABLE laplacian_{admin}.commerce_item_relation 후 재생성·재적재다. 선행 조건이 있다: tmp 테이블에 업로드 내용이 이미 올라가 있어야 하며, 이 tool 은 업로드 자체를 하지 않는다. 실행 직전 자동으로 복원 지점(checkpointed_change)이 찍히므로 되돌릴 수는 있다. 0행 유효 업로드는 DROP 을 건너뛰고 조기 반환하며 이력에도 남지 않는다. data_management:write 권한 필요.
Examples:
Q: 업로드한 상품 매칭 파일을 이제 반영해줘 params: {}
Output shape: object: {added, updated, total}
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": "upsert_item_relation_from_tmp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project-id | No | ||
| auth_method | No | jwt |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||