Skip to main content
Glama

Remove ad product matches

delete_ad_relation
Destructive

Delete Ad Relation

When to use: 잘못 맺힌 광고 소재↔상품 연결을 끊을 때(미매칭 상태로 되돌린다).

When NOT to use: 연결 대상을 다른 상품으로 바꾸는 것뿐이라면 삭제 후 재생성하지 말고 update_ad_relation 으로 덮어쓴다(재계산 트리거를 아낀다).

Limitations: body 는 DeleteAdRelationReq(= 소재 식별 필드) 리스트다 — mapped_product 는 넣지 않는다. 식별 필드 전체가 일치해야 지워지므로 search_ad_relations 결과를 그대로 복사해 넘긴다. 1건 이상 실제로 지워지면 매칭 재계산이 백그라운드로 자동 트리거된다(force_refresh=True) — 즉 삭제 하나가 파생 테이블 재계산까지 유발한다. data_management:write 권한 필요. ad_relation 스코프 감사 이벤트로 기록된다.

Examples:

  • Q: 이 광고 소재에 연결된 상품을 연결 해제해줘 params: {'body': [{'ad_channel_name': 'GOOGLE', 'ad_account_id': 'acc-1', 'ad_account_name': '메인 광고계정', 'campaign_id': 'c-1', 'campaign_name': '여름세일', 'adset_id': 'as-1', 'adset_name': '관심사타겟', 'ad_id': 'ad-1', 'ad_name': '여름세일_배너A', 'landing_url': 'https://shop.example.com/p/1001'}]}

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": {
      "body": "<body>"
    },
    "name": "delete_ad_relation"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
project-idNo
auth_methodNojwt

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known, but the description adds material context beyond them: the required `data_management:write` permission, the ad_relation audit event, and the fact that any real deletion asynchronously triggers a match recalculation (force_refresh=True). That side-effect disclosure is exactly what a destructive tool needs, though the interaction between the recalculation and `refresh_ad_relation` is not spelled out.

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?

The content is front-loaded under clear headers (When to use / When NOT to use / Limitations / Examples), so an agent can scan it quickly. The bilingual Korean/English mix and the very long single-line example parameter blob add some reading cost but each section carries real information.

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

Completeness4/5

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

For a destructive, batch, no-content tool, the definition covers matching semantics, required permission, side effects, and explicitly states the empty response body, which substitutes for the absent output schema. The omission of `project-id` and `auth_method` semantics is the only meaningful gap.

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?

The schema has 0% description coverage, so the description carries the burden and does partially: it explains that `body` is a list of `DeleteAdRelationReq` identifier records, that `mapped_product` must be omitted, and that all identifier fields must match exactly, plus a full worked example. However, `project-id` and `auth_method` are never mentioned, leaving part of the 3-parameter surface undocumented.

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 definition pairs a specific verb with a specific resource (removing ad-creative↔product links, returning them to an unmatched state) and explicitly contrasts itself with `update_ad_relation` and `search_ad_relations`. An agent can distinguish it from both siblings without opening any 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 gives explicit when-to-use ('잘못 맺힌 연결을 끊을 때') and when-NOT-to-use guidance, naming the alternative tool (`update_ad_relation`) and the reason (avoids an unnecessary recalculation trigger). Nothing is left to inference.

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