name: polymarket-readonly description: Use when researching Polymarket markets, events, prices, order books, public wallet analytics, or the read-only Polymarket MCP setup without trading credentials.
Polymarket Readonly
Contract
Prereqs:
- Network access.
- Preferred local MCP server:
polymarket, backed byuvx --from polymarket-mcp-server==0.1.3 polymarket-mcp. curlandjqavailable for public REST fallback checks.
Inputs:
- Natural-language market/event/topic questions.
- Polymarket market slugs, event slugs, token IDs, condition IDs, tag names, or public wallet addresses.
- Optional request to inspect or smoke-test the local read-only MCP setup.
Outputs:
- Market/event summaries, public price/orderbook context, or public wallet analytics.
- Recent trending/hot-topic rankings with explicit source, window, metric, and proxy metadata.
- Daily or weekly Markdown digests for quick trend review.
- Source-grounded notes that separate observed Polymarket data from inference.
- MCP setup or smoke-test diagnostics when requested.
- REST fallback search output when MCP free-text search is unavailable or known-broken.
Exit codes:
0: success1: failure2: usage error3: unsafe Polymarket trading credential environment detected
Failure modes:
- If the user asks to place, cancel, fund, bridge, redeem, approve, sign, or automate trades, refuse that action and offer a read-only market research alternative.
- If any Polymarket private key or authenticated trading credential is present in the environment, stop before launching MCP or API checks.
- If the MCP server is unavailable, fall back to Polymarket public REST endpoints rather than requesting credentials.
Scripts (only entrypoints)
$AGENT_HOME/skills/tools/market-research/polymarket-readonly/scripts/polymarket-readonly.sh
References
- Read references/mcp-options.md when choosing or refreshing the MCP implementation.
- Read references/public-api.md when using REST fallbacks or explaining auth boundaries.
Workflow
Treat this skill as read-only research tooling. Never request, configure, or use wallet private keys, seed phrases, CLOB API credentials, builder credentials, approvals, order placement, or order cancellation.
Prefer the local
polymarketMCP server when available. It should usepolymarket-mcp-serverin read-only mode with no env block.For quick health checks, run:
$AGENT_HOME/skills/tools/market-research/polymarket-readonly/scripts/polymarket-readonly.sh --smokeFor free-text market discovery, be aware that
polymarket-mcp-server==0.1.3sendsquery=to Gamma/public-search, while the public API currently expectsq=. That upstream mismatch returns HTTP 422 and is masked by the MCP server as a generic tool error. Until a newer MCP package fixes this, use the REST fallback:$AGENT_HOME/skills/tools/market-research/polymarket-readonly/scripts/polymarket-readonly.sh --search "fed decision" --limit 5For recent popular topics, use the repeatable trending workflow:
$AGENT_HOME/skills/tools/market-research/polymarket-readonly/scripts/polymarket-readonly.sh --trending --days 3 --limit 10The default is a recent 3-day event ranking. Gamma currently exposes
volume24hr,volume1wk, andvolume1mo, but not exactvolume3d. This helper maps--days 1tovolume24hrwithrankingMode: "native";--days 7tovolume1wkwithrankingMode: "native";--days 2..6tovolume1wkwithrankingMode: "proxy"; and--days 8..31tovolume1mowithrankingMode: "proxy". Do not present proxy output as exact custom-window volume. Use--scope marketswhen the user wants market/question-level results instead of event/topic-level results, or--scope bothwhen they want both topic-level and question-level results.For daily or weekly trend review, prefer the report workflow:
$AGENT_HOME/skills/tools/market-research/polymarket-readonly/scripts/polymarket-readonly.sh --report daily $AGENT_HOME/skills/tools/market-research/polymarket-readonly/scripts/polymarket-readonly.sh --report weeklyReports default to Markdown,
--scope both, and--limit 10. Daily reports default to--days 1and weekly reports default to--days 7. Use--format jsonwhen another tool needs a structured report payload.For market discovery without MCP, use public Gamma endpoints. For live price/orderbook context, use public CLOB read endpoints. For wallet analytics, use public Data API endpoints and state that wallet data is public/onchain-derived.
Cite the concrete tool result, local config, or official API doc when the answer depends on auth, setup, or current market data.
Keep analysis non-advisory unless the user explicitly asks for a forecast. Do not frame output as financial, betting, or trading advice.