Contacts

From wyre-technology/msp-claude-plugins · View interactive version

Contacts is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. HubSpot contact records: core and MSP-relevant custom fields, lifecycle stages, lead status values, contact ownership, CRM search filter patterns, and associations to companies and deals.

How to use this skill

Skill file

HubSpot Contact Management

Overview

Contacts in HubSpot represent individual people -- clients, prospects, vendors, or any person your MSP interacts with. Contacts are the foundational entity in HubSpot CRM. They can be associated with companies, deals, tickets, and activities to build a complete picture of every relationship. For MSPs, contacts typically represent client employees, decision-makers, technical contacts, and billing contacts at managed companies.

Conduit connector

Conduit's hubspot connector is HubSpot's own hosted MCP server (https://mcp.hubspot.com/anthropic/v1/mcp, OAuth). Its CRM tools are generic over object type, so every call names the objectType:

| Tool | Call shape |

|------|-----------|

| search_crm_objects | objectType, optional query (free text), filterGroups (property filters and associatedWith association filters), properties, sorts, limit (max 200), offset |

| get_crm_objects | objectType, objectIds (1-100), properties |

| manage_crm_objects | createRequest.objects[] or updateRequest.objects[] (each with objectType, properties, optional associations, and objectId for updates), plus confirmationStatus (CONFIRMED only after the user approved the exact change) |

| search_properties / get_properties | Discover property names and enumeration values for an objectType |

| search_owners | Resolve hubspot_owner_id values to people |

Parameter names in the tables below (such as contactId) describe the HubSpot fields involved; send them in the call shapes above. See hubspot-api-patterns for the full tool list.

Anti-triggers

company record; use hubspot-companies.

balance, terms, or tax details; the AR-side record is xero-contacts or

qbo-customers.

that is intent data, not a contact record; use

warmly-visitor-intelligence.

shared across every object type; use hubspot-api-patterns.

MCP Tools

Available Tools

| Tool | Description | Key Parameters |

|------|-------------|----------------|

| get_crm_objects (objectType: "contacts") | Get contacts by ID | objectIds (required, 1-100) |

| manage_crm_objects (createRequest, objectType: "contacts") | Create a new contact | email (required), firstname, lastname, phone, company |

| manage_crm_objects (updateRequest, objectType: "contacts") | Update an existing contact | objectId (required), property fields to update |

| search_crm_objects (objectType: "contacts", no filters) | List contacts with pagination | limit, offset |

| search_properties (objectType: "contacts") | List all available contact properties | None |

| search_crm_objects (objectType: "contacts") | Search contacts by criteria | filterGroups, sorts, limit, offset |

Search Contacts

Call search_crm_objects (objectType: "contacts") with filter groups to find contacts:

Search by email domain (find all contacts at a company):

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "email",
          "operator": "CONTAINS_TOKEN",
          "value": "acmecorp.com"
        }
      ]
    }
  ],
  "limit": 100
}

Search by name:

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "firstname",
          "operator": "EQ",
          "value": "John"
        },
        {
          "propertyName": "lastname",
          "operator": "EQ",
          "value": "Smith"
        }
      ]
    }
  ]
}

Search by lifecycle stage (find all customers):

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "lifecyclestage",
          "operator": "EQ",
          "value": "customer"
        }
      ]
    }
  ],
  "sorts": [
    {
      "propertyName": "lastname",
      "direction": "ASCENDING"
    }
  ],
  "limit": 100
}

Create a Contact

Call manage_crm_objects (createRequest, objectType: "contacts") with the contact's properties:

Example: Create a new client contact:

Update a Contact

Call manage_crm_objects (updateRequest, objectType: "contacts") with the contact's objectId and the properties to change:

Example: Update lifecycle stage and lead status:

Retrieve a Contact

Call get_crm_objects (objectType: "contacts") with the contact ID in objectIds:

Example:

Key Concepts

Lifecycle Stages

Lifecycle stages track where a contact is in your MSP's sales and service process:

| Stage | Description | MSP Context |

|-------|-------------|-------------|

| subscriber | Signed up for updates | Newsletter subscriber |

| lead | Expressed interest | Downloaded a whitepaper or filled out a form |

| marketingqualifiedlead | Marketing qualified | Meets marketing criteria for outreach |

| salesqualifiedlead | Sales qualified | Confirmed interest in MSP services |

| opportunity | Active opportunity | In an active sales conversation |

| customer | Paying customer | Signed MSP agreement, receiving services |

| evangelist | Advocate | Actively refers new business |

| other | Custom stage | Does not fit standard stages |

Lead Status

Lead status tracks the disposition of sales outreach:

| Status | Description |

|--------|-------------|

| NEW | New lead, not yet contacted |

| OPEN | Open lead, in active outreach |

| IN_PROGRESS | Engaged in conversation |

| OPEN_DEAL | Deal created, in pipeline |

| UNQUALIFIED | Does not meet qualification criteria |

| ATTEMPTED_TO_CONTACT | Outreach attempted, no response |

| CONNECTED | Connected, conversation initiated |

| BAD_TIMING | Interested but not ready |

Contact Owner

The hubspot_owner_id property assigns a contact to a specific user in your HubSpot account. For MSPs, this is typically the account manager or sales rep responsible for the relationship.

Field Reference

Core Fields

| Field | Type | Description |

|-------|------|-------------|

| email | string | Email address (primary identifier) |

| firstname | string | First name |

| lastname | string | Last name |

| phone | string | Phone number |

