Tool Details: agent_sessions

Basic Information

Tool Name:agent_sessions
Asset Name:List Past Agent Sessions
Description:Lists bounded metadata for past conversations, newest first. An agent may omit agentId to inspect itself; an owner or authorised caller supplies agentId. The caller's current session, unfinished conversations and sessions hidden by venue policy are omitted. This is a safe projection, not generic access to agent state.
Adapter:agent
Asset Hash:0xdcf9293ae54c98e0bfcf136ac62f280dc3789bc3191ee3db67b73e7ae47cd869
Input
PropertyTypeDescription
limitintegerMaximum sessions to return. Default 20.
agentIdstringOptional target agent id or g/<id> path. Omit only from that agent's own execution context. Reading an explicit target requires agent read access.
offsetintegerNumber of newest visible sessions to skip. Default 0.
Output
PropertyTypeDescription
countinteger-
offsetinteger-
totalinteger-
sessionsarray-

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_sessions",
    "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_sessions",
      "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_sessions",
        "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_sessions',
        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": "List Past Agent Sessions",
	"description": "Lists bounded metadata for past conversations, newest first. An agent may omit agentId to inspect itself; an owner or authorised caller supplies agentId. The caller's current session, unfinished conversations and sessions hidden by venue policy are omitted. This is a safe projection, not generic access to agent state.",
	"dateCreated": "2026-08-24T00:00:00Z",
	"operation": {
		"adapter": "agent:sessions",
		"readOnly": true,
		"toolName": "agent_sessions",
		"default": {
			"limit": 20,
			"offset": 0
		},
		"input": {
			"type": "object",
			"properties": {
				"agentId": { "type": "string", "description": "Optional target agent id or g/<id> path. Omit only from that agent's own execution context. Reading an explicit target requires agent read access." },
				"limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum sessions to return. Default 20." },
				"offset": { "type": "integer", "minimum": 0, "description": "Number of newest visible sessions to skip. Default 0." }
			}
		},
		"output": {
			"type": "object",
			"properties": {
				"sessions": {
					"type": "array",
					"items": {
						"type": "object",
						"properties": {
							"sessionId": { "type": "string" },
							"title": { "type": "string", "description": "Explicit title, or a bounded title derived from the first completed user turn." },
							"created": { "type": "integer", "description": "Creation time in Unix milliseconds." },
							"updated": { "type": "integer", "description": "Last completed conversational activity in Unix milliseconds." },
							"turnCount": { "type": "integer", "description": "Number of turns in the safe historical projection." }
						}
					}
				},
				"count": { "type": "integer" },
				"total": { "type": "integer" },
				"offset": { "type": "integer" }
			}
		}
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index