botindex_commerce_compare
Compare merchant offers across agentic commerce protocols (ACP, UCP, x402) with ranked results showing trust scores, fees, and checkout details.
Instructions
Compare merchant offers across agentic commerce protocols (ACP, UCP, x402). Ranked offers with trust scores, fees, checkout protocol details. $0.05
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Product search query | |
| maxPrice | No | Maximum price filter | |
| protocol | No | Preferred checkout protocol | |
| limit | No | Max results (default 10, max 50) |
Implementation Reference
- src/index.ts:213-229 (handler)The "botindex_commerce_compare" tool is dynamically registered at runtime by iterating over a catalog fetched from the BotIndex API. The handler logic delegates the request to the fetchBotindex helper function.
server.tool( tool.name, tool.description, zodSchema, async (args: Record<string, any>) => { const params: Record<string, string> = {}; if (tool.params) { for (const p of tool.params) { if (args[p.name] !== undefined) { params[p.name] = String(args[p.name]); } } } const data = await fetchBotindex(tool.path, params); return { content: [{ type: 'text', text: toToolText(data) }] }; }, );