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-test.covia.ai/mcp
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "toolList",
"arguments": {
"input": "your input here"
}
}
}
cURL Example:
curl -X POST https://venue-test.covia.ai/mcp \\
-H "Content-Type: application/json" \\
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "toolList",
"arguments": {
"input": "your input here"
}
}
}'
Python Example:
import requests
import json
url = "https://venue-test.covia.ai/mcp"
payload = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "toolList",
"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-test.covia.ai/mcp';
const payload = {
jsonrpc: '2.0',
id: 1,
method: 'tools/call',
params: {
name: 'toolList',
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": "MCP Tools List",
"description": "Lists available MCP tools from a remote server",
"dateCreated": "2025-01-27T00:00:00Z",
"operation": {
"adapter": "mcp:tools:list",
"info":{
"featured":true
},
"toolName": "toolList",
"input": {
"type": "object",
"properties": {
"server": {
"type": "string",
"description": "URL or DID for the MCP server",
"examples":["https:venue-test.covia.ai","did:web:venue1.covia.ai"]
},
"token": {
"type": "string",
"description": "API access token to use for the delegated MCP request",
"examples":["xyzabcdefghj"]
}
},
"required": ["server"]
},
"output": {
"type": "object",
"properties": {
"tools": {
"type": "array",
"description": "Array of available MCP tools",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Tool name"
},
"description": {
"type": "string",
"description": "Tool description"
},
"inputSchema": {
"type": "object",
"description": "Tool input schema"
}
}
}
},
"total": {
"type": "integer",
"description": "Total number of available tools"
}
}
}
}
}