Skip to main content
Glama

變更商品狀態

listing_action

sold:已賣出(在別處賣掉時也要呼叫)。confirm:確認還在賣並延長 14 天。withdraw:下架。sold 與 withdraw 會取消進行中的鎖定。

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": {
      "manage_url": "<manage_url>",
      "action": "<action>"
    },
    "name": "listing_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
api_keyNo帳號金鑰。Authorization 標頭無法設定時才用這個參數。
manage_urlYes商品的管理連結(上架或 list_my_listings 回傳的 manage_url),也可以直接給商品 id。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "帳號金鑰。Authorization 標頭無法設定時才用這個參數。",
      +  "type": "string"
      +}
    • changedInput schema / properties / manage_url / description
      Previous value: -"上架時回傳的管理連結。"New value: +"商品的管理連結(上架或 list_my_listings 回傳的 manage_url),也可以直接給商品 id。"
  2. First observed

TDQS

A3.8/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 most of the burden and delivers real behavioral detail beyond that: confirm extends the listing by 14 days, and sold/withdraw cancel in-progress locks, a consequential side effect an agent would otherwise not anticipate. It stops short of stating whether sold is irreversible or what permissions are required.

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?

Two compact clauses, one per action, plus a single trailing sentence on lock cancellation — every phrase carries new information and the highest-risk side effect is stated last as a caveat. No filler.

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?

For a state-mutating tool with lock-cancelling side effects, the description covers action semantics well but says nothing about the relationship to overlapping siblings (unpublish_listing) or what the tool returns after a state change, which matters since there is no output schema. Adequate to invoke correctly, but not complete.

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 67% and the enum values carry no per-value descriptions in the schema, so the description's mapping of sold/confirm/withdraw to concrete meanings and side effects is a real addition. The other two parameters (manage_url, api_key) are already documented in the schema, so no further explanation is needed.

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 defines each of the three actions precisely (sold / confirm / withdraw), so an agent knows the tool mutates listing state and what each mode does, including that withdraw means taking the listing down. It never states the overall purpose in a standalone sentence or distinguishes the action from siblings such as unpublish_listing, which handles similar down-listing behavior.

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

Usage Guidelines3/5

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

It gives genuine conditional guidance for one value — 'sold:已賣出(在別處賣掉時也要呼叫)' tells the agent to call this even when the item sold off-platform, and it notes sold/withdraw cancel in-progress locks. However, there is no guidance on when to choose this tool over unpublish_listing, publish_listing, or update_listing for the take-down case.

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.