Skip to main content
Glama

Count matches per product rule

get_item_mapping_counts
Read-only

Get Item Mapping Counts

When to use: SKU 매핑 규칙별로 실제 적용된 결과 건수(applied_result_count)를 집계 조회할 때. 규칙이 얼마나 많은 옵션에 매칭됐는지 확인한다.

Limitations: Trino 집계라 비교적 무겁다 — 규칙 목록(list_item_mappings)과 따로 부르는 도구다. 파라미터 없음.

Examples:

  • Q: 상품 매칭 규칙별로 몇 건이나 적용됐는지 알려줘 params: {}

Output shape: list: 규칙별 applied_result_count

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_item_mapping_counts"
  }
}

Input Schema

NameRequiredDescriptionDefault
project-idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered, and the description adds genuinely new cost context: this is a Trino aggregation and therefore relatively heavy. It also sketches the output shape (a per-rule list of applied_result_count). The only flaw is the false 'no parameters' claim, which conflicts with the schema rather than the annotations.

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?

Usage, limitation, example, and output shape are cleanly partitioned and front-loaded, with no filler prose. Minor waste comes from the title-duplicating header line and the bilingual phrasing.

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

Completeness3/5

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

An output schema exists, so the brief return-value note is sufficient and the heavy-query warning is a useful addition. However, for a project-scoped aggregation the sole parameter is denied outright, so an agent cannot tell whether it is querying all projects or one.

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

Parameters2/5

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

Schema description coverage is 0% for the single optional project-id parameter, so the description is the only place its meaning could be explained. Instead the description asserts '파라미터 없음' (no parameters), which is actively misleading about the scope of the aggregation and leaves 'params: {}' as the demonstrated call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: aggregate applied_result_count per SKU mapping rule, and explicitly contrasts it with list_item_mappings (counts vs. the rule list). The opening line 'Get Item Mapping Counts' only restates the name, but the 'When to use' body carries the real purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit trigger condition (checking how many options each rule matched) plus a worked example question and an empty params call. It also tells the agent this is a separate call from list_item_mappings, though it does not state a case where this tool should be avoided.

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