變更商品狀態
listing_actionsold:已賣出(在別處賣掉時也要呼叫)。confirm:確認還在賣並延長 14 天。withdraw:下架。sold 與 withdraw 會取消進行中的鎖定。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| manage_url | Yes | 上架時回傳的管理連結。 |
listing_actionsold:已賣出(在別處賣掉時也要呼叫)。confirm:確認還在賣並延長 14 天。withdraw:下架。sold 與 withdraw 會取消進行中的鎖定。
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| manage_url | Yes | 上架時回傳的管理連結。 |
Changes observed during successful MCP inspections.
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 behavioral burden and does it well: it discloses that confirm extends the listing by 14 days and that sold and withdraw cancel in-progress locks (a real destructive side effect on other records). Missing are reversibility, whether sold is terminal, and required permissions, which keeps it from a 5.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single dense line where every clause earns its place — no filler, and the enum meanings lead. It would be marginally better front-loaded with one purpose sentence before the action list, since the reader currently learns what the tool is only by inference from the enum entries.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 2-parameter mutation tool with no output schema and only readOnlyHint=false, the description covers the state transitions and their lock-cancelling side effects. It does not say what a call returns, whether the action is idempotent or reversible, or what happens on invalid transitions (e.g. confirm after sold), which an agent needs before invoking a mutation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 50% and the action enum has no schema description, but the description supplies meaning for every enum value, including the non-obvious 'call sold when sold elsewhere' rule. manage_url is documented in the schema itself as the management link returned at listing time, so the combined coverage is good; only edge semantics like whether withdraw on an already-sold listing is legal are absent.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description enumerates each of the three actions (sold / confirm / withdraw) with a concrete meaning, so an agent can tell this is a listing state-transition tool and what each mode does. It never states the verb+resource explicitly ('change a listing's status') and gives no differentiation from the sibling update_listing, which edits listing details, so it stops short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage conditions are embedded per action: sold should also be called when the item sells elsewhere, confirm asserts the item is still on sale, withdraw takes it down. That covers the intent of each action but gives no guidance on when to prefer this tool over update_listing, cancel_request, or deal_action, and no when-not-to-use cases.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.