Skip to main content

Update Custom Provider Capabilities

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.update_custom_provider_capabilities
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 2d031eb9dad4871f68a3e866b88549124626e24aa02f6f5c88a782c5661aadb2

Update capabilities for the custom payment provider marketplace app tied to the OAuth client. GHL category: Payments / Custom Provider. Use this to declare provider capabilities such as subscription-schedule support only when the user explicitly confirms the provider-level setting change.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-update-custom-provider-capabilities-example",
"method": "tools/call",
"params": {
"name": "ghl.update_custom_provider_capabilities",
"arguments": {
"confirmApply": "confirmApply_example",
"body": {},
"tenantId": "tenantId_123",
"companyId": "companyId_123",
"locationId": "locationId_123",
"strictTenant": false,
"supportsSubscriptionSchedule": false,
"supportsSubscriptionSchedules": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"confirmApply"
],
"properties": {
"body": {
"type": "object",
"description": "GHL-supported capabilities payload. The public docs state this toggles marketplace app capabilities and the payment-provider guide notes companyId or locationId context is required.",
"additionalProperties": true
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"companyId": {
"type": "string",
"description": "Optional GHL company ID when applying provider capabilities at company/agency context. Do not invent this value."
},
"locationId": {
"type": "string",
"description": "Optional GHL location ID. If provided, it must match the authenticated runtime location. GHL requires either locationId or companyId for this endpoint."
},
"confirmApply": {
"type": "string",
"description": "Required. Set exactly to \"CONFIRM APPLY\" only after the user explicitly confirms the provider capability change."
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
},
"supportsSubscriptionSchedule": {
"type": "boolean",
"description": "Compatibility alias for supportsSubscriptionSchedules. The MCP maps this to the provider plural field before sending."
},
"supportsSubscriptionSchedules": {
"type": "boolean",
"description": "Whether the custom payment provider supports subscription schedule payments. This is the GHL provider field name."
}
},
"additionalProperties": false
}

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-update-custom-provider-capabilities-example",
"method": "tools/call",
"params": {
"name": "ghl.update_custom_provider_capabilities",
"arguments": {
"confirmApply": "confirmApply_example",
"body": {},
"tenantId": "tenantId_123",
"companyId": "companyId_123",
"locationId": "locationId_123",
"strictTenant": false,
"supportsSubscriptionSchedule": false,
"supportsSubscriptionSchedules": false
}
}
}'

Example Responses

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