scan_competitor
Analyze competitor pricing, features, messaging, funding, strengths, and weaknesses to inform strategic business decisions.
Instructions
Full competitor scan — pricing, features, messaging, funding, strengths, weaknesses. Cost: $0.010 USDC. Service: compwatch.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | Yes | ||
| url | No | ||
| focus | No |
Implementation Reference
- src/index.ts:166-223 (handler)The `CallToolRequestSchema` handler dynamically resolves and executes any requested tool, including 'scan_competitor', by fetching it from a remote registry and delegating the execution to the `callTool` function.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; let registry: Registry; try { registry = await fetchRegistry(); } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Failed to fetch tool registry", detail: String(error) }), }, ], }; } const tool = registry.tools.find((t) => t.name === name); if (!tool) { return { content: [ { type: "text", text: JSON.stringify({ error: `Tool '${name}' not found`, available_tools: registry.tools.map((t) => t.name), }), }, ], }; } try { const result = await callTool(tool, args as Record<string, unknown>); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Tool call failed", tool: name, service: tool.service, detail: String(error), }), }, ], }; } });