Skip to main content
Glama
demwick

polymarket-trader-mcp

orders.sell

Sell an open position on Polymarket by trade ID or condition ID. Places a limit or market order in live mode; in preview mode, records the sale and calculates realized profit or loss.

Instructions

Sell an open position by trade_id (from get_positions) or condition_id. In live mode, places a sell order on Polymarket. In preview mode, marks the position as sold in the database and calculates realized P&L.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trade_idNoTrade ID to sell (from get_positions)
condition_idNoCondition ID to sell (finds matching open position)
priceNoLimit price (omit for current market price)
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses two modes (live vs preview) and their effects, but lacks details on side effects (e.g., irreversible live order), prerequisites, error conditions, or return behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no wasted words. The core action is front-loaded, and the mode distinction is clearly stated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, so description should explain return values, but it does not. It also fails to clarify partial sells, how to enable preview mode, or prerequisites like having an open position.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema descriptions already cover all three parameters (trade_id, condition_id, price) adequately. The description adds minimal extra value beyond the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool sells an open position using either trade_id or condition_id, and differentiates between live and preview modes. This distinguishes it from sibling tools like orders.buy or orders.cancel.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for open positions and provides two methods of identification. It does not explicitly state when not to use or mention alternatives, but context from sibling tools is sufficient for differentiation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/demwick/polymarket-trader-mcp'

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