AI agents use remove_from_cart to create or update resources in Rohlik — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Rohlik environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
order_field_id | string | Yes | The order field ID of the item to remove (cart_item_id from cart content) |
Parameters from the server's own tool schema.
Removing an item from a shopping cart is a reversible write operation; the user can add the item back. It does not delete persistent data, execute code, or involve financial transactions. Severity is medium because an AI agent could inadvertently clear desired items from a user's cart.
From the tool's definition 'Remove an item from the shopping cart' — removes an item but cart modifications are reversible (item can be re-added)
Attacks that exploit this kind of access
Remove an item from the shopping cart. It is categorised as a Write tool in the Rohlik MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
remove_from_cart accepts 1 parameter: order_field_id. Required: order_field_id. The full parameter table on this page comes from the server's own tool schema.
Register the Rohlik MCP server in PolicyLayer and add a rule for remove_from_cart: 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 Rohlik. Nothing to install.
remove_from_cart 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 remove_from_cart 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 remove_from_cart. 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.
remove_from_cart is provided by the Rohlik MCP server (@tomaspavlin/rohlik-mcp). 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 →