Skip to main content

Update Opportunity Status

Snapshot Catalog Entry

This page is generated from broker tools/list snapshot data.

POSTghl.update_opportunity_status

Update the status of an opportunity (won, lost, etc.)

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-update-opportunity-status-example",
"method": "tools/call",
"params": {
"name": "ghl.update_opportunity_status",
"arguments": {
"opportunityId": "opportunityId_123",
"status": "open",
"tenantId": "tenantId_123",
"confirmApply": "confirmApply_example",
"dryRun": false
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"tenantId": {
"type": "string"
},
"confirmApply": {
"type": "string"
},
"opportunityId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"open",
"won",
"lost",
"abandoned"
]
},
"dryRun": {
"type": "boolean"
}
},
"required": [
"opportunityId",
"status"
]
}

Code Examples

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-update-opportunity-status-example",
"method": "tools/call",
"params": {
"name": "ghl.update_opportunity_status",
"arguments": {
"opportunityId": "opportunityId_123",
"status": "open",
"tenantId": "tenantId_123",
"confirmApply": "confirmApply_example",
"dryRun": false
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ghl.update_opportunity_status executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}