Skip to main content
Glama

連線通路

connect_channel

把賣家在外部通路的賣場連上來。credentials 是賣家自己向通路申請的金鑰,只在本人提供時使用;會先向通路驗證,再加密保存。露天:credentials 給 api_key、secret_key、salt_key,另外必填 location。酷澎:credentials 給 access_key、secret_key,另外必填 vendor_user_id;金鑰要在酷澎後台 WING 選「自行開發」並登記 list_channels 說明裡的來源 IP。回應有 pending 表示金鑰存好了但通路還沒放行,稍後呼叫同步即可。連線後用 publish_listing 或 create_listing 的 channels 把商品同步過去。

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>",
      "credentials": "<credentials>"
    },
    "name": "connect_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo帳號金鑰。Authorization 標頭無法設定時才用這個參數。
channelYes通路代號。ruten 是露天市集(二手、全新都能賣);coupang 是酷澎(只收全新商品)。
courierNo選填,酷澎用。宅配物流:TWL_KERRY 嘉里(預設)、TW_HCT 新竹。
locationNo露天必填。出貨地縣市,例如 台中市。
ship_daysNo選填,酷澎用。下單後幾天內出貨,預設 3。
credentialsYes露天:api_key、secret_key、salt_key。酷澎:access_key、secret_key。
shipping_feeNo選填,酷澎用。宅配運費,0 是免運(賣家負擔),預設 65。
stock_statusNo選填。多久內出貨。
used_conditionNo選填,露天用。二手商品沒寫用多久時要標示的使用期間代碼,預設 9(三年以上)。
vendor_user_idNo酷澎必填。賣家登入酷澎後台 WING 的帳號。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / channel / description
      Previous value: -"通路代號。ruten 是露天市集。"New value: +"通路代號。ruten 是露天市集(二手、全新都能賣);coupang 是酷澎(只收全新商品)。"
    • changedInput schema / properties / channel / enum
      Previous value: -[
      -  "ruten"
      -]New value: +[
      +  "ruten",
      +  "coupang"
      +]
    • addedInput schema / properties / courier
      Added value: +{
      +  "description": "選填,酷澎用。宅配物流:TWL_KERRY 嘉里(預設)、TW_HCT 新竹。",
      +  "enum": [
      +    "TWL_KERRY",
      +    "TW_HCT"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / credentials / description
      Added value: +"露天:api_key、secret_key、salt_key。酷澎:access_key、secret_key。"
    • addedInput schema / properties / credentials / properties / access_key
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / credentials / required
      Previous value: -[
      -  "api_key",
      -  "secret_key",
      -  "salt_key"
      -]New value: +[
      +  "secret_key"
      +]
    • changedInput schema / properties / location / description
      Previous value: -"出貨地縣市,例如 台中市。"New value: +"露天必填。出貨地縣市,例如 台中市。"
    • addedInput schema / properties / ship_days
      Added value: +{
      +  "description": "選填,酷澎用。下單後幾天內出貨,預設 3。",
      +  "maximum": 6,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / shipping_fee
      Added value: +{
      +  "description": "選填,酷澎用。宅配運費,0 是免運(賣家負擔),預設 65。",
      +  "enum": [
      +    0,
      +    65,
      +    70,
      +    90,
      +    105,
      +    135,
      +    180,
      +    285,
      +    365
      +  ],
      +  "type": "integer"
      +}
    • changedInput schema / properties / used_condition / description
      Previous value: -"選填。二手商品沒寫用多久時要標示的使用期間代碼,預設 9(三年以上)。"New value: +"選填,露天用。二手商品沒寫用多久時要標示的使用期間代碼,預設 9(三年以上)。"
    • addedInput schema / properties / vendor_user_id
      Added value: +{
      +  "description": "酷澎必填。賣家登入酷澎後台 WING 的帳號。",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "channel",
      -  "credentials",
      -  "location"
      -]New value: +[
      +  "channel",
      +  "credentials"
      +]
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, so the description carries the burden and does so well: credentials are validated against the channel first, then encrypted and persisted, and a pending response means keys were stored but the channel has not yet granted access. It also discloses external prerequisites (WING self-develop registration, IP whitelisting) that an agent cannot infer from any structured field.

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?

Purpose is front-loaded, then key-handling semantics, then a per-channel breakdown, then response interpretation, then the next step — a deliberate progression with no filler. The dense, telegraphic style suits a parameter-heavy tool and every clause carries operational information.

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

Completeness5/5

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

For a 10-parameter write tool with a nested credentials object and no output schema, the description covers what annotations omit: validation and encryption behavior, per-channel required combinations, external setup prerequisites, and how to interpret the pending state. An agent has enough to call it correctly and to act on the result.

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 description coverage is 100%, so the baseline is 3; the description earns an extra point by synthesizing the cross-field conditional rules in one place — Ruten needs api_key/secret_key/salt_key plus location, Coupang needs access_key/secret_key plus vendor_user_id — which the schema only states piecemeal per property. It does not add format or validation detail beyond that grouping.

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 opening sentence gives a specific verb and resource (connect a seller's storefront on an external channel) and the body immediately scopes it to two concrete channels with their distinct required fields, which separates it cleanly from disconnect_channel and from the sync tools. An agent can identify the operation and its two variants without opening the schema.

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?

Usage context is explicit: prerequisites are named (Coupang WING 'self-developed' registration and source-IP whitelisting per list_channels), and the follow-up path is spelled out (after connecting, use publish_listing or create_listing with channels; if the response is pending, call sync later). What is missing is the negative/exclusion side — nothing says when not to call this (e.g. what happens on re-connect, or that disconnect_channel handles removal).

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.