🛠️ 工具 (17个)
searchProducts
Use when user asks 'does DemoCoffee have X', 'search for coffee/latte', 'show me the menu'. Returns matching products with prices.
getProductDetail
Use when user clicks on a product from search results and wants full details (images, description, variants). Requires productId from searchProducts response.
previewOrder
Use before creating an order to show the user a price preview. Returns estimated total. Does NOT place the order.
createOrder
Place a real order at DemoCoffee. ⚠️ DESTRUCTIVE: charges real money. Always call previewOrder first and confirm total with user.
queryOrder
Check order status. Use when user asks 'where is my order', 'has it shipped', or 'order status'.
cancelOrder
Cancel a pending order. ⚠️ DESTRUCTIVE: cannot be undone. Always confirm with user before calling.
queryCoupons
Get available coupons and discounts for DemoCoffee. Use when user asks 'any coupons', 'deals', or wants to apply a discount.
queryDelivery
Get delivery time, cost, and coverage info. Use when AI needs to compare delivery promises across brands.
queryReturns
Get return policy: window, conditions, process. Use when comparing brands or user asks about returns.
agentIdentity
Get the verified AI Agent identity certificate for DemoCoffee. Use when AI needs to verify who this brand agent is, whether it is authenticated, and what protocols it supports (MCP, x402). Returns agent_id, verification status, and protocol compatibility.
comparePrices
Compare 2-5 products side-by-side from DemoCoffee. Use when user asks to compare specific products or wants to find the best value. Requires productIds array from searchProducts.
getAffiliateLink
Get a trackable affiliate/promotion link for a product. Use when AI needs to generate a commission-earning purchase link for the user.
queryStoreHours
Get opening hours for DemoCoffee stores. Use when user asks 'when does the store open', 'business hours', or 'is it open now'.
nearbyStores
Find DemoCoffee stores near a geographic location. Use when user asks 'find stores near me', 'stores in Shanghai', or provides a location.
queryPromotions
Get current promotions, deals, and limited-time offers from DemoCoffee. Use when user asks 'any deals', 'what's on sale', 'current promotions', or 'discounts'.
mcpSearch
Search available MCP tools for DemoCoffee. Use FIRST to discover tools before calling mcpExecute. Returns matching tool names, descriptions, and parameter schemas.
mcpExecute
Execute a discovered MCP tool. Call mcpSearch first to find the correct tool name and parameters.