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
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Market question or search term (e.g. 'Fed rate cut March 2025', 'Trump approval rating') |
Implementation Reference
- src/index.ts:186-208 (handler)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"), }, ], }; } - src/index.ts:53-67 (schema)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"], }, },