A collection of Python scripts for Polymarket quantitative trading analysis, including backtesting, liquidity checking, wallet scanning, and insider alert monitoring.
This server has significant definition quality gaps. Tool names lack consistent verb prefixes (e.g., 'analyze_trades' vs 'load_csv' vs 'display_dashboard'). Descriptions are present but minimal (10-50 chars), below the 50-200 char LLM-optimized baseline. Input schemas are visible and typed, but parameter descriptions are sparse or missing context. No output schemas documented. Error handling is minimal, tools return generic error dicts without recovery guidance. The server exposes file I/O and external API calls without validation, sanitization, or permission checks. No tool annotations (readOnlyHint, destructiveHint) despite clear read-only semantics.
Compute calibration metrics — predicted vs actual.
Compute trade-level statistics.
Get orderbook depth for a token.
Estimate P&L from trade outcomes (if available).
Render terminal dashboard.
Fetch top wallets from Polymarket leaderboard.
Fetch active markets from Gamma API.
No output schemas documented. LLMs cannot plan downstream tool calls or extract required fields without knowing return structure.
Descriptions are too short (10-35 chars). Below 50-char minimum for LLM comprehension. Missing WHEN to use, prerequisites, and state-change semantics.
No error handling guidance. Tools return generic {'error': '...'} dicts without recovery hints. LLM cannot self-correct or retry intelligently.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 44 | 2026-07-28+ | v2 |
Load alerts from CSV.
Load CSV file into list of dicts.
Score a wallet on multiple dimensions (0-1 each).
File I/O tools (load_csv, load_alerts) lack path validation and sanitization. No protection against directory traversal or unauthorized file access.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). All tools are read-only but this is not declared, preventing agents from optimizing retry logic.