Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POLY_FUNDERNoFunder wallet address. Required if PMQ_MCP_LIVE=1.
PMQ_MCP_LIVENoEnable live trading mode. Set to '1' to enable. Requires POLY_PRIVATE_KEY, POLY_FUNDER, POLY_SIG_TYPE.
PMQ_MCP_PAPERNoEnable paper trading mode (keyless simulation). Set to '1' to enable.
POLY_SIG_TYPENoSignature type (0,1,2,3). Required if PMQ_MCP_LIVE=1.
POLY_ORDER_LOGNoPath to an append-only order log file for attribution registry.
PMQ_MCP_MAX_USDNoHard cap per single order in USD, both live and paper. Default is 10.10
POLY_PRIVATE_KEYNoPrivate key for live trading. Required if PMQ_MCP_LIVE=1.
PMQ_MCP_DAILY_USDNoCumulative BUY budget per UTC day. Not set by default (unlimited).
PMQ_MCP_PAPER_USDNoPaper starting balance in USD. Default is 1000.1000
POLY_FOREIGN_ORDER_LOGSNoColon-separated list of foreign order log file paths.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
find_marketsA

Discover tradeable Polymarket markets of ANY kind (politics, sports, crypto, culture). With a query, full-text search; without, the most active events by 24h volume. Returns event title plus, per market, the slug to pass to the market tool and the outcome names.

eventA

All binary markets of one multi-outcome EVENT (an election, a tournament: one market per candidate). Use the event slug from find_markets. Returns per market: slug, outcome names with token ids, close time, settled winner if any.

marketA

Resolve one Polymarket market by its gamma slug (any category, works for expired short-lived markets too). Returns condition_id, the outcome names mapped to their token ids (use those token ids with book and the trading tools), the close time and the settled winner if resolution already happened.

bookA

REAL-TIME order book summary for one outcome token: best bid/ask with sizes, plus the $ notional of asks resting inside [depth_lo, depth_hi]. This endpoint is served by the matching engine; trust it over the trade tape for any live decision.

taker_feeA

Official Polymarket taker fee in $ (fee = rate * p * (1-p) * shares). Categories and rates: crypto 0.07, sports 0.03, finance/politics/mentions/ tech 0.04, economics/culture/weather 0.05, geopolitics 0. Makers pay 0.

account_collateralA

Collateral (pUSD, $) the CLOB sees for the configured account. If this is 0 while funds are on-chain, the operator's POLY_SIG_TYPE is wrong (the Polymarket app's deposit wallet needs 3). In paper mode: the simulated cash balance.

account_tradesA

BUY-side totals of OUR account on one market: (shares, usd, fee_estimate), usd and fees counting BUY fills only. This is the reconciliation source, use it after any uncertainty instead of trusting local bookkeeping. Paper mode: same semantics over the simulated fills, except shares are net of paper sells (position, not gross buys).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/crp4222/pmq'

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