prepare_pm_order
Prepare a client-signed Polymarket order: policy-checked, then returns the exact EIP-712 payload to sign outside MCP (this server cannot sign) plus a prepare_id — submit both via submit_pm_order. Auth required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"venue": "<venue>",
"wallet": "<wallet>",
"credential_id": "<credential_id>",
"condition_id": "<condition_id>",
"token_id": "<token_id>",
"action": "<action>",
"price_usd": "<price_usd>",
"size_shares": "<size_shares>"
},
"name": "prepare_pm_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | optional current exposure: {market_exposure_usd, realized_loss_today_usd, total_open_exposure_usd} as decimal strings | |
| venue | Yes | ||
| action | Yes | ||
| wallet | Yes | treasury wallet whose policy governs the order | |
| token_id | Yes | outcome token id, decimal string | |
| price_usd | Yes | limit price, '0.xx' | |
| size_shares | Yes | share count, decimal string | |
| condition_id | Yes | market condition id | |
| credential_id | Yes | stored credential id (uuid) | |
| client_order_id | No | optional idempotency uuid |