Skip to main content
Glama

Remove product option matches

delete_item_relations
Destructive

Delete Item Relations

When to use: 잘못 맺힌 옵션↔기초상품 연결을 끊을 때(미매칭 상태로 되돌린다).

When NOT to use: 다른 기초상품으로 바꾸는 것뿐이라면 삭제 후 재생성하지 말고 update_item_relation 으로 덮어쓴다.

Limitations: body 는 ItemRelationProductSchema(= 옵션 식별 필드 6개) 리스트다 — mapped_items 는 넣지 않는다. brand_name·channel_name·product_id·option_id·product_name·option_name 이 모두 일치해야 지워지므로 search_item_relations 결과를 그대로 복사해 넘긴다. data_management:write 권한 필요. item_relation 스코프 감사 이벤트로 기록되므로 복원 가능하다.

Examples:

  • Q: 이 옵션에 연결된 기초상품을 연결 해제해줘 params: {'body': [{'brand_name': '브랜드A', 'channel_name': '스마트스토어', 'product_id': '1001', 'option_id': '1', 'product_name': '수분크림', 'option_name': '50ml 단품'}]}

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_item_relations"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
project-idNo
auth_methodNojwt

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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, but the description adds context the annotations cannot: a `data_management:write` permission requirement, recording as an item_relation-scope audit event making it restorable, and an empty body on success. What it omits is the failure mode — what happens if zero or several rows match the exact-match payload — which is the one behavioral detail an agent most needs before a destructive call.

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?

Labeled sections (When to use / When NOT to use / Limitations / Examples / Output shape) make it skimmable and front-load the decision-relevant content; the worked query-plus-params example is concrete rather than decorative. The bare "Delete Item Relations" opener merely restates the tool name and could be cut, but overall there is little waste.

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, no-output-schema tool this is close to sufficient: exact-match semantics, permissions, audit recoverability, and the zero-content return are all stated, which is what an agent needs before an irreversible call. The residual gap is the undocumented `project-id`/`auth_method` parameters and the undefined no-match/partial-match behavior.

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

Parameters4/5

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

With schema description coverage at 0%, the description carries the full burden, and it does so for the dominant `body` parameter: it names `ItemRelationProductSchema`, enumerates the six identity fields, warns that `mapped_items` must not be included, and states that all six must match exactly so callers can copy `search_item_relations` output verbatim. It says nothing about `project-id` or `auth_method`, so two of three parameters remain undocumented in both schema and description.

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?

States a specific verb and resource ("Delete Item Relations") and immediately narrows the scope to severing wrong option↔base-product links and returning them to an unmapped state. It also names the sibling it is not (`update_item_relation`), so an agent can separate the two without opening a 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?

Explicit when-to-use (wrongly formed option↔base product connections) and when-NOT-to-use with the correct alternative and rationale ("don't delete-and-recreate if you just want to swap base products; overwrite with `update_item_relation`"). It further routes the agent to `search_item_relations` to source the payload, which removes the main ambiguity in calling it.

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