Skip to main content
Glama
praveen030686

@praveen030686/data-apis-mcp

web_extract_compare

Analyze and compare content from two web pages using AI to identify similarities and differences.

Instructions

Compare content of two web pages with AI analysis of similarities and differences. Costs $0.08 USDC per request via x402 on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
url1YesFirst URL to compare
url2YesSecond URL to compare

Implementation Reference

  • The handler function for 'web_extract_compare' that calls the extract compare API.
    async ({ url1, url2 }) => {
      const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/compare`, { url1, url2 });
      return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
    }
  • src/index.ts:387-403 (registration)
    Registration of the 'web_extract_compare' tool, including its schema and description.
    server.registerTool(
      "web_extract_compare",
      {
        title: "Compare Two Pages",
        description: `Compare content of two web pages with AI analysis of similarities and differences.
    Costs $0.08 USDC per request via x402 on Base.`,
        inputSchema: {
          url1: z.string().url().describe("First URL to compare"),
          url2: z.string().url().describe("Second URL to compare"),
        },
        annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
      },
      async ({ url1, url2 }) => {
        const data = await apiPost(`${WEB_EXTRACT_API}/api/v1/extract/compare`, { url1, url2 });
        return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
      }
    );

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/praveen030686/x402-apis-mcp-server'

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