Skip to main content
Glama

Delete product matching rule

delete_item_mapping_rule
Destructive

Delete Rule Mapping

When to use: 더 이상 쓰지 않거나 잘못 만든 상품 매칭 규칙 하나(seq)를 지울 때.

When NOT to use: 조건이나 연결 기초상품만 바꾸려면 지우고 다시 만들지 말고 update_item_rule_mapping으로 고친다. 규칙(mapping_provider=RULE)이 아닌 MANUAL·EASYADMIN 기본 매핑은 지우지 않는다. 여러 규칙을 지워야 해도 하나씩 확인하며 부른다 — 일괄 삭제 경로는 MCP 에 열려 있지 않다.

Limitations: ⚠️ 하드 삭제다 — 규칙에는 비활성 상태가 없어 행 자체가 지워진다. 남은 규칙의 priority 는 그대로다(빈 번호가 생긴다). mapping_provider 를 가리지 않으므로 MANUAL·EASYADMIN 기본 매핑의 seq 를 넘기면 그것도 지워진다. 지우기 전에 get_item_rule_mapping 으로 대상이 맞는지 확인한다. 이력 detail 에 지운 규칙의 이름·조건(mapping_rule·mapping_rule_fe)·연결 기초상품·priority 가 남아 list_data_management_changes(entity_type=data_mapping, entity_id=ITEM)로 확인할 수 있다. 없는 seq 는 404. 쓰기 직전 상태는 복원 지점으로 따로 찍히지 않는다 — data_mapping+ITEM 스코프 이력 이벤트만 남고, 체크포인트는 다음 배치 주기에 변경 뒤 상태로 찍힌다. 되돌릴 기준점이 필요하면 쓰기 전에 create_restore_point(entity_type=data_mapping, entity_id=ITEM)로 먼저 복원 지점을 만든다. 되돌리기 자체는 MCP 도구로 열려 있지 않아 웹에서 한다(라플라스 웹 데이터 관리 화면의 「버전 히스토리」). 복원은 규칙 하나가 아니라 상품 매칭 규칙(ITEM) 전체를 그 시점으로 되돌린다 — 복원 지점 뒤에 만들거나 고친 다른 상품 규칙도 함께 되돌아간다. priority 는 숫자가 작을수록 먼저 적용된다. 저장하면 데이터 마트 갱신 요청이 나간다. 매칭 결과(파생 테이블)에 바로 반영하려면 규칙을 모두 고친 뒤 refresh_cogs_relation을 한 번 부른다. data_management:write 권한 + ITEM_MAPPING 스코프 필요.

Examples:

  • Q: 이 상품 매칭 규칙을 삭제해줘 params: {'path': {'seq': 12}}

Output shape: no content (성공 시 body 없음)

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": {
      "seq": "<seq>"
    },
    "name": "delete_item_mapping_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
seqYes
project-idNo
auth_methodNojwt

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the destructiveHint/readOnlyHint annotations, it discloses that this is a hard delete with no inactive state, that priority gaps remain, that it does not discriminate mapping_provider (so MANUAL/EASYADMIN mappings can also be deleted), the 404 on unknown seq, and the required data_management:write + ITEM_MAPPING scope. It further explains the audit trail, checkpoint timing, that restore reverts the entire ITEM rule set, and that a refresh_cogs_relation call is needed to propagate results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Structure is strong: purpose, when-to-use, when-not, limitations, example, all front-loaded. It is dense and long, and a few sentences (e.g. the note that smaller priority numbers apply first, the web UI version-history details) are tangential to invoking a delete.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, no-output-schema tool, the definition covers prerequisites, error behavior, auditability, restore options and downstream refresh, which is everything needed to call it safely. There is no output schema to explain, so nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the parameter burden. It explains seq as the single rule identifier and even warns against passing non-RULE seqs, but never clarifies project-id or auth_method (the latter defaulting to jwt). Partial compensation warrants a mid score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('상품 매칭 규칙 하나(seq)를 지울 때') and explicitly contrasts itself with update_item_rule_mapping for edits and with manual/default mappings that must not be deleted. An agent can distinguish this from delete_ad_mapping_rule and the create/update siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Dedicated 'When to use' and 'When NOT to use' sections name the alternative tools (update_item_rule_mapping, get_item_rule_mapping, create_restore_point) and the conditions selecting them. It also states that no batch-delete path exists and that rules must be deleted one at a time.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources