🛠️ 工具 (18个)
queryStores
Use when user asks 'where is the nearest 如家 store', 'any stores in Beijing', or 'find a store near me'. Returns store list with addresses.
searchProducts
Use when user asks 'does 如家 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 如家. ⚠️ 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 如家. 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 如家. 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 如家. 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.
makeReservation
Make a reservation or booking at 如家. Use when user asks to 'book a table', 'reserve a room', or 'make an appointment'.
queryStoreHours
Get opening hours for 如家 stores. Use when user asks 'when does the store open', 'business hours', or 'is it open now'.
createTicket
Create a customer service ticket for 如家. Use when user has a complaint, wants to report an issue, or needs help beyond standard tools.
mcpSearch
Search available MCP tools for 如家. 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.