Skip to main content
Glama

AI SHOP (ShadowOS Market)

create_listing

上架一件商品或服務。需要有「上架」權限的金鑰。價格為新台幣整數。最短只要:title 標題、category_path 分類、kind(goods 商品/service 服務,不填會依分類判斷)、pricing_mode 與 price_twd(報價制 quote 不用填價格);服務另加 service_mode。attributes 與 tags 選填(每個最末層分類最多 2 個必填屬性):分類請先呼叫 get_taxonomy 或 suggest_listing_fields 取得,要選到最末層。同一賣家 24 小時內標題+價格+分類都相同會被擋(duplicate_listing,回傳原商品編號);每天可刊登件數依信任等級(已驗證:L1 20、L2 25、L3 50、L4 100;尚未驗證身分每天 10 件)。上架後記得定期用 confirm_listing 按「我還在」。

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>",
      "category_path": "<category_path>"
    },
    "name": "create_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo面交/出貨地區
kindNogoods 商品(預設)、service 服務;不填會依分類判斷
langNo選填。內容語言(BCP-47),例如 zh-Hant(預設)、en、en-INzh-Hant
tagsNo選填。標籤最多 10 個,例如 ["藍色", "附原廠盒"]
brandNo品牌
titleYes商品標題
regionNo選填。海外地區(自由文字);台灣商品用 city
countryNo選填。商品所在國家(ISO 3166-1 alpha-2),例如 TW(預設)、IN、ZM、USTW
fx_dateNo選填。匯率日期 YYYY-MM-DD
fx_rateNo選填。換算用匯率(1 單位原幣 = 多少新台幣)
capacityNo服務同時可接幾件(1~999);不填=不限名額;商品固定 1
categoryNo分類名稱
conditionNo成色(只有商品需要):new 全新、like_new 近全新、good 良好、fair 有使用痕跡、for_parts 零件機good
lead_timeNo時段或交期,例如「平日晚上、預約後 3 天內」
price_twdNo售價(新台幣整數);pricing_mode=from 時是起價;報價制 quote 不用填
attributesNo選填(建議填)。最末層分類的固定屬性,例如 {"model": "iPhone 13", "storage": "128GB"}
deal_termsNo選填。付款與交貨方式說明(300 字內),例如「面交現金、可 LINE Pay」;平台不經手款項也不驗證,買賣雙方自己約定
descriptionNo商品說明
price_amountNo選填。原幣標價,整數元(不是最小單位),須與 price_currency 一起填;price_twd 仍要填換算後的新台幣值
pricing_modeNo價格方式:fixed 固定價、from 起價、quote 報價(不標價,買家要先留言詢價)fixed
service_areaNo服務地區,例如「台北市、新北市」(線上服務可省略)
service_modeNo服務才需要:onsite 到府或到店、online 線上、both 兩者皆可
category_pathYes必填。分類路徑,從第一層選到最末層,例如 ["3C 與手機", "手機", "Apple iPhone"]
price_currencyNo選填。原幣(ISO 4217),例如 INR、ZMW、USD
shipping_optionsNo交易方式,例如 ["面交", "超商取貨"]
repost_source_urlNo轉貼別人的貼文時填原文網址(只收 Threads、Facebook);先用 prepare_repost 整理草稿並讓使用者確認。填了就是轉貼:摘要 300 字內、不可放原賣家個資、不能交易
original_price_twdNo選填商品原價,須大於或等於售價;服務忽略
repost_source_textNo轉貼時貼上的原文內文,只用來檢查摘要有沒有照抄,不會存下來

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and then some: it discloses the auth requirement, the duplicate-listing rule (same title+price+category within 24h is blocked with a duplicate_listing error returning the original listing id), and concrete daily quotas by trust level (L1 20 / L2 25 / L3 50 / L4 100; unverified 10). It also flags post-creation maintenance duties via confirm_listing.

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?

Front-loaded with purpose then minimal call requirements, prerequisites, failure modes, and quotas — every sentence earns its place. It is a single dense block of prose without visual separation, which slightly hurts scanability for a tool this parameter-heavy.

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 auth, quota, duplicate behavior, prerequisite taxonomy lookup, and the repost path with its content restrictions — strong for a 28-parameter, zero-annotation tool. The remaining gap is that no output schema exists and the description never states what a successful creation returns (listing id? URL?), only what a duplicate returns.

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 100%, so the baseline is 3, but the description adds genuine conditional-requiredness logic the schema does not express: the true minimal set is title + category_path + kind + pricing_mode + price_twd (price omitted for quote mode), services additionally need service_mode, and leaf categories may carry up to 2 mandatory attributes. That goes beyond the schema's flat required: [title, category_path].

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?

Opens with a specific verb+resource pair (上架一件商品或服務) and immediately distinguishes the two listing kinds (goods vs service) and their differing field requirements. An agent can tell this apart from get_listing, search_listings, and prepare_repost 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?

Explicit when-to-use chain: call get_taxonomy or suggest_listing_fields first to obtain a leaf category_path, then create_listing, then periodically use confirm_listing ('我還在'). It also names the alternative escape hatch (prepare_repost for reposts) and states prerequisites (an '上架'-scoped key).

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