Skip to main content

Update Object Schema

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.update_object_schema
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 8c1c34a84bd40da56d59e65b13fc0da67999c8c96c4f23b7d041a3c813ff30a6

Update object schema properties including labels, description, and searchable fields GHL category: App Marketplace. This writes to GoHighLevel and may change account data.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-update-object-schema-example",
"method": "tools/call",
"params": {
"name": "ghl.update_object_schema",
"arguments": {
"key": "key_example",
"searchableProperties": [],
"labels": {},
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"description": "description_example",
"strictTenant": false,
"includeObjectDetails": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"key",
"searchableProperties"
],
"properties": {
"key": {
"type": "string",
"description": "Object key to update"
},
"labels": {
"type": "object",
"properties": {
"plural": {
"type": "string",
"description": "Updated plural name"
},
"singular": {
"type": "string",
"description": "Updated singular name"
}
},
"description": "Updated singular and plural names (optional)"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"locationId": {
"type": "string",
"description": "Location ID (uses default if not provided)"
},
"description": {
"type": "string",
"description": "Updated description"
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
},
"includeObjectDetails": {
"type": "boolean",
"description": "Defaults to false. When false, returns a compact updated schema summary instead of full provider schema/configuration payloads."
},
"searchableProperties": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of field keys that should be searchable (e.g., [\"custom_objects.pet.name\", \"custom_objects.pet.breed\"])"
}
}
}

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-object-schema-example",
"method": "tools/call",
"params": {
"name": "ghl.update_object_schema",
"arguments": {
"key": "key_example",
"searchableProperties": [],
"labels": {},
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"description": "description_example",
"strictTenant": false,
"includeObjectDetails": false
}
}
}'

Example Responses

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