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": "covia_slice",
"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": "covia_slice",
"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": "covia_slice",
"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: 'covia_slice',
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": "Slice Lattice Data",
"description": "Read a paginated slice from a collection at any lattice path. For vectors: array of elements; for maps: array of {key, value}. Use after covia_list reveals a large collection. Example: g/Alice/timeline limit=5 (recent agent runs).",
"dateCreated": "2026-03-25T00:00:00Z",
"operation": {
"adapter": "covia:slice",
"toolName": "covia_slice",
"input": {
"type": "object",
"properties": {
"path": {
"description": "Any resolvable path pointing at a collection. Examples: 'v/ops/agent' (catalog sub-tree), 'w/events', 'g/my-agent/timeline'."
},
"offset": {
"type": "integer",
"description": "Starting index (default 0)."
},
"limit": {
"type": "integer",
"description": "Maximum number of entries to return (default 100)."
}
},
"required": ["path"]
},
"output": {
"type": "object",
"properties": {
"exists": { "type": "boolean" },
"type": { "type": "string", "description": "Collection type: Vector, Map, or Set" },
"values": { "type": "array", "description": "The entries in the requested range. For maps, each entry is {key, value}." },
"count": { "type": "integer", "description": "Total number of entries in the collection" },
"offset": { "type": "integer", "description": "Starting index of this page" }
}
}
}
}