Skip to main content

Create Object Schema

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.create_object_schema
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: f6d92d65a5ca603b848733f28fe758fdd0fd100fdd9ea2061f460052d7054ab9

Create a new custom object schema with labels, key, and primary display property GHL category: App Marketplace. This writes to GoHighLevel and may change account data.

Request Body

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

Arguments Schema

{
"type": "object",
"required": [
"labels",
"key",
"primaryDisplayPropertyDetails"
],
"properties": {
"key": {
"type": "string",
"description": "Unique key for the object (e.g., \"custom_objects.pet\"). The \"custom_objects.\" prefix is added automatically if not included"
},
"labels": {
"type": "object",
"required": [
"singular",
"plural"
],
"properties": {
"plural": {
"type": "string",
"description": "Plural name (e.g., \"Pets\")"
},
"singular": {
"type": "string",
"description": "Singular name (e.g., \"Pet\")"
}
},
"description": "Singular and plural names for the custom object"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"locationId": {
"type": "string",
"description": "Location ID (uses default if not provided)"
},
"description": {
"type": "string",
"description": "Description of the custom object"
},
"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 created schema summary instead of full provider schema/configuration payloads."
},
"primaryDisplayPropertyDetails": {
"type": "object",
"required": [
"key",
"name",
"dataType"
],
"properties": {
"key": {
"type": "string",
"description": "Property key (e.g., \"custom_objects.pet.name\")"
},
"name": {
"type": "string",
"description": "Display name (e.g., \"Pet Name\")"
},
"dataType": {
"enum": [
"TEXT",
"NUMERICAL"
],
"type": "string",
"description": "Data type (TEXT or NUMERICAL)"
}
},
"description": "Primary property configuration for display"
}
}
}

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

Example Responses

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