Skip to main content
Glama

upsert_contact

Create or update a GoHighLevel contact by matching email or phone, so you can keep CRM records current without duplicate entries.

Instructions

Create or update a contact in GoHighLevel. If a matching contact exists (by email/phone), it updates; otherwise creates new.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upsert_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity
tagsNoTags to assign
emailNoContact email address
phoneNoContact phone number
stateNoState
sourceNoLead source
countryNoCountry code
websiteNoWebsite URL
address1NoStreet address
lastNameNoContact last name
firstNameNoContact first name
postalCodeNoPostal/ZIP code
companyNameNoCompany name
customFieldsNoCustom field values

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It usefully reveals the identity-matching behavior that determines whether a write or an insert occurs, but says nothing about partial-update semantics (whether omitted fields are cleared or merged), permission/auth requirements, or what the response contains.

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

Conciseness5/5

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

Two sentences, zero filler, and the create-vs-update outcome is front-loaded right after the purpose statement. Nothing could be cut without losing information.

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

Completeness3/5

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

For a 14-parameter upsert with zero required fields, no annotations, and no output schema, the description does not state the minimum viable payload (at least one of email/phone) or what a successful call returns. The core upsert semantics are covered, but the constrained complexity of this tool warrants more.

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% across all 14 properties, so the schema already labels every field. The description adds one piece of meaning beyond it — that email and phone act as the matching keys — but offers no guidance on similar-address/phone normalization, tag replacement vs. append, or customFields id resolution.

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

Purpose4/5

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

States a specific compound verb (create or update) and resource (contact), plus the platform (GoHighLevel). The conditional 'if a matching contact exists... it updates; otherwise creates' implicitly separates it from create_contact and update_contact siblings, though it never names them explicitly.

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?

The match rule ('by email/phone') gives a clear condition for the update path vs. the create path, which is the key decision an agent needs. It stops short of saying when to prefer this over the dedicated create_contact/update_contact tools or what happens if neither email nor phone is supplied.

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