Skip to main content
Glama
demwick

polymarket-trader-mcp

positions.close

Close a copy trading position by providing its trade ID. In live mode, places a sell order on Polymarket. In preview mode, marks the position as closed in the database. Specify reason like 'manual', 'stop_loss', or 'take_profit'.

Instructions

Manually close a copy trading position by trade ID. In live mode, places a sell order on Polymarket. In preview mode, marks the position as closed in the database. Use get_positions to find the trade_id. Pro feature.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trade_idYesID of the trade/position to close (from get_positions)
reasonNoReason for closing (e.g. 'manual', 'stop_loss', 'take_profit')manual
Behavior4/5

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

No annotations provided, but description details behavioral differences between live mode (places sell order on Polymarket) and preview mode (marks closed in DB). Discloses core side effects, though could mention error handling or position state checks.

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?

Description is three sentences with no wasted words. Front-loaded with action, then mode differences, then prerequisite, then access note. Every sentence serves a purpose.

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 exists, so description should explain return value. It describes actions but not what the tool returns upon success/failure. Lacks info on preconditions like position must be open. Adequate for a simple close action but missing output behavior.

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

Parameters4/5

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

Schema has 100% description coverage for both parameters. Description reinforces trade_id sourcing from get_positions and mentions default reason. Adds value beyond schema by providing context on how to find trade_id.

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?

Description clearly states the tool closes a copy trading position by trade ID, distinguishes between live and preview modes, and references get_positions for finding trade_id. This provides specific verb+resource differentiation from siblings like positions.list.

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?

Explicitly mentions it's manual closing, references get_positions for prerequisite, and states 'Pro feature' indicating access restrictions. Does not explicitly exclude alternatives, but context implies it's for manual closure vs automated exit rules.

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