lexicon_compare_vs
Compare two vendors or products head-to-head using live evidence from 20 independent sources and PESTLE Triangulation to generate a structured comparison report.
Instructions
Head-to-Head VS comparison between two vendors or products. Retrieves live evidence from 20 independent web sources and applies PESTLE Triangulation to produce a structured comparison report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vendorA | Yes | First vendor or product name | |
| vendorB | Yes | Second vendor or product name | |
| industry | No | Industry context (e.g. fintech, healthcare, SaaS) |
Implementation Reference
- index.js:10-22 (registration)The tool 'lexicon_compare_vs' is registered in the TOOLS array with its name, description, and inputSchema (schema definition).
{ name: "lexicon_compare_vs", description: "Head-to-Head VS comparison between two vendors or products. Retrieves live evidence from 20 independent web sources and applies PESTLE Triangulation to produce a structured comparison report.", inputSchema: { type: "object", properties: { vendorA: { type: "string", description: "First vendor or product name" }, vendorB: { type: "string", description: "Second vendor or product name" }, industry: { type: "string", description: "Industry context (e.g. fintech, healthcare, SaaS)" }, }, required: ["vendorA", "vendorB"], }, }, - index.js:13-22 (schema)The input schema for lexicon_compare_vs defines two required string parameters (vendorA, vendorB) and one optional string parameter (industry).
inputSchema: { type: "object", properties: { vendorA: { type: "string", description: "First vendor or product name" }, vendorB: { type: "string", description: "Second vendor or product name" }, industry: { type: "string", description: "Industry context (e.g. fintech, healthcare, SaaS)" }, }, required: ["vendorA", "vendorB"], }, }, - index.js:86-86 (registration)The TOOL_MAP maps the tool name 'lexicon_compare_vs' to the remote endpoint 'lexicon.compare.vs' which is called via the MCP proxy.
lexicon_compare_vs: "lexicon.compare.vs", - index.js:101-127 (handler)The generic CallToolRequestSchema handler proxies all tool calls (including lexicon_compare_vs) by mapping the name via TOOL_MAP and forwarding to the remote MCP endpoint at BASE_URL/mcp/v1.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; const remoteTool = TOOL_MAP[name]; if (!remoteTool) { return { content: [{ type: "text", text: `Unknown tool: ${name}` }], isError: true }; } const headers = { "Content-Type": "application/json" }; if (API_KEY) headers["X-API-Key"] = API_KEY; const response = await fetch(`${BASE_URL}/mcp/v1`, { method: "POST", headers, body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/call", params: { name: remoteTool, arguments: args }, }), }); const data = await response.json(); if (data.result) return data.result; return { content: [{ type: "text", text: JSON.stringify(data.error || data) }], isError: true, };