Webmcp commerce tools

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Webmcp commerce tools is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Implement commerce-specific WebMCP tools — product search, cart management, checkout, returns, subscriptions, and support. Use when building agentic shopping experiences on e-commerce websites.

How to use this skill

Skill file

WebMCP Commerce Tools

Before writing code

Fetch live docs:

  1. Fetch https://developer.chrome.com/docs/ai/webmcp for commerce-related examples and guidance
  2. Web-search webmcp agentic commerce e-commerce tools examples for community implementations
  3. Web-search webmcp shopping agent checkout cart tools for commerce workflow patterns
  4. Web-search site:github.com webmcp commerce for open-source commerce tool implementations

Conceptual Architecture

Agentic Shopping Flow

A typical agent-driven shopping session using WebMCP:

User: "Find me wireless headphones under $100"
  → Agent navigates to retailer site
  → Site registers tools: [searchProducts, viewDetails, addToCart, checkout]
  → Agent calls searchProducts(query="wireless headphones", maxPrice=100)
  → Site returns structured product list
  → Agent presents results to user
  → User: "Add the Sony ones to my cart"
  → Agent calls addToCart(productId="sony-wh-1000", quantity=1)
  → Agent: "Added! Proceed to checkout?"
  → User: "Yes, use my saved card"
  → Agent calls checkout(useSavedPayment=true)
  → Site: requestUserInteraction → User confirms → Order placed
  → Agent: "Order #1234 confirmed!"

Core Commerce Tool Set

Every e-commerce site should consider these tool categories:

1. Product Discovery
2. Cart Management
3. Checkout
4. Order Management
5. Account & Subscriptions
6. Support

Tool Design Principles for Commerce

  1. Mirror existing APIs — Tool execute callbacks should call your existing REST/GraphQL APIs
  2. Reuse session — Tools run in the user's authenticated browser session; no extra auth needed
  3. Structured returns — Return JSON with consistent structure (items array, totals, status)
  4. Progressive disclosure — Start with search and browse tools; add checkout only for authenticated users
  5. Confirmation gates — Require user interaction for anything involving money

Multi-Site Agent Workflows

Agents can navigate across multiple retailer sites:

  1. Search on Site A using WebMCP → get results
  2. Search on Site B using WebMCP → get results
  3. Compare across sites at the agent level
  4. Purchase from the best option using that site's checkout tool

Each site maintains its own tools; the agent coordinates across them.

Integration with Backend Protocols

WebMCP tools can delegate to backend protocols:

Best Practices

Fetch the latest WebMCP examples and commerce community patterns before building your tool set.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.