modify_position
Modify stop loss and/or take profit of a position.
This record as markdown: /tools/af7007-mcp-trader/modify-position.md
What modify_position does on MCP Trader Server
AI agents use modify_position to create or update resources in MCP Trader Server, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your MCP Trader Server environment.
Why modify_position is rated Medium
This tool modifies existing trading position parameters (stop loss and take profit levels). While it doesn't directly move money or execute new trades, altering stop loss/take profit levels on live positions can have significant financial consequences — e.g., removing a stop loss could expose a position to unlimited losses.
From the tool's definition Modify stop loss and/or take profit of a position
Attacks that exploit this kind of access
The rule that runs modify_position safely
PolicyLayer is an MCP gateway: it sits between your AI agents and MCP Trader Server, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For modify_position, this is the rule to start with:
modify_position stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect MCP Trader Server, apply this rule, and every modify_position call is checked against it from then on.
Questions about modify_position
Modify stop loss and/or take profit of a position. It is categorised as a Write tool in the MCP Trader Server MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the MCP Trader Server MCP server in PolicyLayer and add a rule for modify_position: 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 MCP Trader Server. Nothing to install.
modify_position is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the modify_position 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 modify_position. 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.
modify_position is provided by the MCP Trader Server MCP server (af7007/mcp-trader). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on MCP Trader Server, and thousands of servers like it.
This server
Across the catalogue