Skip to main content
Glama

Get product matching rule

get_item_rule_mapping
Read-only

Get Rule Mapping

When to use: 상품 매칭 규칙 하나(seq)의 조건(mapping_rule·mapping_rule_fe)·연결 기초상품·순서를 자세히 볼 때. 규칙을 고치거나 지우기 전에 현재 값을 확인하는 용도.

When NOT to use: 규칙 목록 전체는 list_item_mappings. 규칙이 실제로 몇 건에 적용됐는지는 get_item_mapping_counts.

Limitations: path.seq 는 list_item_mappings 결과의 seq 다. 없는 seq 는 404. mapping_item 에는 지금 기초상품으로 남아 있는 대상만 나온다(지워진 기초상품은 빠진다). 규칙별 적용 건수는 여기 없고 get_item_mapping_counts 로 본다. data_management:read 권한 + ITEM_MAPPING 스코프 필요.

Examples:

  • Q: 이 상품 매칭 규칙의 조건을 자세히 보여줘 params: {'path': {'seq': 12}}

Output shape: object: 규칙 하나(seq·mapping_name·priority·mapping_rule·mapping_rule_fe·mapping_item 등)

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": "get_item_rule_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
seqYes
project-idNo

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?

Beyond the readOnlyHint/non-destructive annotations, it discloses that seq must come from list_item_mappings results, that a missing seq returns 404, and that mapping_item lists only base products that still exist (deleted ones are omitted). It also names the required permission and scope (data_management:read + ITEM_MAPPING), which the annotations do not 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?

Well front-loaded with labeled sections (when to use / when not / limitations / example / output shape) and no filler prose. Minor waste: the heading 'Get Rule Mapping' simply restates the title, and the output-shape line largely duplicates the existing output schema.

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?

Covers preconditions, permission requirements, error behavior, and the notable exclusion of deleted base products, and an output schema already handles return values. The one real gap is the undocumented project-id parameter, which an agent cannot reason about from this description or the schema.

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 load; it does explain that path.seq is a seq taken from list_item_mappings output and what happens when it is invalid. However, the second parameter (project-id) is never mentioned, leaving half the parameters 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 (fetch one product matching rule by seq, including its conditions, linked base products, and ordering), which is clearly narrower than the list or count siblings. An agent can distinguish it from list_item_mappings and get_item_mapping_counts 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?

Explicitly gives both directions: use when inspecting one rule's mapping_rule/mapping_rule_fe, linked base products and priority, or before editing/deleting; do not use for a full rule list (list_item_mappings) or for per-rule application counts (get_item_mapping_counts). A concrete example query with params is included.

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