Skip to main content

Search Object Records

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READghl.search_object_records
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: 2026-07-12.2
  • Descriptor hash: b989489de216530929eead20b18e2ed814477705ca05d899146af0904f408682

Search records within a custom or standard object using searchable properties GHL category: App Marketplace. This is a read-only GHL API operation.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-search-object-records-example",
"method": "tools/call",
"params": {
"name": "ghl.search_object_records",
"arguments": {
"schemaKey": "schemaKey_example",
"query": "query_example",
"page": 1,
"tenantId": "tenantId_123",
"pageLimit": 1,
"locationId": "locationId_123",
"searchAfter": [],
"strictTenant": false,
"includeRecordDetails": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"schemaKey",
"query"
],
"properties": {
"page": {
"type": "number",
"default": 1,
"minimum": 1,
"description": "Page number for pagination"
},
"query": {
"type": "string",
"description": "Search query using searchable properties (e.g., \"name:Buddy\" to search for records with name Buddy)"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"pageLimit": {
"type": "number",
"default": 10,
"maximum": 100,
"minimum": 1,
"description": "Number of records per page"
},
"schemaKey": {
"type": "string",
"description": "Schema key of the object to search in"
},
"locationId": {
"type": "string",
"description": "Location ID (uses default if not provided)"
},
"searchAfter": {
"type": "array",
"items": {
"type": "string"
},
"description": "Cursor for pagination (returned from previous search)"
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
},
"includeRecordDetails": {
"type": "boolean",
"description": "Defaults to false. When false, returns record metadata and property keys only, not full custom object record property values."
}
}
}

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-object-records-example",
"method": "tools/call",
"params": {
"name": "ghl.search_object_records",
"arguments": {
"schemaKey": "schemaKey_example",
"query": "query_example",
"page": 1,
"tenantId": "tenantId_123",
"pageLimit": 1,
"locationId": "locationId_123",
"searchAfter": [],
"strictTenant": false,
"includeRecordDetails": false
}
}
}'

Example Responses

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