trades.history
Retrieve past copy trades from the database with optional filters by trader address or status. Returns trade details including entry price, P&L, and market info.
This record as markdown: /tools/demwick-polymarket-agent-mcp/trades.history.md
What trades.history does on Polymarket Agent Mcp
AI agents call trades.history to retrieve information from Polymarket Agent Mcp without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
Why trades.history is rated Low
Tool retrieves historical trade data without modifying, deleting, or executing transactions.
From the tool's definition Retrieve past copy trades from the database with optional filters
Attacks that exploit this kind of access
The rule that runs trades.history safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Polymarket Agent Mcp, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For trades.history, this is the rule to start with:
trades.history is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Polymarket Agent Mcp, apply this rule, and every trades.history call is checked against it from then on.
Questions about trades.history
Retrieve past copy trades from the database with optional filters by trader address or status. Returns trade details including entry price, P&L, and market info. It is categorised as a Read tool in the Polymarket Agent Mcp MCP Server, which means it retrieves data without modifying state.
Register the Polymarket Agent MCP server in PolicyLayer and add a rule for trades.history: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Polymarket Agent Mcp. Nothing to install.
trades.history is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the trades.history rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for trades.history. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
trades.history is provided by the Polymarket Agent MCP server (demwick/polymarket-agent-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Polymarket Agent, and thousands of servers like it.
This server
Across the catalogue