Tool tree
Demo: Pre-purchase seller trust verification as a WebMCP tool for AI agent commerce workflows.
Implementation
gradeNot graded
gradeNot graded
browse_productsAnswer
Browse available products at VoltGear Electronics. Returns product catalog with names, prices, and stock levels.
View tool JSON
{
"name": "browse_products",
"kind": "answer",
"impl": "imperative",
"description": "Browse available products at VoltGear Electronics. Returns product catalog with names, prices, and stock levels.",
"inputSchema": {
"type": "object",
"properties": {
"category": {
"type": "string"
}
}
},
"page": "/webmcp-demo"
}add_to_cartAction
Add a product to the shopping cart by product ID and quantity.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Add a product to the shopping cart by product ID and quantity.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string"
},
"quantity": {
"type": "number"
}
},
"required": [
"productId"
]
},
"page": "/webmcp-demo"
}checkoutSensitive Action
Complete the purchase. Processes payment for all items in cart.
View tool JSON
{
"name": "checkout",
"kind": "transact",
"impl": "imperative",
"description": "Complete the purchase. Processes payment for all items in cart.",
"inputSchema": {
"type": "object",
"properties": {
"paymentMethod": {
"type": "string"
},
"shippingSpeed": {
"type": "string"
}
},
"required": [
"paymentMethod"
]
},
"page": "/webmcp-demo"
}check_seller_policyAnswer
Verify a seller's policies before purchase. Returns a structured, cryptographically signed assessment (Ed25519 v2.0) with: policy facts (return window, shipping costs, arbitration clauses), detected clauses labelled as notable or standard boilerplate (is_standard_boilerplate), and a flat flags array of clause IDs. The signed assessment can be independently verified by any party using the public JWKS key. Use before any e-commerce purchase.
View tool JSON
{
"name": "check_seller_policy",
"kind": "answer",
"impl": "imperative",
"description": "Verify a seller's policies before purchase. Returns a structured, cryptographically signed assessment (Ed25519 v2.0) with: policy facts (return window, shipping costs, arbitration clauses), detected clauses labelled as notable or standard boilerplate (is_standard_boilerplate), and a flat flags array of clause IDs. The signed assessment can be independently verified by any party using the public JWKS key. Use before any e-commerce purchase.",
"inputSchema": {
"type": "object",
"properties": {
"seller_url": {
"type": "string",
"description": "URL of the seller or product page"
},
"policy_text": {
"type": "string",
"description": "Raw policy text if already available (skips fetch)"
}
},
"required": [
"seller_url"
]
},
"page": "/webmcp-demo"
}