Skip to main content
Glama

AI 重构 listing / AI rewrite listing copy

rewrite_listing

AI 重构 listing 文案(标题/卖点/描述)。当用户说「帮我优化这个商品的标题和卖点」「把这个 listing 改得更像沃尔玛风格」时调用。入参 staging_id(暂存商品)或 product(商品数据对象)二选一;返回重构后的草稿,不直接覆盖线上 listing。Rewrite title, key features and description with AI; returns a draft.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rewrite_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
productNo
store_idNo
staging_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, openWorldHint=true and non-idempotent; the description adds meaningful context by saying it returns a draft and does not overwrite the live listing, which tells the agent the write is contained. It omits behavior an agent would want for a generative, open-world call: whether credits are consumed (a claim_trial_credit sibling hints at metering), expected latency, and what happens to the draft afterwards. Useful addition, but thin for a non-read-only, non-idempotent 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?

Front-loads the purpose, then triggers, then the input-selection rule and the output guarantee — a sensible order. The final English sentence largely restates the opening Chinese sentence, which is mild redundancy but aids clarity for mixed-language use.

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 tool with a free-form nested object, no output schema, and open-world annotation, the description leaves the caller underspecified: the shape of 'product', the role of store_id, and how the returned draft is identified or persisted are all missing. It covers purpose and the not-overwriting guarantee, which is the essential part, but not enough to call it correctly with a nested payload.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and there are three parameters, two of which (staging_id, product) get only a name-level gloss and one (store_id) is never mentioned at all. The 'product' parameter is a free-form nested object whose expected fields are undocumented anywhere, so the description does not compensate for the coverage gap. Only the either/or relationship between staging_id and product is genuinely added meaning.

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?

States a specific verb and resource in both languages: 'AI 重构 listing 文案(标题/卖点/描述)' / 'Rewrite title, key features and description with AI'. The scope (title, key features, description) is concrete enough to distinguish it from validate_listing or publish_listing, but no sibling is named explicitly, so the differentiation is implied rather than stated.

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?

Provides explicit user-utterance triggers ('帮我优化这个商品的标题和卖点', '把这个 listing 改得更像沃尔玛风格'), which is strong when-to-use guidance. It also states that staging_id or product is '二选一', giving a selection rule between two params. It stops short of exclusions or naming the downstream alternative (publish_listing) for when the user wants the result to go live.

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