Skip to main content
Glama

Delete ad matching rule

delete_ad_mapping_rule
Destructive

Delete Ad Rule Mapping

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

When NOT to use: 조건이나 대상상품만 바꾸려면 지우고 다시 만들지 말고 update_ad_rule_mapping으로 고친다. 여러 규칙을 지워야 해도 하나씩 확인하며 부른다 — 남길 규칙만 담아 규칙 집합 전체를 다시 저장하는 방식으로 지우지 않는다.

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: hard delete with no inactive state, priority gaps left in remaining rules, no mapping_provider filtering so MANUAL seqs are also deletable, 404 on unknown seq, no automatic restore point, restore reverts the ENTIRE AD rule set, and required data_management:write + AD_MAPPING scope. This is exactly the operational context annotations cannot convey.

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?

Sections are clearly labeled and front-loaded (when to use, when not, limitations, examples, output shape), and each limitation is actionable. It is dense and somewhat long for a delete, with minor redundancy around restore/history, but little is wasted.

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 single-entity mutation with no output schema, the definition covers permissions, downstream mart refresh, follow-up refresh_ad_relation, rollback path and its blast radius, and explicitly states success returns no body. An agent has everything needed to call it correctly and safely.

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 coverage is 0% across 3 parameters, so the description must compensate. It clarifies seq as the identifier of the single rule and adds 404 behavior for unknown seq, but project-id and auth_method receive no meaning beyond their field names, leaving a partial gap.

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 leads with a specific verb and resource ('Delete Ad Rule Mapping') and immediately narrows scope to deleting a single rule by seq that is obsolete or wrongly created. An agent can distinguish this from update_ad_rule_mapping without inspecting either schema.

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?

It explicitly names the when-to-use case (obsolete or miscreated rule, one seq), the when-not-to-use case (change conditions/target products -> use update_ad_rule_mapping rather than delete-and-recreate), and rejects the bulk-save deletion pattern in favor of one-by-one confirmation. Pre-deletion verification via list_ad_mappings is also prescribed.

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