Skip to main content
Glama

Preview ad rule category

preview_ad_rule_category
Read-only

Preview Ad Rule Category

When to use: 광고 매칭 규칙을 저장하기 전에, 그 대상상품이 어느 기초상품카테고리로 집계될지 확인할 때.

When NOT to use: 이미 저장된 규칙 전체의 미귀속 현황을 훑을 때는 list_unassigned_ad_rule_targets. 규칙 조건이 잡는 광고행 수가 궁금하면 count_ad_rule_matches.

Limitations: 카테고리는 규칙에 저장되는 값이 아니라 mapping_products 에서 파생되는 값이다 — 카테고리를 바꾸려면 상품↔기초상품 매핑을 옮겨야 하고, 규칙 수정으로는 바뀌지 않는다. 카테고리 lookup 은 판매 이력 기반이라 단종·미판매 상품은 '-'로 나온다(커버리지 약 65%). data_management:read 권한 필요.

Examples:

  • Q: 이 상품들로 광고 규칙을 만들면 어떤 기초상품 카테고리로 집계돼? params: {'body': {'mapping_products': [{'shop_id': 1, 'product_id': '1001'}, {'shop_id': 1, 'product_id': '1002'}]}}

Output shape: object: 기초상품카테고리 셀 문자열 + 대상상품별 카테고리·미귀속 여부

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": {
      "mapping_products": "<mapping_products>"
    },
    "name": "preview_ad_rule_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
project-idNo
mapping_productsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already state read-only, non-destructive and closed-world, and the description adds information of real value: the category is derived from mapping_products rather than stored on the rule, so editing the rule cannot change it; the lookup is based on sales history, so discontinued or never-sold products return '-' with roughly 65% coverage; and it requires the data_management:read permission.

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 structure is good: the purpose, guidance, limitations, example and output shape are separated under headings and the usage condition comes first. There is minor redundancy between the title line and the 'Preview Ad Rule Category' heading, but nothing is padded.

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 read-only preview tool with an output schema, the definition supplies the permission requirement, derivation semantics, coverage caveat and an example call, which is ample. The remaining gap is the undocumented optional `project-id` and the unclear required fields inside each mapping_products item.

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%, so the description has to carry the meaning, and it only partly does: the worked example shows that `mapping_products` holds entries with shop_id and product_id, but the optional `project-id` is never explained, and it is unclear whether the other per-item fields (shop_name, brand_name, channel_name, product_name) are needed or merely optional.

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 'When to use' line states a specific verb and resource: check which 기초상품카테고리 the target products will be aggregated into, before saving an ad matching rule. That reads clearly as a pre-save preview and is distinguishable from the count and list siblings it names.

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?

The description gives an explicit 'When to use' condition (before saving a rule) and an explicit 'When NOT to use' clause naming `list_unassigned_ad_rule_targets` for auditing existing rules and `count_ad_rule_matches` for match counts, with the condition that selects each.

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