Find Tools
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
read - Catalog version:
portal-agent-contract-v2-2026.07.12.1 - Descriptor hash:
2dc2095d201fb0bdad4b8b93e86badc6725779b4efa8dcf8d8ab11bec8bbbf27
Rank agent-ready catalog tools for a natural-language intent.
Request Body
{
"jsonrpc": "2.0",
"id": "portal-find-tools-example",
"method": "tools/call",
"params": {
"name": "portal.find_tools",
"arguments": {
"risk": "read",
"limit": 1,
"query": "query_example",
"service": "service_example",
"category": "category_example",
"includeLegacy": false,
"configuredOnly": false
}
}
}
Arguments Schema
{
"type": "object",
"properties": {
"risk": {
"enum": [
"read",
"write",
"destructive"
],
"type": "string",
"description": "Optional read, write, or destructive risk filter."
},
"limit": {
"type": "integer",
"maximum": 25,
"minimum": 1,
"description": "Maximum matches; defaults 8, maximum 25."
},
"query": {
"type": "string",
"description": "Natural-language tool intent."
},
"service": {
"type": "string",
"description": "Optional canonical service filter."
},
"category": {
"type": "string",
"description": "Optional manifest category filter."
},
"includeLegacy": {
"type": "boolean",
"description": "Advanced/admin clients only. The default catalog exposes agent-ready tools."
},
"configuredOnly": {
"type": "boolean",
"description": "Limit results to configured services; defaults true."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"required": [
"ok",
"serviceId",
"toolName",
"traceId",
"summary",
"data",
"resource",
"pagination",
"nextAction",
"error"
],
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"description": "Tool result."
},
"error": {
"type": [
"object",
"null"
]
},
"summary": {
"type": "string"
},
"traceId": {
"type": "string"
},
"resource": {
"type": [
"object",
"null"
]
},
"toolName": {
"type": "string"
},
"serviceId": {
"type": "string"
},
"nextAction": {
"type": [
"string",
"null"
]
},
"pagination": {
"type": [
"object",
"null"
]
}
},
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "portal-find-tools-example",
"method": "tools/call",
"params": {
"name": "portal.find_tools",
"arguments": {
"risk": "read",
"limit": 1,
"query": "query_example",
"service": "service_example",
"category": "category_example",
"includeLegacy": false,
"configuredOnly": false
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "portal-find-tools-example",
"method": "tools/call",
"params": {
"name": "portal.find_tools",
"arguments": {
"risk": "read",
"limit": 1,
"query": "query_example",
"service": "service_example",
"category": "category_example",
"includeLegacy": false,
"configuredOnly": false
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "portal-find-tools-example",
"method": "tools/call",
"params": {
"name": "portal.find_tools",
"arguments": {
"risk": "read",
"limit": 1,
"query": "query_example",
"service": "service_example",
"category": "category_example",
"includeLegacy": false,
"configuredOnly": false
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool portal.find_tools executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}