Skip to main content
Glama
ghl-mcp-server-v2

ghl-mcp-server-v2

by zackscriven

ghl_contact_upsert

Creates or updates a contact using location-based duplicate matching, with an option to create a new contact when duplicates are allowed.

Instructions

Requires locationId. Same field set as ghl_contact_create; use createNewIfDuplicateAllowed to control dedup behavior. Upsert Contact The Upsert API will adhere to the configuration defined under the "Allow Duplicate Contact" setting at the Location level. If the setting is configured to check both Email and Phone, the API will attempt to identify an existing contact based on the priority sequence specified in the setting, and will create or update the contact accordingly.If two separate contacts already exist—one with the same email and another with the same phone—and an upsert request includes both the email and phone, the API will update the contact that matches the first field in the configured sequence, and ignore the second field to prevent duplication. Endpoint: POST /contacts/upsert (Version header: v3; source: v3/contacts-v3.json) OAuth scopes: contacts.write

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "body": "<body>"
    },
    "name": "ghl_contact_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body (schema carried verbatim from the official OpenAPI spec).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.1.0
    • changedInput schema / properties / body / properties / customFields / items / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "Text value for the custom field (preferred).",
      -        "example": "My Text",
      -        "type": "string"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": "My Text",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "Large text value for the custom field (preferred).",
      -        "example": "My Text",
      -        "type": "string"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": "My Text",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "Selected option value for the custom field (preferred).",
      -        "example": "My Selected Option",
      -        "type": "string"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": "My Selected Option",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "Selected radio option value for the custom field (preferred).",
      -        "example": "My Selected Option",
      -        "type": "string"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": "My Selected Option",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "Numeric value for the custom field (preferred).",
      -        "example": 100,
      -        "type": "object"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": 100,
      -        "type": "object"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "Monetary value for the custom field (preferred).",
      -        "example": 100.5,
      -        "type": "object"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": 100.5,
      -        "type": "object"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "Array of selected checkbox values for the custom field (preferred).",
      -        "example": [
      -          "test",
      -          "test2"
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": [
      -          "test",
      -          "test2"
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "Array of selected values for the custom field (preferred).",
      -        "example": [
      -          "test",
      -          "test2"
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": [
      -          "test",
      -          "test2"
      -        ],
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "fieldValue": {
      -        "description": "File upload value — a map of UUID to file metadata and download URL (preferred).",
      -        "example": {
      -          "f31175d4-2b06-4fc6-b7bc-74cd814c68cb": {
      -            "documentId": "w2M9qTZ0ZJz8rGt02jdJ",
      -            "meta": {
      -              "encoding": "7bit",
      -              "fieldname": "1HeGizb13P0odwgOgKSs",
      -              "mimetype": "image/jpeg",
      -              "originalname": "IMG_20231215_164412935.jpg",
      -              "size": 1786611,
      -              "uuid": "f31175d4-2b06-4fc6-b7bc-74cd814c68cb"
      -            },
      -            "url": "https://services.leadconnectorhq.com/documents/download/w2M9qTZ0ZJz8rGt02jdJ"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "field_value": {
      -        "deprecated": true,
      -        "description": "Deprecated. Use `fieldValue` instead.",
      -        "example": {
      -          "f31175d4-2b06-4fc6-b7bc-74cd814c68cb": {
      -            "documentId": "w2M9qTZ0ZJz8rGt02jdJ",
      -            "meta": {
      -              "encoding": "7bit",
      -              "fieldname": "1HeGizb13P0odwgOgKSs",
      -              "mimetype": "image/jpeg",
      -              "originalname": "IMG_20231215_164412935.jpg",
      -              "size": 1786611,
      -              "uuid": "f31175d4-2b06-4fc6-b7bc-74cd814c68cb"
      -            },
      -            "url": "https://services.leadconnectorhq.com/documents/download/w2M9qTZ0ZJz8rGt02jdJ"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "id": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "6dvNaf7VhkQ9snc5vnjJ",
      -        "type": "string"
      -      },
      -      "key": {
      -        "description": "Pass either `id` or `key` of custom field",
      -        "example": "my_custom_field",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "Text value for the custom field (preferred).",
      +        "example": "My Text",
      +        "type": "string"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": "My Text",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "TextField",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "Large text value for the custom field (preferred).",
      +        "example": "My Text",
      +        "type": "string"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": "My Text",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "LargeTextField",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "Selected option value for the custom field (preferred).",
      +        "example": "My Selected Option",
      +        "type": "string"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": "My Selected Option",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "SingleSelectField",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "Selected radio option value for the custom field (preferred).",
      +        "example": "My Selected Option",
      +        "type": "string"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": "My Selected Option",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "RadioField",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "Numeric value for the custom field (preferred).",
      +        "example": 100,
      +        "type": "object"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": 100,
      +        "type": "object"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "NumericField",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "Monetary value for the custom field (preferred).",
      +        "example": 100.5,
      +        "type": "object"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": 100.5,
      +        "type": "object"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "MonetoryField",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "Array of selected checkbox values for the custom field (preferred).",
      +        "example": [
      +          "test",
      +          "test2"
      +        ],
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": [
      +          "test",
      +          "test2"
      +        ],
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "CheckboxField",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "Array of selected values for the custom field (preferred).",
      +        "example": [
      +          "test",
      +          "test2"
      +        ],
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": [
      +          "test",
      +          "test2"
      +        ],
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "MultiSelectField",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "fieldValue": {
      +        "description": "File upload value — a map of UUID to file metadata and download URL (preferred).",
      +        "example": {
      +          "f31175d4-2b06-4fc6-b7bc-74cd814c68cb": {
      +            "documentId": "w2M9qTZ0ZJz8rGt02jdJ",
      +            "meta": {
      +              "encoding": "7bit",
      +              "fieldname": "1HeGizb13P0odwgOgKSs",
      +              "mimetype": "image/jpeg",
      +              "originalname": "IMG_20231215_164412935.jpg",
      +              "size": 1786611,
      +              "uuid": "f31175d4-2b06-4fc6-b7bc-74cd814c68cb"
      +            },
      +            "url": "https://services.leadconnectorhq.com/documents/download/w2M9qTZ0ZJz8rGt02jdJ"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "field_value": {
      +        "deprecated": true,
      +        "description": "Deprecated. Use `fieldValue` instead.",
      +        "example": {
      +          "f31175d4-2b06-4fc6-b7bc-74cd814c68cb": {
      +            "documentId": "w2M9qTZ0ZJz8rGt02jdJ",
      +            "meta": {
      +              "encoding": "7bit",
      +              "fieldname": "1HeGizb13P0odwgOgKSs",
      +              "mimetype": "image/jpeg",
      +              "originalname": "IMG_20231215_164412935.jpg",
      +              "size": 1786611,
      +              "uuid": "f31175d4-2b06-4fc6-b7bc-74cd814c68cb"
      +            },
      +            "url": "https://services.leadconnectorhq.com/documents/download/w2M9qTZ0ZJz8rGt02jdJ"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "id": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "6dvNaf7VhkQ9snc5vnjJ",
      +        "type": "string"
      +      },
      +      "key": {
      +        "description": "Pass either `id` or `key` of custom field",
      +        "example": "my_custom_field",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "title": "FileField",
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / properties / dateOfBirth / description
      Previous value: -"The birth date of the contact. Supported formats: YYYY/MM/DD, MM/DD/YYYY, YYYY-MM-DD, MM-DD-YYYY, YYYY.MM.DD, MM.DD.YYYY, YYYY_MM_DD, MM_DD_YYYY"New value: +"The birth date of the contact, as a string. Supported formats: YYYY/MM/DD, MM/DD/YYYY, YYYY-MM-DD, MM-DD-YYYY, YYYY.MM.DD, MM.DD.YYYY, YYYY_MM_DD, MM_DD_YYYY. (Spec bug override 2026-08-27: upstream declares this as an empty object schema.)"
    • removedInput schema / properties / body / properties / dateOfBirth / example
      Removed value: -"1990-09-25"
    • removedInput schema / properties / body / properties / dateOfBirth / nullable
      Removed value: -true
    • changedInput schema / properties / body / properties / dateOfBirth / type
      Previous value: -"object"New value: +"string"
    • changedInput schema / properties / body / properties / dndSettings / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "call": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "code": {
      -                "description": "DND code or reason",
      -                "example": "OPTED_OUT",
      -                "type": "string"
      -              },
      -              "message": {
      -                "description": "Custom message associated with the DND setting",
      -                "example": "Do not contact via this channel",
      -                "type": "string"
      -              },
      -              "status": {
      -                "description": "Do Not Disturb status for this channel",
      -                "enum": [
      -                  "active",
      -                  "inactive",
      -                  "permanent"
      -                ],
      -                "example": "active",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "DND settings for phone calls",
      -        "example": {
      -          "code": "all",
      -          "message": "Do not call",
      -          "status": "active"
      -        }
      -      },
      -      "email": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "code": {
      -                "description": "DND code or reason",
      -                "example": "OPTED_OUT",
      -                "type": "string"
      -              },
      -              "message": {
      -                "description": "Custom message associated with the DND setting",
      -                "example": "Do not contact via this channel",
      -                "type": "string"
      -              },
      -              "status": {
      -                "description": "Do Not Disturb status for this channel",
      -                "enum": [
      -                  "active",
      -                  "inactive",
      -                  "permanent"
      -                ],
      -                "example": "active",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "DND settings for email",
      -        "example": {
      -          "code": "all",
      -          "message": "Do not email",
      -          "status": "active"
      -        }
      -      },
      -      "fb": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "code": {
      -                "description": "DND code or reason",
      -                "example": "OPTED_OUT",
      -                "type": "string"
      -              },
      -              "message": {
      -                "description": "Custom message associated with the DND setting",
      -                "example": "Do not contact via this channel",
      -                "type": "string"
      -              },
      -              "status": {
      -                "description": "Do Not Disturb status for this channel",
      -                "enum": [
      -                  "active",
      -                  "inactive",
      -                  "permanent"
      -                ],
      -                "example": "active",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "DND settings for Facebook",
      -        "example": {
      -          "code": "all",
      -          "message": "Do not contact via FB",
      -          "status": "active"
      -        }
      -      },
      -      "gmb": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "code": {
      -                "description": "DND code or reason",
      -                "example": "OPTED_OUT",
      -                "type": "string"
      -              },
      -              "message": {
      -                "description": "Custom message associated with the DND setting",
      -                "example": "Do not contact via this channel",
      -                "type": "string"
      -              },
      -              "status": {
      -                "description": "Do Not Disturb status for this channel",
      -                "enum": [
      -                  "active",
      -                  "inactive",
      -                  "permanent"
      -                ],
      -                "example": "active",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "DND settings for Google My Business",
      -        "example": {
      -          "code": "all",
      -          "message": "Do not contact via GMB",
      -          "status": "active"
      -        }
      -      },
      -      "sms": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "code": {
      -                "description": "DND code or reason",
      -                "example": "OPTED_OUT",
      -                "type": "string"
      -              },
      -              "message": {
      -                "description": "Custom message associated with the DND setting",
      -                "example": "Do not contact via this channel",
      -                "type": "string"
      -              },
      -              "status": {
      -                "description": "Do Not Disturb status for this channel",
      -                "enum": [
      -                  "active",
      -                  "inactive",
      -                  "permanent"
      -                ],
      -                "example": "active",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "DND settings for SMS",
      -        "example": {
      -          "code": "all",
      -          "message": "Do not SMS",
      -          "status": "active"
      -        }
      -      },
      -      "whatsApp": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "code": {
      -                "description": "DND code or reason",
      -                "example": "OPTED_OUT",
      -                "type": "string"
      -              },
      -              "message": {
      -                "description": "Custom message associated with the DND setting",
      -                "example": "Do not contact via this channel",
      -                "type": "string"
      -              },
      -              "status": {
      -                "description": "Do Not Disturb status for this channel",
      -                "enum": [
      -                  "active",
      -                  "inactive",
      -                  "permanent"
      -                ],
      -                "example": "active",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "DND settings for WhatsApp",
      -        "example": {
      -          "code": "all",
      -          "message": "Do not WhatsApp",
      -          "status": "active"
      -        }
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "call": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "code": {
      +                "description": "DND code or reason",
      +                "example": "OPTED_OUT",
      +                "type": "string"
      +              },
      +              "message": {
      +                "description": "Custom message associated with the DND setting",
      +                "example": "Do not contact via this channel",
      +                "type": "string"
      +              },
      +              "status": {
      +                "description": "Do Not Disturb status for this channel",
      +                "enum": [
      +                  "active",
      +                  "inactive",
      +                  "permanent"
      +                ],
      +                "example": "active",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "status"
      +            ],
      +            "title": "DndSettingSchema",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "DND settings for phone calls",
      +        "example": {
      +          "code": "all",
      +          "message": "Do not call",
      +          "status": "active"
      +        }
      +      },
      +      "email": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "code": {
      +                "description": "DND code or reason",
      +                "example": "OPTED_OUT",
      +                "type": "string"
      +              },
      +              "message": {
      +                "description": "Custom message associated with the DND setting",
      +                "example": "Do not contact via this channel",
      +                "type": "string"
      +              },
      +              "status": {
      +                "description": "Do Not Disturb status for this channel",
      +                "enum": [
      +                  "active",
      +                  "inactive",
      +                  "permanent"
      +                ],
      +                "example": "active",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "status"
      +            ],
      +            "title": "DndSettingSchema",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "DND settings for email",
      +        "example": {
      +          "code": "all",
      +          "message": "Do not email",
      +          "status": "active"
      +        }
      +      },
      +      "fb": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "code": {
      +                "description": "DND code or reason",
      +                "example": "OPTED_OUT",
      +                "type": "string"
      +              },
      +              "message": {
      +                "description": "Custom message associated with the DND setting",
      +                "example": "Do not contact via this channel",
      +                "type": "string"
      +              },
      +              "status": {
      +                "description": "Do Not Disturb status for this channel",
      +                "enum": [
      +                  "active",
      +                  "inactive",
      +                  "permanent"
      +                ],
      +                "example": "active",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "status"
      +            ],
      +            "title": "DndSettingSchema",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "DND settings for Facebook",
      +        "example": {
      +          "code": "all",
      +          "message": "Do not contact via FB",
      +          "status": "active"
      +        }
      +      },
      +      "gmb": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "code": {
      +                "description": "DND code or reason",
      +                "example": "OPTED_OUT",
      +                "type": "string"
      +              },
      +              "message": {
      +                "description": "Custom message associated with the DND setting",
      +                "example": "Do not contact via this channel",
      +                "type": "string"
      +              },
      +              "status": {
      +                "description": "Do Not Disturb status for this channel",
      +                "enum": [
      +                  "active",
      +                  "inactive",
      +                  "permanent"
      +                ],
      +                "example": "active",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "status"
      +            ],
      +            "title": "DndSettingSchema",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "DND settings for Google My Business",
      +        "example": {
      +          "code": "all",
      +          "message": "Do not contact via GMB",
      +          "status": "active"
      +        }
      +      },
      +      "sms": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "code": {
      +                "description": "DND code or reason",
      +                "example": "OPTED_OUT",
      +                "type": "string"
      +              },
      +              "message": {
      +                "description": "Custom message associated with the DND setting",
      +                "example": "Do not contact via this channel",
      +                "type": "string"
      +              },
      +              "status": {
      +                "description": "Do Not Disturb status for this channel",
      +                "enum": [
      +                  "active",
      +                  "inactive",
      +                  "permanent"
      +                ],
      +                "example": "active",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "status"
      +            ],
      +            "title": "DndSettingSchema",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "DND settings for SMS",
      +        "example": {
      +          "code": "all",
      +          "message": "Do not SMS",
      +          "status": "active"
      +        }
      +      },
      +      "whatsApp": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "code": {
      +                "description": "DND code or reason",
      +                "example": "OPTED_OUT",
      +                "type": "string"
      +              },
      +              "message": {
      +                "description": "Custom message associated with the DND setting",
      +                "example": "Do not contact via this channel",
      +                "type": "string"
      +              },
      +              "status": {
      +                "description": "Do Not Disturb status for this channel",
      +                "enum": [
      +                  "active",
      +                  "inactive",
      +                  "permanent"
      +                ],
      +                "example": "active",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "status"
      +            ],
      +            "title": "DndSettingSchema",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "DND settings for WhatsApp",
      +        "example": {
      +          "code": "all",
      +          "message": "Do not WhatsApp",
      +          "status": "active"
      +        }
      +      }
      +    },
      +    "title": "DndSettingsSchemaV3",
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / properties / inboundDndSettings / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "all": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "message": {
      -                "description": "Custom message associated with the inbound DND setting",
      -                "example": "Please do not contact me via this channel",
      -                "type": "string"
      -              },
      -              "status": {
      -                "description": "Inbound DND status for this channel",
      -                "enum": [
      -                  "active",
      -                  "inactive"
      -                ],
      -                "example": "active",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "Inbound DND settings applied to all channels",
      -        "example": {
      -          "message": "Do not contact me",
      -          "status": "active"
      -        }
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "all": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "message": {
      +                "description": "Custom message associated with the inbound DND setting",
      +                "example": "Please do not contact me via this channel",
      +                "type": "string"
      +              },
      +              "status": {
      +                "description": "Inbound DND status for this channel",
      +                "enum": [
      +                  "active",
      +                  "inactive"
      +                ],
      +                "example": "active",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "status"
      +            ],
      +            "title": "InboundDndSettingSchema",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "Inbound DND settings applied to all channels",
      +        "example": {
      +          "message": "Do not contact me",
      +          "status": "active"
      +        }
      +      }
      +    },
      +    "title": "InboundDndSettingsSchema",
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / body / title
      Added value: +"UpsertContactDtoV3"
  2. First observedv2.0.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well past annotations by disclosing the dedup decision logic, the two-contact/email+phone collision edge case ('update the contact that matches the first field... and ignore the second'), the OAuth scope (contacts.write), and the endpoint. It does not state what happens to omitted fields on the update path (partial vs. full overwrite), which is the main remaining behavioral unknown for a mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening line is well front-loaded and the highest-value information. However, the body then repeats the title as a heading and restates the location dedup behavior twice across two paragraphs, plus tacks on endpoint/scope metadata, so several sentences do not fully earn their place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter mutation with a fully documented nested body and no output schema, the description covers the critical ambiguity (when a duplicate results in create vs update) plus auth scope. Return/response shape is left implicit, which is acceptable given the schema richness but is the one gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single body parameter is exhaustively documented, including the three scenarios for createNewIfDuplicateAllowed. The description only adds the reminder that locationId is required, so it largely duplicates structured data — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States the verb+resource (upsert a contact) and immediately scopes it against the sibling: 'Same field set as ghl_contact_create; use createNewIfDuplicateAllowed to control dedup behavior.' An agent can distinguish upsert-vs-create without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains the conditions under which upsert creates vs updates, including the location-level 'Allow Duplicate Contact' setting and the priority sequence. It never explicitly says 'use ghl_contact_create when you never want an update,' so the alternative is implied rather than stated, but the context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools