swap_exercise

Find alternative exercises with rationale, or swap an exercise in a planned session. Returns 3 suggestions based on movement pattern.

Server Pelaris thedonk/pelaris-mcp-server
Category Write
Risk class Medium
Parameters 00 required

What swap_exercise does on Pelaris

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.

Why swap_exercise needs a policy

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

Questions about swap_exercise

What does the swap_exercise tool do? +

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.

How do I enforce a policy on swap_exercise? +

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.

What risk level is swap_exercise? +

swap_exercise is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit swap_exercise? +

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.

How do I block swap_exercise completely? +

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.

What MCP server provides swap_exercise? +

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.

// LOOK UP ANOTHER 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 →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.