Skip to main content
Glama

analyze_market

Analyze Polymarket prediction markets to assess probabilities, provide reasoning, and recommend positions for informed trading decisions.

Instructions

Get AI analysis of a specific Polymarket prediction market. Returns probability assessment, reasoning, and recommended position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesMarket question or search term (e.g. 'Fed rate cut March 2025', 'Trump approval rating')

Implementation Reference

  • The handler for the 'analyze_market' tool, which takes a query, calls the LPXPoly API with type 'market', and formats the response.
    case "analyze_market": {
      const { query } = args as any;
    
      const result = await callLPXPoly("/api/analyze", {
        type: "market",
        query,
      });
    
      return {
        content: [
          {
            type: "text",
            text: [
              `📊 Market Analysis: ${query}`,
              ``,
              result.analysis || result.response || JSON.stringify(result, null, 2),
              ``,
              `⚡ Powered by LPXPoly | lpxpoly.com`,
            ].join("\n"),
          },
        ],
      };
    }
  • Definition of the 'analyze_market' tool schema.
    {
      name: "analyze_market",
      description:
        "Get AI analysis of a specific Polymarket prediction market. Returns probability assessment, reasoning, and recommended position.",
      inputSchema: {
        type: "object",
        properties: {
          query: {
            type: "string",
            description: "Market question or search term (e.g. 'Fed rate cut March 2025', 'Trump approval rating')",
          },
        },
        required: ["query"],
      },
    },

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/unixlamadev-spec/lpxpoly-mcp'

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