Skip to main content
Glama

上架商品

create_listing

上架商品,全新或二手都可以;用 is_new 說明是哪一種,不給時依 condition 判斷(寫明「全新」才算全新品)。照片給 https 網址或 base64,最多 8 張,GPS 會自動移除。沒有照片的商品不會公開。要先用 connect_account 連上本人的帳號。

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": {
      "title": "<title>",
      "price": "<price>"
    },
    "name": "create_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceYes新台幣開價。
titleYes
is_newNotrue 是全新品,false 是二手。能上架的賣場不同,例如酷澎只收全新。
photosNo
api_keyNo帳號金鑰。Authorization 標頭無法設定時才用這個參數。
contactNo選填。成交後讓對方看到的聯絡方式,例如 LINE ID。
channelsNo選填。同時同步到已連線的通路,例如 {"ruten":{"class_id":"0009001500130003"}} 或 {"ruten":{},"coupang":{}};通路欄位可省略,由平台補。結果在回應的 channels 與 channel_errors。
locationNo
quantityNo
conditionNo
descriptionNo
floor_priceNo選填。隱藏底價,買家看不到;出價達到就自動成交,賣家的 AI 不在線時也能成交。低於底價的出價會進入議價。
idempotency_keyNo選填。至少 16 字元;重送時可避免重複且會取回同一結果。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / is_new
      Added value: +{
      +  "description": "true 是全新品,false 是二手。能上架的賣場不同,例如酷澎只收全新。",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / channels / description
      Previous value: -"選填。同時同步到已連線的通路,例如 {\"ruten\":{\"class_id\":\"0009001500130003\"}};class_id 可省略。結果在回應的 channels 與 channel_errors。"New value: +"選填。同時同步到已連線的通路,例如 {\"ruten\":{\"class_id\":\"0009001500130003\"}} 或 {\"ruten\":{},\"coupang\":{}};通路欄位可省略,由平台補。結果在回應的 channels 與 channel_errors。"
  3. Changed1 schema field changed
    • addedInput schema / properties / channels
      Added value: +{
      +  "description": "選填。同時同步到已連線的通路,例如 {\"ruten\":{\"class_id\":\"0009001500130003\"}};class_id 可省略。結果在回應的 channels 與 channel_errors。",
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description carries the behavioral load and does add useful traits: GPS metadata is stripped automatically, no-photo listings stay non-public, is_new determines which channels will accept the listing (e.g. Coupang new-only), and condition is the fallback signal for new/used. It does not describe the response, partial-failure handling, or rate limits, which leaves some gaps for a mutating tool.

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 core action and its two most important caveats (photo requirement, account prerequisite) are front-loaded, and every sentence carries information. The single run-on paragraph packs several unrelated rules together, which slightly hurts scannability.

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 13-parameter creation tool with a nested channels object and no output schema, the description covers the highest-risk gotchas: prerequisite account connection, photo limits and privacy stripping, and the visibility consequence of omitting photos. Remaining gaps are channel-sync behavior and what a caller should expect back, though the schema already sketches channels and idempotency.

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?

With 13 parameters and only 54% schema description coverage, the description compensates partially: it specifies photo formats (https URL or base64) and the is_new/condition fallback rule ('全新' required to count as new). It says nothing about channels, floor_price, idempotency_key, quantity, contact, or location, all of which are left to the schema (or undocumented).

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 opens with a specific verb and resource (上架商品, list a product) and immediately scopes it to new or secondhand goods, which is more than a restatement of the name. It does not distinguish itself from near-neighbours such as publish_listing, add_listing_photos, or update_listing, so an agent must infer the boundary from names alone.

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 a hard prerequisite (must first connect your own account with connect_account) and a conditional rule (listings without photos are not made public), which is real when-to-use context. It stops short of explicit exclusions or of saying when to use this instead of publish_listing or update_listing.

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.