vtex_clear_cart

Clear all items from cart

Server MCP VTEX Server leosepulveda/mcp-vtex
Category Destructive
Risk class Critical
Parameters 00 required

What vtex_clear_cart does on MCP VTEX Server

AI agents call vtex_clear_cart to permanently remove resources in MCP VTEX Server — typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

Why vtex_clear_cart needs a policy

Clearing all items from a cart is a destructive bulk removal action. While a cart can potentially be rebuilt, the action itself irreversibly removes all items in one operation with no partial undo. In an e-commerce context, this could disrupt an active customer session or checkout flow, making it high severity if misused by an AI agent.

From the tool's definition 'Clear all items from cart' — removes all items irreversibly from the cart session

Risk signalsBulk/mass operation — affects multiple targets

Questions about vtex_clear_cart

What does the vtex_clear_cart tool do? +

Clear all items from cart. It is categorised as a Destructive tool in the MCP VTEX Server MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.

How do I enforce a policy on vtex_clear_cart? +

Register the MCP VTEX Server MCP server in PolicyLayer and add a rule for vtex_clear_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 MCP VTEX Server. Nothing to install.

What risk level is vtex_clear_cart? +

vtex_clear_cart is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit vtex_clear_cart? +

Yes. Add a rate_limit block to the vtex_clear_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.

How do I block vtex_clear_cart completely? +

Set action: deny in the PolicyLayer policy for vtex_clear_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.

What MCP server provides vtex_clear_cart? +

vtex_clear_cart is provided by the MCP VTEX Server MCP server (leosepulveda/mcp-vtex). 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.