Search Opportunities
Catalog + Curated
This page is generated from the full broker catalog and enhanced with curated examples.
Filter opportunities by pipeline, stage, and status.
Request Body
{
"jsonrpc": "2.0",
"id": "ghl-search-opportunities-example",
"method": "tools/call",
"params": {
"name": "ghl.search_opportunities",
"arguments": {
"pipelineId": "pipe_main",
"status": "open",
"limit": 25
}
}
}
Arguments Schema
{
"type": "object",
"properties": {
"pipelineId": {
"type": "string"
},
"pipelineStageId": {
"type": "string"
},
"status": {
"type": "string"
},
"limit": {
"type": "number",
"minimum": 1,
"maximum": 100
}
},
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://madpanda3d.com/lab/mad-mcps/portal/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ghl-search-opportunities-example",
"method": "tools/call",
"params": {
"name": "ghl.search_opportunities",
"arguments": {
"pipelineId": "pipe_main",
"status": "open",
"limit": 25
}
}
}'
const response = await fetch('https://madpanda3d.com/lab/mad-mcps/portal/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "ghl-search-opportunities-example",
"method": "tools/call",
"params": {
"name": "ghl.search_opportunities",
"arguments": {
"pipelineId": "pipe_main",
"status": "open",
"limit": 25
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://madpanda3d.com/lab/mad-mcps/portal/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "ghl-search-opportunities-example",
"method": "tools/call",
"params": {
"name": "ghl.search_opportunities",
"arguments": {
"pipelineId": "pipe_main",
"status": "open",
"limit": 25
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 404 Pipeline Not Found
{
"ok": true,
"opportunities": [
{
"id": "opp_991",
"name": "Enterprise Retainer",
"status": "open",
"monetaryValue": 25000
}
]
}
{
"ok": false,
"error": "not_found",
"message": "pipelineId does not exist"
}