Skip to main content

Search Opportunities

Immutable Catalog + Curated Guide

This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.

READghl.search_opportunities
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 0216b710afde7eb9637083e0c2cb9fe2d308d29fa0371cff6a9c8bda0214feb9

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": {
"limit": {
"type": "number",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of opportunities to return (default: 20, max: 100)"
},
"query": {
"type": "string",
"description": "General search query (searches name, contact info)"
},
"status": {
"enum": [
"open",
"won",
"lost",
"abandoned",
"all"
],
"type": "string",
"description": "Filter by opportunity status"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"contactId": {
"type": "string",
"description": "Filter by specific contact ID"
},
"assignedTo": {
"type": "string",
"description": "Filter by assigned user ID"
},
"pipelineId": {
"type": "string",
"description": "Filter by specific pipeline ID"
},
"pipelineStageId": {
"type": "string",
"description": "Filter by specific pipeline stage ID"
}
}
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the GHL MCP operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Tool-specific GHL or local navigation result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe execution, routing, and timing metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe error details when ok is false; credential values are never returned."
}
},
"description": "Normalized GHL MCP response envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/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
}
}
}'

Example Responses

{
"ok": true,
"opportunities": [
{
"id": "opp_991",
"name": "Enterprise Retainer",
"status": "open",
"monetaryValue": 25000
}
]
}