Skip to main content
Glama

提交上架 / Publish to Walmart

publish_listing
Destructive

把暂存商品提交上架到沃尔玛店铺。默认 dry_run=true 只做预演:返回将提交的商品、合规闸门与预检结果,不真上架。真上架必须显式 dry_run=false 并提供唯一 idempotency_key(防 Agent 重试导致重复上架;同键同参数重复调用只返回首次结果)。任一商品没有 7 天内的有效合规结论(能卖)时拒绝执行(fail-closed)。若商品未做人工审核,portal 会先返回 HUMAN_REVIEW_CONFIRM_REQUIRED 与 review_confirmation_token:把情况告知用户、取得明确同意后,用同一个 idempotency_key 加 review_confirmation_token 重提(等同用户在网页端勾选「直接提交」)。Publish staging items to a Walmart store: dry-run by default; real publish needs dry_run=false plus a unique idempotency_key and a fresh passing compliance verdict; unreviewed items require the portal review-confirmation token flow.

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": {
      "staging_ids": "<staging_ids>",
      "store_id": "<store_id>"
    },
    "name": "publish_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
store_idYes
staging_idsYes
idempotency_keyNo
review_confirmation_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructive=true, idempotent=false, openWorld=true), the description discloses the fail-closed gate, the dry-run vs. real-publish distinction, the duplicate-publish protection of the idempotency key ('same key + same params returns only the first result'), and the human-review token flow. This is exactly the behavioral context an agent needs before attempting a destructive write.

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 critical constraint (dry-run default) is front-loaded and the flow is ordered: preview, then real publish, then compliance gate, then review token. The closing English sentence largely restates the Chinese text, so it is somewhat longer than strictly necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, multi-step write tool with no output schema and zero schema description coverage, the definition covers the preconditions, the failure modes, the retry-safe mechanism, and the shape of the dry-run response. An agent can act correctly without additional documentation.

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 description coverage is 0%, so the description must carry the load, and it explains dry_run's default and effect, the uniqueness and retry semantics of idempotency_key, and the origin/usage of review_confirmation_token. staging_ids and store_id are only implicitly covered (staging items, Walmart store), which is a minor gap given the 5-parameter surface.

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 opening sentence states a specific verb and resource (submit staging items for publishing to a Walmart store) and the English sentence repeats it with the dry-run default. It doesn't name siblings like validate_listing or check_compliance directly, but the compliance-verdict precondition implicitly separates this tool from those read-only checks.

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?

It explicitly says the default is a preview (dry_run=true) and that a real publish requires explicit dry_run=false plus a unique idempotency_key, and it states the fail-closed condition when any item lacks a valid compliance verdict. It also gives a concrete escalation path when HUMAN_REVIEW_CONFIRM_REQUIRED is returned, including when to ask the user and how to resubmit.

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