Skip to main content
Glama

上架前核验 / Pre-publish validation

validate_listing
Read-onlyIdempotent

上架前核验。当用户问「这个商品能上架吗,还差什么」时调用:跑沃尔玛预检(类目/属性/价格/UPC 等规则)并汇总该 SKU 的合规闸门状态,列出阻塞项。入参 staging_id 或 product 二选一。Validate a product against Walmart listing rules and show the compliance gate status before publishing.

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": "validate_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
productNo
store_idNo
staging_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered structurally. The description adds real behavioral content beyond that: it runs a named rule set and aggregates gate status into a list of blockers, which tells the agent what to expect. It says nothing about external-call latency, failure modes, or what happens when rules are unavailable, despite openWorldHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The trigger and the scope statement are front-loaded, which is good. But the entire content is duplicated in Chinese and English, roughly doubling length without adding information, and the parameter constraint is buried mid-sentence rather than separated out.

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?

With no output schema, the description does sketch the return ('合规闸门状态' plus '阻塞项'), which is the most important thing for an agent to know. What remains missing is how the free-form product payload should be shaped and what store_id governs, both material for correct invocation of a 3-parameter tool with a nested object.

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

Parameters3/5

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

Schema description coverage is 0%, so the description carries the full burden, and it does deliver one critical fact the schema cannot express: staging_id and product are mutually exclusive ('二选一') even though the schema marks nothing required. However, store_id is never explained and the free-form nested 'product' object's expected shape is left entirely undefined.

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 ('跑沃尔玛预检…汇总该 SKU 的合规闸门状态,列出阻塞项') and names the concrete rule domains checked (类目/属性/价格/UPC). It implicitly separates itself from publish_listing by framing the call as pre-publish, but it never distinguishes itself from the sibling check_compliance, which an agent could easily confuse with this.

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?

Gives an explicit user-facing trigger ('当用户问「这个商品能上架吗,还差什么」时调用'), which is stronger than most definitions. It also states the staging_id/product either-or selection. It stops short of exclusions, e.g. when to prefer check_compliance or get_staging_item instead.

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