Skip to main content
Glama

搜尋通路的商品分類

search_channel_classes
Read-only

用關鍵字找通路的商品分類代碼;也可以給 parent 逐層瀏覽(最上層給空字串)。上架要用最末層的分類。酷澎的分類表在有賣家連線後才查得到。

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": {
      "channel": "<channel>"
    },
    "name": "search_channel_classes"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
parentNo
api_keyNo帳號金鑰。Authorization 標頭無法設定時才用這個參數。
channelYes通路代號。ruten 是露天市集(二手、全新都能賣);coupang 是酷澎(只收全新商品)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "帳號金鑰。Authorization 標頭無法設定時才用這個參數。",
      +  "type": "string"
      +}
    • changedInput schema / properties / channel / description
      Previous value: -"通路代號。ruten 是露天市集。"New value: +"通路代號。ruten 是露天市集(二手、全新都能賣);coupang 是酷澎(只收全新商品)。"
    • changedInput schema / properties / channel / enum
      Previous value: -[
      -  "ruten"
      -]New value: +[
      +  "ruten",
      +  "coupang"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

With only readOnlyHint=true supplied, the description adds real behavioral context: the empty-string sentinel for the top level, the precondition that Coupang categories are unavailable until a seller connection exists, and the rule that only leaf categories are valid for listings. It does not describe the shape of the returned codes or pagination, keeping it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short clauses, front-loaded with the primary keyword-search purpose followed by the alternate mode and then two operational caveats. Every sentence carries information an agent needs; nothing is redundant with the 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?

For a 4-parameter read-only lookup with no output schema, the description covers purpose, both query modes, sentinel values, prerequisites, and the leaf-category rule. The main omission is any hint about what a returned category record contains, which leaves the agent guessing at the response shape.

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?

Schema coverage is 50%, with q and parent undocumented in the schema; the description compensates by explaining q as keyword search and parent as hierarchical browsing with empty string meaning the root. The channel and api_key parameters are already covered by schema descriptions, so the remaining gap is only the unwritten interaction between q and parent when both are supplied.

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: find a channel's product-category codes, with two explicit modes (keyword search, parent-based drill-down). An agent can distinguish this from listing-side siblings like search_listings or list_channels because the object is the category taxonomy, not listings or channels.

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?

Gives concrete selection rules between the two modes (use q for keywords, use parent to browse level by level, empty string for the top level) and an operational constraint: publishing requires the leaf-most category. It also notes Coupang's table only exists after a seller connection, which tells the agent when the call will be futile. No sibling alternatives are named, so it falls short of a 5.

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.