AI agents use swap_exercise to create or update resources in Pelaris — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Pelaris environment.
The tool can modify a planned session by swapping an exercise, which is a reversible write operation. It also has a read component (finding alternatives with rationale), but the primary actionable capability is modifying existing planned session data. Since Write is more severe than Read, it takes precedence. Severity is medium as it affects training plans but is reversible.
From the tool's definition swap an exercise in a planned session
Attacks that exploit this kind of access
Find alternative exercises with rationale, or swap an exercise in a planned session. Returns 3 suggestions based on movement pattern. It is categorised as a Write tool in the Pelaris MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Pelaris MCP server in PolicyLayer and add a rule for swap_exercise: 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 Pelaris. Nothing to install.
swap_exercise 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 swap_exercise 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 swap_exercise. 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.
swap_exercise is provided by the Pelaris MCP server (thedonk/pelaris-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →