Skip to main content
Glama
nadine302324-commits

Lexicon Intelligence

lexicon_compare_topic

Ask comparison questions across vendors, markets, or features to receive topic-specific competitive intelligence.

Instructions

Topic-specific competitive intelligence. Ask any comparison question across vendors, markets, or features.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYesThe comparison topic or question
industryNoIndustry context

Implementation Reference

  • Tool definition and input schema for lexicon_compare_topic, including the 'topic' and 'industry' properties, with 'topic' required.
    {
      name: "lexicon_compare_topic",
      description: "Topic-specific competitive intelligence. Ask any comparison question across vendors, markets, or features.",
      inputSchema: {
        type: "object",
        properties: {
          topic:    { type: "string", description: "The comparison topic or question" },
          industry: { type: "string", description: "Industry context" },
        },
        required: ["topic"],
      },
  • index.js:88-88 (registration)
    Maps the tool name 'lexicon_compare_topic' to the remote RPC method 'lexicon.compare.topic' in the TOOL_MAP.
    lexicon_compare_topic:       "lexicon.compare.topic",
  • Generic CallToolRequestSchema handler that looks up the tool name in TOOL_MAP and forwards the request via HTTP POST to the remote MCP endpoint at BASE_URL/mcp/v1 with the mapped remote method name.
    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,
      };
    });
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description does not disclose behavioral traits such as output format, data sources, or any constraints. The vague phrase 'Ask any comparison question' lacks specificity about what the tool does or returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with only two sentences, no redundancy, and front-loaded with the core purpose. Every word adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema, and the description fails to explain what the tool returns (e.g., text, data, or analysis). Given its complexity as a 'competitive intelligence' tool, the description is insufficient for an agent to understand the output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with parameter descriptions. The tool description adds context ('competitive intelligence', 'comparison question') but does not significantly enhance understanding beyond the schema for the 'topic' and 'industry' parameters. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool provides 'topic-specific competitive intelligence' and allows asking 'any comparison question across vendors, markets, or features.' This distinguishes it from sibling tools like lexicon_compare_methodology and lexicon_compare_vs, which imply more focused comparison types.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for broad topic comparisons but does not explicitly state when to use this tool versus alternatives like lexicon_compare_vs or lexicon_compare_methodology. No exclusions or prerequisites are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nadine302324-commits/lexicon-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server