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": "dlfs_tree",
"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": "dlfs_tree",
"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": "dlfs_tree",
"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: 'dlfs_tree',
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": "Tree of DLFS Drive",
"description": "Render a tab-indented text tree of a directory in a DLFS drive. Designed for LLM consumption — directories end with '/' and files are listed by name only. Set 'info': 'size' to append file sizes. Walk is capped by 'maxDepth' (default 3, max 10) and 'maxEntries' (default 500, max 5000); when the entries cap is hit the response sets truncated=true. Path may be omitted to walk from the drive root.",
"creator": "Covia",
"operation": {
"adapter": "dlfs:tree",
"toolName": "dlfs_tree",
"input": {
"type": "object",
"properties": {
"drive": { "type": "string", "description": "Drive name" },
"path": { "type": "string", "description": "Directory path within the drive (omit for the drive root)" },
"maxDepth": { "type": "integer", "description": "Max depth to descend (default 3, max 10)" },
"maxEntries": { "type": "integer", "description": "Max total entries before truncation (default 500, max 5000)" },
"info": { "type": "string", "enum": ["size"], "description": "Optional per-line annotation. 'size' appends a human-readable size to file lines." }
},
"required": ["drive"]
},
"output": {
"type": "object",
"properties": {
"tree": { "type": "string", "description": "Tab-indented text tree. Each line is one entry: '<tabs><name>' for files, '<tabs><name>/' for directories." },
"truncated": { "type": "boolean", "description": "True if the entries cap was reached and the walk stopped early." }
}
}
}
}