delete_agent_session

Delete an agent conversation session permanently.

Server Lens lens-mcp-server
Category Destructive
Risk class Critical
Parameters 22 required

What delete_agent_session does on Lens

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

ParameterTypeRequiredDescription
agent_id string Yes Agent UUID
session_id string Yes Session UUID to delete

Parameters from the server's own tool schema.

Why delete_agent_session needs a policy

This tool irreversibly deletes data (agent conversation session). Permanent deletion cannot be undone, making it destructive rather than merely a write operation. The high severity reflects the loss of conversation history and potential audit/compliance impacts if misused by an AI agent.

From the tool's definition Tool name explicitly uses 'delete' and description states 'Delete an agent conversation session permanently.' The word 'permanently' indicates an irreversible operation.

Questions about delete_agent_session

What does the delete_agent_session tool do? +

Delete an agent conversation session permanently. It is categorised as a Destructive tool in the Lens MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.

What parameters does delete_agent_session accept? +

delete_agent_session accepts 2 parameters: agent_id, session_id. Required: agent_id, session_id. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on delete_agent_session? +

Register the Lens MCP server in PolicyLayer and add a rule for delete_agent_session: 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 Lens. Nothing to install.

What risk level is delete_agent_session? +

delete_agent_session 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 delete_agent_session? +

Yes. Add a rate_limit block to the delete_agent_session 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 delete_agent_session completely? +

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

delete_agent_session is provided by the Lens MCP server (lens-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.