| mobilephone | string | Mobile phone number |

| company | string | Company name (text field) |

| jobtitle | string | Job title |

| address | string | Street address |

| city | string | City |

| state | string | State or region |

| zip | string | Postal code |

| country | string | Country |

| website | string | Personal website |

| lifecyclestage | enumeration | Lifecycle stage |

| hs_lead_status | enumeration | Lead status |

| hubspot_owner_id | number | Assigned owner (user ID) |

| createdate | datetime | Record creation date |

| lastmodifieddate | datetime | Last modification date |

| notes_last_updated | datetime | Last note timestamp |

| num_associated_deals | number | Number of associated deals |

| hs_email_last_send_date | datetime | Last email sent |

| hs_email_last_open_date | datetime | Last email opened |

MSP-Relevant Custom Fields

Many MSPs add custom properties for contacts. Common examples:

| Field | Type | Description |

|-------|------|-------------|

| preferred_contact_method | enumeration | Email, phone, or text |

| technical_skill_level | enumeration | Basic, intermediate, advanced |

| decision_maker | boolean | Is this person a decision-maker |

| primary_contact | boolean | Primary contact for the company |

Common Workflows

Find a Contact by Email

  1. Call search_crm_objects (objectType: "contacts") with a filter on email using EQ operator
  2. If not found, try CONTAINS_TOKEN for partial domain matching
  3. Review the results and note the id for further operations

Find All Contacts at a Company

  1. Find the company ID with search_crm_objects (objectType: "companies")
  2. Call search_crm_objects with objectType: "contacts" and an associatedWith filter { objectType: "companies", operator: "EQUAL", objectIdValues: [<companyId>] }, paginating with offset. This also finds contacts with no email address. Use an email-domain CONTAINS_TOKEN search only to find contacts that are not yet associated
  3. For each contact, review role and lifecycle stage

Create a New Client Contact

  1. Check for duplicates - Search by email first using search_crm_objects (objectType: "contacts")
  2. Create the contact - Call manage_crm_objects (createRequest, objectType: "contacts") with email, name, phone, company, job title, and lifecyclestage=customer
  3. Associate with company - Call manage_crm_objects (updateRequest with associations) to link the contact to the company record
  4. Log onboarding note - Call manage_crm_objects (createRequest, objectType: "notes") with associations to the new contact, so the note shows on its timeline

Update Contact After Sales Conversion

  1. Call manage_crm_objects (updateRequest, objectType: "contacts") with:
  1. Call manage_crm_objects (createRequest, objectType: "notes") with associations to the contact to log the conversion details
  2. Call manage_crm_objects (createRequest, objectType: "tasks") with associations to the contact to create onboarding follow-up tasks

Contact Audit for a Client Company

  1. Find the company with search_crm_objects (objectType: "companies")
  2. Call search_crm_objects with objectType: "contacts" and an associatedWith filter on the company ID to get all contacts associated with it
  3. Retrieve each contact with get_crm_objects (objectType: "contacts")
  4. Build a report with name, email, job title, lifecycle stage, and last activity date
  5. Flag contacts without email addresses or with stale last activity dates

Response Examples

Single Contact:

{
  "id": "12345",
  "properties": {
    "email": "john.smith@acmecorp.com",
    "firstname": "John",
    "lastname": "Smith",
    "phone": "555-123-4567",
    "company": "Acme Corporation",
    "jobtitle": "IT Director",
    "lifecyclestage": "customer",
    "hs_lead_status": "CONNECTED",
    "hubspot_owner_id": "67890",
    "createdate": "2025-06-15T10:30:00.000Z",
    "lastmodifieddate": "2026-02-10T14:15:00.000Z"
  },
  "createdAt": "2025-06-15T10:30:00.000Z",
  "updatedAt": "2026-02-10T14:15:00.000Z"
}

Search Results:

{
  "total": 3,
  "results": [
    {
      "id": "12345",
      "properties": {
        "email": "john.smith@acmecorp.com",
        "firstname": "John",
        "lastname": "Smith",
        "company": "Acme Corporation"
      }
    },
    {
      "id": "12346",
      "properties": {
        "email": "jane.doe@acmecorp.com",
        "firstname": "Jane",
        "lastname": "Doe",
        "company": "Acme Corporation"
      }
    }
  ]
}

Error Handling

Common Errors

| Error | Cause | Resolution |

|-------|-------|------------|

| Contact not found | Invalid contact ID | Verify the ID with search_crm_objects (objectType: "contacts") |

| Duplicate email | Contact with this email already exists | Search for existing contact first |

| Invalid property | Property name not recognized | Use search_properties (objectType: "contacts") to check available properties |

| Invalid lifecycle stage | Stage value not valid | Use one of: subscriber, lead, marketingqualifiedlead, salesqualifiedlead, opportunity, customer, evangelist, other |

| Rate limited | Too many requests | Wait 10 seconds and retry |

Best Practices

  1. Use lifecycle stages consistently - Define clear criteria for each stage in your MSP's process
  2. Associate contacts with companies - Always link contacts to their company record for full context
  3. Track lead status - Update lead status as sales conversations progress
  4. Assign owners - Set hubspot_owner_id so team members know who manages each relationship
  5. Log activities - Create notes and tasks on contacts to maintain a complete activity history
  6. Audit regularly - Review contacts quarterly for stale records and missing information
  7. Standardize job titles - Use consistent job title formats for better reporting
  8. Respect data privacy - PHI properties are excluded from MCP responses by design

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.