Tool Details: agent_delete_session

Basic Information

Tool Name:agent_delete_session
Asset Name:Delete Agent Session
Description:Deletes a session on an agent, removing the session record (history, pending messages, metadata). Use this to hold a private conversation and delete it afterwards. Job records are not touched — callers hold their own Job IDs and may delete those separately via the jobs API. Any in-flight chat on the session is failed. Operators may disable this operation via venue config (adapters.agent.sessionDelete: false).
Adapter:agent
Asset Hash:0x748dc8385cf549d06ca4be8396b510a5f943d3bf4b4a356d3425c61981e82912
Input
PropertyTypeDescription
sessionId*stringHex ID of the session to delete
agentId*stringThe agent that owns the session
Output
PropertyTypeDescription
agentIdstring-
sessionIdstring-
deletedboolean-

MCP Tool Usage Examples

This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:

JSON-RPC Call Example:

POST to https://venue-3.covia.ai/mcp

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agent_delete_session",
    "arguments": {
      "input": "your input here"
    }
  }
}
cURL Example:
curl -X POST https://venue-3.covia.ai/mcp \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "agent_delete_session",
      "arguments": {
        "input": "your input here"
      }
    }
  }'
Python Example:
import requests
import json

url = "https://venue-3.covia.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "agent_delete_session",
        "arguments": {
            "input": "your input here"
        }
    }
}

response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');

const url = 'https://venue-3.covia.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'agent_delete_session',
        arguments: {
            input: 'your input here'
        }
    }
};

fetch(url, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));

Asset Metadata

{
	"name": "Delete Agent Session",
	"description": "Deletes a session on an agent, removing the session record (history, pending messages, metadata). Use this to hold a private conversation and delete it afterwards. Job records are not touched — callers hold their own Job IDs and may delete those separately via the jobs API. Any in-flight chat on the session is failed. Operators may disable this operation via venue config (adapters.agent.sessionDelete: false).",
	"dateCreated": "2026-07-07T00:00:00Z",
	"operation": {
		"adapter": "agent:deleteSession",
		"toolName": "agent_delete_session",
		"input": {
			"type": "object",
			"properties": {
				"agentId": { "type": "string", "description": "The agent that owns the session" },
				"sessionId": { "type": "string", "description": "Hex ID of the session to delete" }
			},
			"required": ["agentId", "sessionId"]
		},
		"output": {
			"type": "object",
			"properties": {
				"agentId": { "type": "string" },
				"sessionId": { "type": "string" },
				"deleted": { "type": "boolean" }
			}
		}
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index