HubSpot

v0.5.1
io.github.mindstone/mcp-server-hubspot Checked 2 days ago Published 14 hours ago

HubSpot CRM: contacts, deals, tickets, line items, properties, marketing, files, workflows, threads

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_hubspot_accounts

List all connected HubSpot accounts and their authentication status. ALWAYS call this FIRST before any HubSpot CRM operations to: 1. Check if any HubSpot accounts are connected 2. Verify authentication status (valid, expired, needs re-auth) 3. Get the email address to use for subsequent operations If no accounts are connected, guide the user to connect one using authenticate_hubspot_account. Example workflow: 1. User: "Show me my HubSpot contacts" 2. Agent: Call list_hubspot_accounts first 3. If accounts exist and valid → proceed with search_hubspot_contacts 4. If no accounts → tell use…

authenticate_hubspot_account

Connect a new HubSpot account or re-authenticate an existing one. This tool initiates the OAuth flow to connect a HubSpot account: 1. Returns an authorization URL that the user must click 2. User signs into HubSpot and grants permissions 3. Authentication completes automatically via callback WHEN TO USE: - When list_hubspot_accounts shows no connected accounts - When an account shows status "expired" or "error" - When user explicitly asks to connect/reconnect HubSpot WHEN NOT TO USE: - If list_hubspot_accounts shows a valid, active account - Without checking list_hubspot_accounts first (was…

ParameterTypeDescription
emailstringOptional: Email hint for the account being connected (for display purposes)

complete_hubspot_auth

Wait for HubSpot OAuth authorization to complete. Call this AFTER authenticate_hubspot_account has returned an auth_url and the user has clicked it. This tool: 1. Waits for the OAuth callback (up to 2 minutes) 2. Exchanges the authorization code for access tokens 3. Saves the account credentials 4. Returns success with the connected email IMPORTANT: Only call this if auto_complete was false in authenticate_hubspot_account response. If auto_complete was true, authentication completes automatically and you don't need this tool.

ParameterTypeDescription
emailstringEmail address of the account being authenticated

remove_hubspot_account

Disconnect a HubSpot account and delete its stored credentials. Use this when: - User wants to disconnect their HubSpot account - User wants to switch to a different HubSpot account - Troubleshooting authentication issues (remove and re-add) This permanently removes the account's access tokens. The user will need to re-authenticate to use HubSpot again.

ParameterTypeDescription
email *stringEmail address of the HubSpot account to remove

search_hubspot_contacts

Search for contacts in HubSpot CRM. USE THIS WHEN: - User asks "find contact [name/email]" or "look up [person]" - Need to find a contact before updating, associating, or viewing details - Preparing for a meeting and need contact info RETURNS: Array of contacts with id, properties (email, firstname, lastname, etc.) EXAMPLES: 1. Find by email: filters=[{propertyName:"email", operator:"EQ", value:"john@acme.com"}] 2. Find by name: query="John Smith" 3. Find by company: filters=[{propertyName:"company", operator:"CONTAINS_TOKEN", value:"Acme"}] OPERATORS: EQ, NEQ, LT, LTE, GT, GTE, CONTAINS_T…

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria for precise matching
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return (default: basic info)
querystringFree-text search across name/email

get_hubspot_contact

Get full details for a single contact by ID. USE THIS WHEN: - You already have a contact ID (from search or association) - Need complete contact information - Preparing a detailed contact profile RETURNS: Single contact object with all requested properties PREREQUISITE: Get contactId from search_hubspot_contacts first

ParameterTypeDescription
contactId *stringHubSpot contact ID (numeric string)
propertiesarrayProperties to return

create_hubspot_contact

Create a new contact in HubSpot CRM. USE THIS WHEN: - User says "add contact" or "create contact for [person]" - Logging a new lead or prospect - Contact doesn't exist (verify with search first!) REQUIRED: email (strongly recommended - used for deduplication) NOTE: The server automatically sets hs_object_source_detail_2 for source attribution. COMMON PROPERTIES: - email, firstname, lastname - phone, mobilephone - company, jobtitle - address, city, state, zip, country - lifecyclestage: "lead", "marketingqualifiedlead", "salesqualifiedlead", "opportunity", "customer" - hubspot_owner_id: assi…

ParameterTypeDescription
properties *objectContact properties object

update_hubspot_contact

Update an existing contact's properties. USE THIS WHEN: - User says "update contact" or "change [field] for [contact]" - Need to correct or add information - Changing lifecycle stage or owner assignment PREREQUISITE: Get contactId from search_hubspot_contacts first RETURNS: Updated contact object

ParameterTypeDescription
contactId *stringHubSpot contact ID
properties *objectProperties to update (only include changed fields)

delete_hubspot_contact

Permanently delete a contact from HubSpot. USE THIS WHEN: - User explicitly asks to delete/remove a contact - Cleaning up duplicate or test records WARNING: This is permanent. Associated engagements may be orphaned. PREREQUISITE: Get contactId from search_hubspot_contacts first

ParameterTypeDescription
contactId *stringHubSpot contact ID

search_hubspot_companies

Search for companies/organizations in HubSpot CRM. USE THIS WHEN: - User asks "find company [name]" or "look up [organization]" - Need company info for account research - Finding companies to associate with contacts or deals RETURNS: Array of companies with id, properties (name, domain, industry, etc.) EXAMPLES: 1. Find by name: query="Acme Corp" 2. Find by domain: filters=[{propertyName:"domain", operator:"EQ", value:"acme.com"}] 3. Find by industry: filters=[{propertyName:"industry", operator:"EQ", value:"COMPUTER_SOFTWARE"}] COMMON PROPERTIES to request: name, domain, industry, numberof…

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return
querystringFree-text search by company name

get_hubspot_company

Get full details for a single company by ID. USE THIS WHEN: - You have a company ID (from search or association) - Need complete company profile for account research PREREQUISITE: Get companyId from search_hubspot_companies or get_hubspot_associations

ParameterTypeDescription
companyId *stringHubSpot company ID (numeric string)
propertiesarrayProperties to return

create_hubspot_company

Create a new company in HubSpot CRM. USE THIS WHEN: - User says "add company" or "create account for [organization]" - Company doesn't exist (verify with search first!) REQUIRED: name COMMON PROPERTIES: - name (company name) - domain (website domain, used for deduplication) - industry (e.g., "COMPUTER_SOFTWARE", "FINANCIAL_SERVICES") - numberofemployees, annualrevenue - phone, address, city, state, zip, country - hubspot_owner_id: assign to team member (RECOMMENDED — get IDs from list_hubspot_owners) COMMON MISTAKES: - NOT specifying hubspot_owner_id — if omitted, the company may be as…

ParameterTypeDescription
properties *objectCompany properties object

update_hubspot_company

Update an existing company's properties. USE THIS WHEN: - User says "update company" or "change [field] for [company]" - Need to correct or add company information PREREQUISITE: Get companyId from search_hubspot_companies first

ParameterTypeDescription
companyId *stringHubSpot company ID
properties *objectProperties to update

delete_hubspot_company

Permanently delete a company from HubSpot. WARNING: This is permanent and may affect associated contacts and deals. PREREQUISITE: Get companyId from search_hubspot_companies first

ParameterTypeDescription
companyId *stringHubSpot company ID

search_hubspot_deals

Search for deals/opportunities in HubSpot CRM. USE THIS WHEN: - User asks "find deal [name]" or "show my deals" - Need to check pipeline status - Looking for deals by stage, amount, or owner RETURNS: Array of deals with id, properties (dealname, amount, dealstage, etc.) EXAMPLES: 1. Find by name: query="Acme Enterprise" 2. Find by stage: filters=[{propertyName:"dealstage", operator:"EQ", value:"qualifiedtobuy"}] 3. Find deals > $10k: filters=[{propertyName:"amount", operator:"GT", value:"10000"}] 4. Find by owner: filters=[{propertyName:"hubspot_owner_id", operator:"EQ", value:"12345"}] NO…

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return
querystringFree-text search by deal name

get_hubspot_deal

Get full details for a single deal by ID. USE THIS WHEN: - You have a deal ID (from search or association) - Need complete deal information including custom properties PREREQUISITE: Get dealId from search_hubspot_deals or get_hubspot_associations

ParameterTypeDescription
dealId *stringHubSpot deal ID (numeric string)
propertiesarrayProperties to return

create_hubspot_deal

Create a new deal/opportunity in HubSpot CRM. USE THIS WHEN: - User says "create deal" or "add opportunity" - Logging a new sales opportunity REQUIRED: dealname, hubspot_owner_id IMPORTANT: Use list_hubspot_pipelines first to get valid pipeline and dealstage IDs! FALLBACK FIELDS (set by the server only if not provided): - hubspot_owner_id: FALLBACK ONLY — if not provided via the top-level parameter, falls back to the HubSpot integration account used by your host. This is usually the WRONG person on team accounts. - hs_object_source_detail_2: records that this deal was created via your MC…

ParameterTypeDescription
hubspot_owner_id *stringOwner ID for the deal (REQUIRED — get from list_hubspot_owners). If omitted, falls back to the integration account which is usually wrong for team accounts.
properties *objectDeal properties object

update_hubspot_deal

Update an existing deal's properties. USE THIS WHEN: - User says "update deal" or "move deal to [stage]" - Changing deal amount, stage, or close date - Reassigning deal to different owner COMMON UPDATES: - dealstage: move to different pipeline stage (use stage ID from list_hubspot_pipelines) - amount: update deal value - closedate: update expected close date - hubspot_owner_id: reassign to different team member PREREQUISITE: Get dealId from search_hubspot_deals first

ParameterTypeDescription
dealId *stringHubSpot deal ID
properties *objectProperties to update

delete_hubspot_deal

Permanently delete a deal from HubSpot. WARNING: This is permanent. Deal history and associations will be lost. PREREQUISITE: Get dealId from search_hubspot_deals first

ParameterTypeDescription
dealId *stringHubSpot deal ID

search_hubspot_tickets

Search for tickets in HubSpot with filters

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria
limitnumberMax results (default 10)
propertiesarrayProperties to return
querystringSearch query text

get_hubspot_ticket

Get a single ticket by ID

ParameterTypeDescription
ticketId *stringHubSpot ticket ID
propertiesarrayProperties to return

create_hubspot_ticket

Create a new ticket in HubSpot. Common properties: - subject (required) - content - hs_pipeline - hs_pipeline_stage - hs_ticket_priority

ParameterTypeDescription
properties *objectTicket properties

update_hubspot_ticket

Update an existing ticket

ParameterTypeDescription
properties *objectProperties to update
ticketId *stringHubSpot ticket ID

delete_hubspot_ticket

Delete a ticket from HubSpot

ParameterTypeDescription
ticketId *stringHubSpot ticket ID

search_hubspot_leads

Search for leads in HubSpot CRM. NOTE: Requires Sales Hub Professional or Enterprise. USE THIS WHEN: - User asks "find leads" or "show my leads" - Need to find leads by name or filter criteria - Reviewing lead pipeline or status RETURNS: Array of leads with id, properties (hs_lead_name, etc.) EXAMPLES: 1. Find by name: query="John" 2. Find by status: filters=[{propertyName:"hs_lead_status", operator:"EQ", value:"NEW"}] 3. Find by owner: filters=[{propertyName:"hubspot_owner_id", operator:"EQ", value:"12345"}] OPERATORS: EQ, NEQ, LT, LTE, GT, GTE, CONTAINS_TOKEN (partial match), IN (list)…

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria for precise matching
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return (default: basic info)
querystringFree-text search by lead name

get_hubspot_lead

Get full details for a single lead by ID. NOTE: Requires Sales Hub Professional or Enterprise. USE THIS WHEN: - You already have a lead ID (from search or association) - Need complete lead information - Reviewing a specific lead's properties and status RETURNS: Single lead object with all requested properties PREREQUISITE: Get leadId from search_hubspot_leads first

ParameterTypeDescription
leadId *stringHubSpot lead ID (numeric string)
propertiesarrayProperties to return

create_hubspot_lead

Create a new lead in HubSpot CRM. NOTE: Requires Sales Hub Professional or Enterprise. IMPORTANT: This tool creates a HubSpot Lead object (pipeline/stage tracking in Sales Hub). DO NOT use create_hubspot_deal when the user says "lead" — deals and leads are separate HubSpot object types. REQUIRED: - properties.hs_lead_name (the lead's display name) - contactId (leads MUST be associated with a contact at creation — HubSpot API requirement) The contactId is used to create a LEAD_TO_PRIMARY_CONTACT association automatically. COMMON PROPERTIES: - hs_lead_name (required — lead display nam…

ParameterTypeDescription
contactId *stringHubSpot contact ID to associate with this lead (required — leads must be linked to a contact)
properties *objectLead properties object (hs_lead_name required)

update_hubspot_lead

Update an existing lead's properties. NOTE: Requires Sales Hub Professional or Enterprise. USE THIS WHEN: - User says "update lead" or "change lead status" - Changing lead status, owner, or other properties COMMON UPDATES: - hs_lead_status: change lead status - hubspot_owner_id: reassign to different team member PREREQUISITE: Get leadId from search_hubspot_leads first RETURNS: Updated lead object

ParameterTypeDescription
leadId *stringHubSpot lead ID
properties *objectProperties to update (only include changed fields)

delete_hubspot_lead

Permanently delete a lead from HubSpot. NOTE: Requires Sales Hub Professional or Enterprise. WARNING: This is permanent. The lead record will be removed. PREREQUISITE: Get leadId from search_hubspot_leads first

ParameterTypeDescription
leadId *stringHubSpot lead ID

search_hubspot_tasks

Search for tasks in HubSpot

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria
limitnumberMax results (default 10)
propertiesarrayProperties to return

get_hubspot_task

Get a single task by ID

ParameterTypeDescription
taskId *stringHubSpot task ID
propertiesarrayProperties to return

create_hubspot_task

Create a new task in HubSpot. Common properties: - hs_task_subject (required) - hs_task_body - hs_timestamp (due date in ms) - hs_task_status (NOT_STARTED, IN_PROGRESS, COMPLETED) - hs_task_priority (LOW, MEDIUM, HIGH) - hubspot_owner_id

ParameterTypeDescription
properties *objectTask properties

update_hubspot_task

Update an existing task

ParameterTypeDescription
properties *objectProperties to update
taskId *stringHubSpot task ID

delete_hubspot_task

Delete a task from HubSpot

ParameterTypeDescription
taskId *stringHubSpot task ID

search_hubspot_notes

Search for notes in HubSpot CRM. USE THIS WHEN: - User asks "find the note about..." or "what notes are on this deal?" - Need to locate a note before reading or updating it RETURNS: Array of notes with id and properties (hs_note_body, hs_timestamp, hubspot_owner_id) Text search (query) matches against hs_note_body. Use filters for precise matching (e.g. filters=[{propertyName:"hs_lastmodifieddate", operator:"GT", value:"2026-01-01"}]).

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria for precise matching
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return (default: basic info)
querystringFree-text search across the note body

get_hubspot_note

Get a single note by ID, including its full body. PREREQUISITE: Get the noteId from search_hubspot_notes first (or from a record's associations via get_hubspot_associations with toObjectType "notes").

ParameterTypeDescription
noteId *stringHubSpot note ID (numeric string)
associationsarrayAssociated object types to include (e.g. ["contacts", "deals"])
propertiesarrayProperties to return

update_hubspot_note

Update an existing note's properties (e.g. edit hs_note_body). PREREQUISITE: Get the noteId from search_hubspot_notes or get_hubspot_note first. Only the provided properties are changed; omitted properties are left as-is.

ParameterTypeDescription
noteId *stringHubSpot note ID
properties *objectProperties to update (e.g. hs_note_body)

delete_hubspot_note

Permanently delete (archive) a note by ID. This cannot be undone from the CRM UI recycle bin for engagements — confirm with the user first.

ParameterTypeDescription
noteId *stringHubSpot note ID

create_hubspot_note

Create a note in HubSpot and optionally associate it with records. Properties: - hs_note_body (required) - The note content (supports HTML) - hs_timestamp - When the note was created (ISO8601 or Unix ms) - hs_attachment_ids - Semicolon-separated file IDs to attach (e.g., "123" or "123;456") Get file IDs from upload_hubspot_file or import_hubspot_file_from_url. TO ATTACH FILES TO A RECORD: 1. Upload file with upload_hubspot_file → get file id 2. Create note with hs_attachment_ids: "<file_id>" and associations to the record Or use the convenience tool attach_file_to_record for a one-step w…

ParameterTypeDescription
properties *objectNote properties (hs_note_body required)
associationsobjectAssociate note with records

create_hubspot_association

Create an unlabeled association between two HubSpot objects (v3 API). For labeled associations (e.g., "Primary Contact", "Contract Signatory", "Decision Maker"), use create_hubspot_labeled_association instead. Common association types: - contact_to_company - deal_to_contact - deal_to_company - ticket_to_contact - line_item_to_deal

ParameterTypeDescription
associationType *stringAssociation type (e.g., contact_to_company, line_item_to_deal)
fromObjectId *string
fromObjectType *stringSource object type. Common values: "contacts", "companies", "deals", "tickets", "leads", "products", "line_items", or any custom object name.
toObjectId *string
toObjectType *stringTarget object type. Common values: "contacts", "companies", "deals", "tickets", "leads", "products", "line_items", or any custom object name.

get_hubspot_associations

Get all associations of a specific type for an object. Useful for pivoting between object types in either direction, e.g.: - deal -> contacts / companies / line_items - line_item -> deals (resolves a line item back to its parent deal) - ticket -> contacts / companies - contact -> deals / companies RETURNS: { results: [{ id, type }] } — array of associated record IDs.

ParameterTypeDescription
fromObjectId *string
fromObjectType *stringSource object type. Common values: "contacts", "companies", "deals", "tickets", "leads", "products", "line_items", or any custom object name.
toObjectType *stringTarget object type. Common values: "contacts", "companies", "deals", "tickets", "leads", "products", "line_items", or any custom object name.

delete_hubspot_association

Remove an association between two objects

ParameterTypeDescription
associationType *string
fromObjectId *string
fromObjectType *stringSource object type. Common values: "contacts", "companies", "deals", "tickets", "leads", "products", "line_items", or any custom object name.
toObjectId *string
toObjectType *stringTarget object type. Common values: "contacts", "companies", "deals", "tickets", "leads", "products", "line_items", or any custom object name.

list_hubspot_association_labels

List available association labels between two object types using the v4 API. Returns all available labels (both HubSpot-defined and custom) with their typeId values. Use the typeId from this response when calling create_hubspot_labeled_association. Object type values: "contacts", "companies", "deals", "tickets", "products", "line_items", or custom object names. RETURNS: Array of labels with { category, typeId, label } - category: "HUBSPOT_DEFINED" (built-in labels like "Primary") or "USER_DEFINED" (custom labels) - typeId: Numeric ID needed for create_hubspot_labeled_association - label: Hu…

ParameterTypeDescription
fromObjectType *stringSource object type (e.g., "contacts", "companies", "deals")
toObjectType *stringTarget object type (e.g., "deals", "contacts", "companies")

create_hubspot_labeled_association

Create a labeled association between two records using the v4 API. Unlike create_hubspot_association (v3, unlabeled), this creates associations WITH labels like "Primary Contact", "Contract Signatory", "Decision Maker", etc. WORKFLOW: 1. Call list_hubspot_association_labels to discover available labels and their typeIds 2. Call this tool with the desired associationCategory and associationTypeId associationCategory: - "HUBSPOT_DEFINED": Built-in labels (e.g., Primary Contact, typeId varies by object pair) - "USER_DEFINED": Custom labels created in HubSpot Settings → Objects → Associatio…

ParameterTypeDescription
associationCategory *stringLabel category (from list_hubspot_association_labels)
associationTypeId *numberLabel type ID (from list_hubspot_association_labels)
fromObjectId *stringSource record ID
fromObjectType *stringSource object type (e.g., "contacts")
toObjectId *stringTarget record ID
toObjectType *stringTarget object type (e.g., "deals")

list_hubspot_properties

List all properties for a HubSpot object type. Supports standard types (contacts, companies, deals, tickets, tasks, leads) and custom objects. Note: For "leads", this listing endpoint works but get_hubspot_property may return SCOPE_MISSING due to a HubSpot API scope limitation.

ParameterTypeDescription
objectType *stringObject type (e.g., "contacts", "companies", "deals", "tickets", "tasks", "leads", or a custom object type ID like "2-12345")

get_hubspot_property

Get a single property definition by object type and property name. NOTE: The "leads" object type may return SCOPE_MISSING (403) because HubSpot requires crm.schemas.leads.read scope which is not always granted during OAuth. If this happens, use list_hubspot_properties instead (which works for leads). This is a known HubSpot API limitation, not a bug.

ParameterTypeDescription
objectType *stringObject type (e.g., "contacts", "companies", "deals", "tickets", "tasks", "leads", or a custom object type ID like "2-12345")
propertyName *stringInternal property name (e.g., "lifecyclestage")

create_hubspot_property

Create a new custom property on a HubSpot object. VALID TYPE/FIELDTYPE COMBINATIONS: - string: text, textarea, phonenumber, html - number: number - date: date - datetime: date - enumeration: select, radio, checkbox, booleancheckbox - bool: booleancheckbox

ParameterTypeDescription
fieldType *stringHubSpot field type
groupName *stringProperty group internal name (use list_hubspot_property_groups to discover)
label *stringDisplay label shown in HubSpot UI
name *stringInternal property name (lowercase, no spaces, underscores allowed)
objectType *stringObject type (e.g., "contacts", "companies", "deals", "tickets", "tasks", "leads", or a custom object type ID like "2-12345")
type *stringProperty data type
descriptionstringOptional property description
optionsarrayOptions for enumeration properties

update_hubspot_property

Update an existing property definition. Note: type and fieldType CANNOT be changed after creation.

ParameterTypeDescription
objectType *stringObject type (e.g., "contacts", "companies", "deals", "tickets", "tasks", "leads", or a custom object type ID like "2-12345")
propertyName *stringInternal property name to update
descriptionstringUpdated description
labelstringUpdated display label
optionsarrayUpdated options for enumeration properties

delete_hubspot_property

Archive a property from HubSpot. This ARCHIVES the property (not a hard delete).

ParameterTypeDescription
objectType *stringObject type (e.g., "contacts", "companies", "deals", "tickets", "tasks", "leads", or a custom object type ID like "2-12345")
propertyName *stringInternal property name to archive

list_hubspot_property_groups

List property groups for a HubSpot object type

ParameterTypeDescription
objectType *stringObject type (e.g., "contacts", "companies", "deals", "tickets", "tasks", "leads", or a custom object type ID like "2-12345")

create_hubspot_property_group

Create a new property group for an object type

ParameterTypeDescription
label *stringDisplay label for the group
name *stringInternal group name
objectType *stringObject type (e.g., "contacts", "companies", "deals", "tickets", "tasks", "leads", or a custom object type ID like "2-12345")
displayOrdernumberDisplay order for the group (optional)

list_hubspot_owners

List all HubSpot users who can own CRM records. USE THIS WHEN: - Need to assign a contact, deal, or company to a team member - User asks "who can I assign this to?" or "show me the sales team" - Creating/updating records with hubspot_owner_id property RETURNS: Array of owners with: - id (use this as hubspot_owner_id when creating/updating records) - email, firstName, lastName - teams[] (team memberships) WORKFLOW EXAMPLE: 1. User: "Assign the Acme deal to Sarah" 2. Call list_hubspot_owners to find Sarah's owner ID 3. Call update_hubspot_deal with hubspot_owner_id: "sarah's_id"

ParameterTypeDescription
limitnumberMax results (default 100)

get_hubspot_owner

Get details for a specific HubSpot owner by ID. USE THIS WHEN: - You have an owner ID and need their name/email - Resolving hubspot_owner_id from a record to display owner name PREREQUISITE: Get ownerId from list_hubspot_owners or from a record's hubspot_owner_id property

ParameterTypeDescription
ownerId *stringHubSpot owner ID (numeric string)

list_hubspot_pipelines

List all sales pipelines and their stages. USE THIS WHEN (CRITICAL for deal operations): - BEFORE creating a deal (to get valid pipeline and dealstage IDs) - BEFORE updating deal stage (to get valid stage ID) - User asks "what are the deal stages?" or "show me the pipeline" RETURNS: Array of pipelines, each containing: - pipelineId (use as "pipeline" property) - label (display name) - stages[] with: - stageId (use as "dealstage" property) - label (display name like "Qualified", "Proposal Sent") - displayOrder (stage position) - metadata.probability (win probability %) EXAMPLE RESPON…

ParameterTypeDescription
objectType *stringObject type (default: deals)

get_hubspot_pipeline

Get details for a specific pipeline including all stages. USE THIS WHEN: - You know the pipeline ID and need its stages - Working with a specific pipeline (not the default) PREREQUISITE: Get pipelineId from list_hubspot_pipelines if you don't know it

ParameterTypeDescription
objectType *stringObject type
pipelineId *stringPipeline ID (e.g., "default")

search_hubspot_calls

Search for logged calls in HubSpot CRM. USE THIS WHEN: - User asks "show recent calls" or "find calls with [contact]" - Need call history for meeting prep - Looking for specific call recordings or notes RETURNS: Array of calls with id, properties EXAMPLE FILTERS: 1. Recent calls: filters=[{propertyName:"hs_timestamp", operator:"GT", value:"1704067200000"}] 2. By owner: filters=[{propertyName:"hubspot_owner_id", operator:"EQ", value:"12345"}] 3. Outbound only: filters=[{propertyName:"hs_call_direction", operator:"EQ", value:"OUTBOUND"}] PROPERTIES to request: - hs_call_title, hs_call_body (…

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return

search_hubspot_meetings

Search for logged meetings in HubSpot CRM. USE THIS WHEN: - User asks "show meetings" or "find meetings with [contact]" - Need meeting history for relationship context - Looking for past meeting notes RETURNS: Array of meetings with id, properties EXAMPLE FILTERS: 1. Upcoming: filters=[{propertyName:"hs_meeting_start_time", operator:"GT", value:"1704067200000"}] 2. Completed: filters=[{propertyName:"hs_meeting_outcome", operator:"EQ", value:"COMPLETED"}] PROPERTIES to request: - hs_meeting_title, hs_meeting_body (notes/agenda) - hs_meeting_start_time, hs_meeting_end_time (Unix ms) - hs_mee…

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return

get_hubspot_call

Get full details for a single call by ID. USE THIS WHEN: - You have a call ID and need complete details - Retrieving call notes or recording info PREREQUISITE: Get callId from search_hubspot_calls or get_contact_engagements

ParameterTypeDescription
callId *stringHubSpot call ID (numeric string)
propertiesarrayProperties to return

get_hubspot_meeting

Get full details for a single meeting by ID. USE THIS WHEN: - You have a meeting ID and need complete details - Retrieving meeting notes or attendee info PREREQUISITE: Get meetingId from search_hubspot_meetings or get_contact_engagements

ParameterTypeDescription
meetingId *stringHubSpot meeting ID (numeric string)
propertiesarrayProperties to return

search_hubspot_emails

Search logged 1:1 sales email engagements in HubSpot CRM. USE THIS WHEN: - User asks "show the last email thread with this account" or "find emails about [topic]" - Meeting prep: recent email activity with a contact or company RETURNS: Array of email engagements with id, properties PROPERTIES to request: - hs_email_subject, hs_email_direction ("INCOMING_EMAIL"/"OUTGOING_EMAIL"), hs_email_status - hs_email_from_email, hs_email_to_email - hs_timestamp (Unix ms) - hs_email_text / hs_email_html (body — see SCOPE NOTE) SCOPE NOTE: HubSpot silently redacts email BODIES unless the connected app…

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return

get_hubspot_email

Get full details for a single logged email engagement by ID. PREREQUISITE: Get emailId from search_hubspot_emails or get_contact_engagements. SCOPE NOTE: the email body (hs_email_text / hs_email_html) is redacted by HubSpot unless the connected app holds the sales-email-read scope; the response carries a notes field warning when redaction applies. Subject, sender, recipients, and timestamps are always returned.

ParameterTypeDescription
emailId *stringHubSpot email engagement ID (numeric string)
propertiesarrayProperties to return

create_hubspot_call

Log a call in HubSpot CRM. USE THIS WHEN: - User says "log a call" or "record that I called [contact]" - Documenting a phone conversation - Adding call notes after a conversation REQUIRED: hs_timestamp (Unix timestamp in milliseconds) COMMON PROPERTIES: - hs_timestamp: when call occurred (REQUIRED, Unix ms, e.g., Date.now()) - hs_call_title: brief description - hs_call_body: notes, transcript, or summary - hs_call_direction: "INBOUND" or "OUTBOUND" - hs_call_status: "COMPLETED", "BUSY", "NO_ANSWER", "FAILED" - hs_call_duration: call length in milliseconds - hubspot_owner_id: who made the ca…

ParameterTypeDescription
properties *objectCall properties object
associationsobjectLink call to CRM records

create_hubspot_meeting

Log a meeting in HubSpot CRM. USE THIS WHEN: - User says "log a meeting" or "record meeting with [contact]" - Documenting a completed meeting - Scheduling a future meeting in CRM REQUIRED: - hs_timestamp (Unix ms) - hs_meeting_start_time (Unix ms) - hs_meeting_end_time (Unix ms) COMMON PROPERTIES: - hs_timestamp: when meeting was logged (Unix ms) - hs_meeting_start_time: meeting start (Unix ms) - hs_meeting_end_time: meeting end (Unix ms) - hs_meeting_title: meeting subject - hs_meeting_body: notes, agenda, or action items - hs_meeting_outcome: "SCHEDULED", "COMPLETED", "RESCHEDULED", "NO_S…

ParameterTypeDescription
properties *objectMeeting properties object
associationsobjectLink meeting to CRM records

get_contact_engagements

Get all recent activity (calls, meetings) for a contact. USE THIS WHEN: - User asks "what's the history with [contact]?" or "show activity for [person]" - Preparing for a meeting and need relationship context - Need a quick activity summary RETURNS: Object with arrays for each engagement type: { calls: [{id, properties}], meetings: [{id, properties}] } This is a convenience tool that fetches multiple engagement types in one call. For more control, use search_hubspot_calls or search_hubspot_meetings directly. PREREQUISITE: Get contactId from search_hubspot_contacts first

ParameterTypeDescription
contactId *stringHubSpot contact ID (numeric string)
limitnumberMax results per engagement type (default 5)

search_hubspot_products

Search for products in your HubSpot product catalog. USE THIS WHEN: - User asks about products, SKUs, or pricing - Looking up specific products by name or SKU - Finding products to add to a deal as line items COMMON PROPERTIES: - name: Product name - hs_sku: Stock keeping unit - price: Unit price - description: Product description - hs_cost_of_goods_sold: Cost/COGS - hs_recurring_billing_period: P1M (monthly), P1Y (yearly) SEARCH BY TEXT: Use "query" for free-text search (name, SKU) SEARCH BY FILTER: Use "filters" for exact matches RETURNS: Array of products with id and properties

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria (same syntax as contacts/deals)
limitnumberMax results (default 10)
propertiesarrayProperties to return
querystringFree-text search (searches name and SKU)

get_hubspot_product

Get a specific product by ID. USE THIS WHEN: - You have a product ID and need full details - Looking up product pricing or SKU details RETURNS: Product object with all requested properties

ParameterTypeDescription
productId *stringHubSpot product ID
propertiesarrayProperties to return

create_hubspot_product

Create a new product in the product catalog. USE THIS WHEN: - Adding new products to sell - Setting up product catalog REQUIRED: name RECOMMENDED: price, hs_sku, description EXAMPLE: { "properties": { "name": "Enterprise License", "price": "10000", "hs_sku": "ENT-001", "description": "Annual enterprise license" } } RETURNS: Created product with id

ParameterTypeDescription
properties *objectProduct properties (name required)

update_hubspot_product

Update an existing product's properties. USE THIS WHEN: - Changing product price - Updating SKU or description - Modifying any product attribute RETURNS: Updated product

ParameterTypeDescription
productId *stringHubSpot product ID
properties *objectProperties to update

search_hubspot_line_items

Search for line items in HubSpot. Line items connect products to deals for revenue tracking. Each line item represents a product/service with quantity and price on a deal. COMMON PROPERTIES: - name: Line item name (often matches product) - quantity: Number of units - price: Unit price - amount: Total (quantity × price) - hs_discount_percentage: Applied discount - hs_product_id: Source product ID RETURNS: Array of line items

ParameterTypeDescription
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria
limitnumberMax results (default 10)
propertiesarrayProperties to return

get_hubspot_line_item

Get a specific line item by ID. To resolve a line item back to its parent deal in the same call, pass `associations: ['deals']`. The response then includes an `associations` object with `{ deals: { results: [{ id, type }] } }`. RETURNS: Line item object. Includes `associations` only when the `associations` parameter is provided.

ParameterTypeDescription
lineItemId *stringHubSpot line item ID
associationsarrayOptional associated object types to include in the response (e.g. ["deals"], ["deals", "products"]). Returns associated record IDs alongside the line item.
propertiesarrayProperties to return

create_hubspot_line_item

Create a line item and optionally associate with a deal. Line items link products to deals for revenue tracking. This is the KEY tool for adding products to a deal. WORKFLOW: 1. search_hubspot_products to find product ID 2. search_hubspot_deals to find deal ID 3. create_hubspot_line_item with dealId association REQUIRED PROPERTIES: - name: Line item name - quantity: Number of units (string, e.g. "1") - price: Unit price (string, e.g. "1000.00") OPTIONAL: - hs_product_id: Link to product catalog - hs_discount_percentage: Discount to apply - dealId: Associate immediately with deal EXAMPLE:…

ParameterTypeDescription
properties *objectLine item properties (name, quantity, price required)
dealIdstringDeal ID to associate (recommended)

search_hubspot_object

Search records of ANY HubSpot object type, including custom objects. USE THIS WHEN: - The object type isn't covered by a dedicated tool (contacts/companies/deals/tickets/leads/tasks/notes/products/line_items) — e.g. a tenant-defined custom object like "p_widgets" or "2-1234567" - Prefer the dedicated search_hubspot_<object> tools for standard objects objectType: the CRM object type name — standard plural names ("contacts") or custom object names/IDs ("p_widgets", "2-1234567"). Custom object names are visible in HubSpot under Settings → Data Management → Custom Objects, or via list_hu…

ParameterTypeDescription
objectType *stringObject type name (e.g. "contacts", "p_widgets", "2-1234567")
afterstringPagination cursor from paging.next.after. Repeat the same search with this value until paging.next.after is absent.
filtersarrayFilter criteria for precise matching
limitnumberMax results (default 10, max 100)
propertiesarrayProperties to return (default: basic info)
querystringFree-text search across the object's searchable properties

get_hubspot_object

Get a single record of ANY HubSpot object type by ID, including custom objects. PREREQUISITE: Get the record ID from search_hubspot_object first. REQUIRES the crm.objects.custom.read OAuth scope for custom object types.

ParameterTypeDescription
objectId *stringHubSpot record ID (numeric string)
objectType *stringObject type name (e.g. "p_widgets", "2-1234567")
associationsarrayAssociated object types to include (e.g. ["contacts", "deals"])
propertiesarrayProperties to return

create_hubspot_object

Create a record of ANY HubSpot object type, including custom objects. Use list_hubspot_properties with the same objectType first to discover the object's properties and their expected values. To link the new record to other records, follow up with create_hubspot_association (or create_hubspot_labeled_association). REQUIRES the crm.objects.custom.write OAuth scope for custom object types.

ParameterTypeDescription
objectType *stringObject type name (e.g. "p_widgets", "2-1234567")
properties *objectRecord properties

list_hubspot_forms

List all forms in HubSpot. Forms collect leads through your website, landing pages, or embedded forms. FORM TYPES: - hubspot: Standard HubSpot forms - captured: Non-HubSpot forms (collected via tracking) - flow: Pop-up forms - blog_comment: Blog comment forms RETURNS: Array of forms with id, name, formType, createdAt

ParameterTypeDescription
afterstringPagination cursor
formTypesarrayFilter by form type (default: all types)
limitnumberMax results (default 20)

get_hubspot_form

Get detailed information about a specific form. RETURNS: Form with id, name, configuration, fieldGroups (form fields)

ParameterTypeDescription
formId *stringHubSpot form ID or GUID

get_hubspot_form_submissions

Get submissions for a specific form. USE THIS WHEN: - Reviewing lead capture performance - Checking recent form submissions - Analyzing lead sources RETURNS: Array of submissions with: - submittedAt: Submission timestamp - values: Field name/value pairs - pageUrl: Where form was submitted NOTE: Uses formGuid (same as formId for most forms)

ParameterTypeDescription
formId *stringForm ID/GUID
afterstringPagination cursor
limitnumberMax submissions (default 20, max 50)

get_hubspot_analytics_report

Get website traffic analytics report. This is the ONLY reporting API available from HubSpot. HubSpot does not have a public API for creating, listing, or managing custom reports or dashboards. For custom report needs, users must use the HubSpot UI directly. ⚠️ REQUIRES Marketing Hub Professional or Enterprise. Will return 403 error on free accounts. BREAKDOWN OPTIONS: - totals: Overall traffic metrics - sessions: Session-based metrics - sources: Traffic by source (organic, direct, etc.) - geolocation: Traffic by country/region - utm-campaigns: By UTM campaign - utm-sources: By UTM sourc…

ParameterTypeDescription
breakdownBy *stringHow to segment the data
endDate *stringEnd date YYYYMMDD
startDate *stringStart date YYYYMMDD
timePeriod *stringTime grouping
limitnumberMax breakdown rows (default 100)

list_hubspot_marketing_emails

List marketing emails in HubSpot. RETURNS: Array of emails with: - id, name, subject - state: DRAFT, SCHEDULED, PUBLISHED, etc. - type: REGULAR, AB_EMAIL, BLOG_EMAIL, etc. - createdAt, stats (if available)

ParameterTypeDescription
afterstringPagination cursor
limitnumberMax results (default 20)

get_hubspot_marketing_email

Get details of a specific marketing email by ID. USE THIS WHEN: - User asks "show me the follow-up email" or "what's in email X" - Need email content, subject, template path, or configuration RETURNS: Full email object including: - id, name, subject, previewText - state, type, templatePath - content/body (if available) - stats summary

ParameterTypeDescription
emailId *stringMarketing email ID

get_hubspot_email_statistics

Get aggregated email performance statistics. RETURNS: { aggregations: {sent, delivered, opened, clicked, bounced, unsubscribed}, emails: [{emailId, counters: {...}}] } Use this to analyze email campaign performance across multiple emails.

ParameterTypeDescription
emailIdsarraySpecific email IDs (optional)
endTimestampstringISO8601 end
startTimestampstringISO8601 start (e.g., "2026-01-01T00:00:00Z")

list_hubspot_lists

List all contact lists (segments) in HubSpot. RETURNS: Array of lists with {listId, name, processingType, size, createdAt} processingType values: - MANUAL: Static list, manually managed - DYNAMIC: Auto-updates based on filter criteria - SNAPSHOT: Point-in-time capture, does not update Use get_hubspot_list to see a dynamic list's filter criteria.

ParameterTypeDescription
afterstringPagination cursor from previous response
limitnumberMax results (default: 20, max: 100)

get_hubspot_list

Get details of a specific list/segment by ID. RETURNS: {listId, name, processingType, objectTypeId, filterBranch, size, createdAt, updatedAt} For DYNAMIC lists, filterBranch contains the criteria that determine membership. For MANUAL/SNAPSHOT lists, filterBranch is usually empty. To get the contacts IN this list, use list_hubspot_list_members.

ParameterTypeDescription
listId *stringThe list ID (from list_hubspot_lists)

list_hubspot_list_members

Get contact IDs that are members of a list/segment. IMPORTANT: Returns contact IDs only, NOT full contact records. To get contact details (email, name, etc.), use batch_read_hubspot_contacts. WORKFLOW for exporting a segment: 1. Call list_hubspot_list_members(listId) to get contact IDs 2. Call batch_read_hubspot_contacts(ids, properties) to get details 3. Repeat with pagination cursor if needed RETURNS: {results: [{recordId, membershipTimestamp}], paging: {next: {after}}}

ParameterTypeDescription
listId *stringThe list ID to get members for
afterstringPagination cursor from previous response
limitnumberMax results per page (default: 100, max: 250)

batch_read_hubspot_contacts

Fetch multiple contacts by ID in a single request (up to 100). USE THIS TO: Hydrate contact IDs from list_hubspot_list_members into full records. WORKFLOW: 1. list_hubspot_list_members(listId) → get recordIds 2. batch_read_hubspot_contacts(ids, ['email', 'firstname', 'lastname']) → get details RETURNS: {results: [{id, properties: {email, firstname, ...}, createdAt, updatedAt}]} Common properties: email, firstname, lastname, phone, company, jobtitle, lifecyclestage

ParameterTypeDescription
ids *arrayContact IDs to fetch (max 100)
propertiesarrayProperties to return (e.g., ["email", "firstname", "lastname"])

add_hubspot_list_members

Add records to a HubSpot list/segment. USE THIS WHEN: - User asks "add these contacts to the Q3 webinar list" or "put this deal on the nurture list" WORKFLOW: 1. list_hubspot_lists → find the listId 2. search_hubspot_contacts (or another search tool) → find the record IDs 3. add_hubspot_list_members with both IMPORTANT: only MANUAL and SNAPSHOT lists accept membership changes. DYNAMIC lists compute membership from their filter criteria — HubSpot rejects the write; edit the list's filters (in the HubSpot UI) instead. REQUIRES the crm.lists.write OAuth scope. On a 403 the account's pla…

ParameterTypeDescription
listId *stringThe list ID (from list_hubspot_lists)
recordIds *arrayRecord IDs to add (max 100 per call)

remove_hubspot_list_members

Remove records from a HubSpot list/segment. USE THIS WHEN: - User asks "take these contacts off the webinar list" or "clean up this segment" IMPORTANT: only MANUAL and SNAPSHOT lists accept membership changes. DYNAMIC lists compute membership from their filter criteria — HubSpot rejects the write; edit the list's filters (in the HubSpot UI) instead. REQUIRES the crm.lists.write OAuth scope. On a 403 the account's plan, the signed-in user's permissions, or the connected app's scopes are the likely cause.

ParameterTypeDescription
listId *stringThe list ID (from list_hubspot_lists)
recordIds *arrayRecord IDs to remove (max 100 per call)

list_hubspot_kb_articles

List Knowledge Base articles in HubSpot via the GraphQL API (read-only). USE THIS WHEN: - User asks "show me KB articles" or "what's in the knowledge base?" - Need to browse all KB articles with pagination - Looking for a specific article to retrieve with get_hubspot_kb_article RETURNS: - KB articles with id, title, body, slug, URL, language, and metadata - Total count and pagination support via limit/offset SCOPES REQUIRED: cms.knowledge_base.articles.read and collector.graphql_query.execute (a 403 usually means the account's plan or the signed-in user's permissions don't include the knowl…

ParameterTypeDescription
limitnumberMax articles to return (default 10)
offsetnumberNumber of articles to skip for pagination (default 0)

get_hubspot_kb_article

Get full details for a single HubSpot Knowledge Base article by ID via the GraphQL API (read-only). USE THIS WHEN: - You already have an articleId and need full content/details - Need the complete article body, metadata, or URL RETURNS: - Full KB article object with id, title, body, slug, URL, language, and metadata WORKFLOW: 1. Get articleId from list_hubspot_kb_articles or search_hubspot_kb_articles 2. Call get_hubspot_kb_article for complete details SCOPES REQUIRED: cms.knowledge_base.articles.read and collector.graphql_query.execute (a 403 usually means the account's plan or the signed…

ParameterTypeDescription
articleId *stringHubSpot KB article ID

search_hubspot_kb_articles

Search published HubSpot Knowledge Base content by query text via the Site Search API (read-only). USE THIS WHEN: - User asks to find KB content by keyword or phrase - Looking up published help articles or troubleshooting docs RETURNS: - Search matches with title, URL, and snippet metadata from HubSpot site search WORKFLOW: 1. Call search_hubspot_kb_articles with a clear query 2. Use get_hubspot_kb_article for full article details when needed IMPORTANT: Only finds PUBLISHED articles. This tool searches the public site index and does not include draft or scheduled content. Use list_hubspot_…

ParameterTypeDescription
query *stringSearch query text
limitnumberMax search results to return

upload_hubspot_file

Upload a file to HubSpot's file manager from a local file path. USE THIS WHEN: - User wants to upload a document, image, or attachment to HubSpot - Preparing a file to attach to a CRM record (contact, deal, company, ticket) - Storing branding assets, proposals, contracts, etc. RETURNS: { id, name, path, url, size, access } - The "id" is the file ID used to attach files to records via notes WORKFLOW to attach a file to a record: 1. upload_hubspot_file → get file "id" 2. create_hubspot_note with hs_attachment_ids set to the file id, and associations to link to the record ACCESS LEVELS: - P…

ParameterTypeDescription
filePath *stringAbsolute local file path to upload (e.g., "/Users/me/Documents/proposal.pdf")
accessstringFile visibility (default: PRIVATE)
folderPathstringDestination folder in HubSpot file manager (e.g., "/attachments"). Default: "/"

import_hubspot_file_from_url

Import a file into HubSpot's file manager from a URL. USE THIS WHEN: - User wants to import a file from the web into HubSpot - Adding a file from a public URL to attach to a record - Importing images, documents, or media from external sources This tool handles the async import process automatically (polls until complete, up to 30s). Returns the final file object with its ID once ready. WORKFLOW to attach an imported file to a record: 1. import_hubspot_file_from_url → get file { id, name, path, url, size } 2. create_hubspot_note with hs_attachment_ids set to the file id, and associations t…

ParameterTypeDescription
url *stringPublic URL of the file to import (e.g., "https://example.com/doc.pdf")
accessstringFile visibility (default: PRIVATE)
fileNamestringOverride the file name (optional, derived from URL if omitted)
folderPathstringDestination folder in HubSpot file manager (e.g., "/imports"). Default: "/"

get_hubspot_file

Get details of a file in HubSpot's file manager by ID. USE THIS WHEN: - Need to check file details (name, size, URL, access level) - Verifying a file exists before attaching to a record - Getting a viewable URL for a private file (use getSignedUrl: true) RETURNS: { id, name, path, url, size, type, access, createdAt, updatedAt } For private files, the url will 404. Set getSignedUrl to true to get a temporary viewable URL.

ParameterTypeDescription
fileId *stringHubSpot file ID (from upload or import)
getSignedUrlbooleanIf true, also return a signed (viewable) URL for private files

delete_hubspot_file

Delete a file from HubSpot's file manager. WARNING: This marks the file as deleted and makes its content inaccessible. Notes that reference this file will no longer display the attachment.

ParameterTypeDescription
fileId *stringHubSpot file ID to delete

attach_file_to_record

Upload a file and attach it to a CRM record in one step. This is a convenience tool that combines: 1. Uploading a file to HubSpot's file manager 2. Creating a note with the file attached 3. Associating the note with the specified record(s) USE THIS WHEN: - User says "attach this file to [contact/deal/company]" - Adding a document, proposal, or contract to a record - Uploading meeting notes or attachments to a contact ACCEPTS EITHER: - filePath: Local file path to upload - fileUrl: Public URL to import RETURNS: { fileId, noteId, fileName, associations }

ParameterTypeDescription
associations *objectRecords to attach the file to (at least one required)
filePathstringLocal file path to upload (use this OR fileUrl)
fileUrlstringPublic URL to import (use this OR filePath)
noteBodystringOptional note text to accompany the attachment

list_hubspot_workflows

List all automation workflows in HubSpot (v4 BETA API). Returns workflow metadata: id, name, type, isEnabled, timestamps. Use get_hubspot_workflow with the flow id for full structure (actions, triggers, branches). RELATED TOOLS: - get_hubspot_workflow (inspect one workflow) - create_hubspot_workflow (create a workflow) - update_hubspot_workflow (replace workflow configuration) - activate_hubspot_workflow / deactivate_hubspot_workflow (toggle state) - delete_hubspot_workflow (permanently delete) - enrol_in_hubspot_workflow (enrol specific records) REQUIRES: automation scope, plus a plan that…

ParameterTypeDescription
limitnumberMax workflows to return (default: 100)

get_hubspot_workflow

Get full workflow structure including actions, triggers, and branches (v4 BETA API). Returns the complete workflow graph with: - Enrollment criteria (triggers and conditions) - Actions (each with actionTypeId, fields, and connection to next action) - Branch logic Useful for analyzing workflow structure and identifying potential issues. Call list_hubspot_workflows first to discover available flow IDs. RELATED TOOLS: - create_hubspot_workflow (create new workflows) - update_hubspot_workflow (replace workflow configuration) - activate_hubspot_workflow / deactivate_hubspot_workflow (toggle work…

ParameterTypeDescription
flowId *stringWorkflow/flow ID (from list_hubspot_workflows)

create_hubspot_workflow

Create a new HubSpot workflow. ⚠️ BETA API — this uses the v4 Automation API. Endpoint behavior may change. WORKFLOW TYPES: - CONTACT_FLOW: Triggered by contact enrollment - COMPANY_FLOW: Triggered by company enrollment - DEAL_FLOW: Triggered by deal enrollment - TICKET_FLOW: Triggered by ticket enrollment EXAMPLE minimal workflow: { "name": "New Lead Notification", "type": "CONTACT_FLOW" } To add actions and enrollment criteria, use the fields from get_hubspot_workflow as a reference for the expected structure.

ParameterTypeDescription
name *stringWorkflow name
type *stringWorkflow type
actionsarrayOptional workflow actions graph
enrollmentCriteriaobjectOptional enrollment criteria configuration

update_hubspot_workflow

Update a workflow via PUT (full replace semantics). IMPORTANT: This endpoint behaves like a replacement update. Include all fields you want to preserve (name/actions/enrollmentCriteria), not just changed fields. Use get_hubspot_workflow first, then submit the updated full structure.

ParameterTypeDescription
flowId *stringWorkflow ID to update
actionsarrayWorkflow actions graph
enrollmentCriteriaobjectEnrollment criteria configuration
namestringWorkflow name

delete_hubspot_workflow

Permanently delete a workflow. WARNING: This is irreversible. The workflow and its history are removed. Set confirm=true to acknowledge permanent deletion.

ParameterTypeDescription
confirm *booleanMust be true to confirm permanent deletion
flowId *stringWorkflow ID to delete

activate_hubspot_workflow

Activate a workflow (sets isEnabled to true).

ParameterTypeDescription
flowId *stringWorkflow ID to activate

deactivate_hubspot_workflow

Deactivate a workflow (sets isEnabled to false).

ParameterTypeDescription
flowId *stringWorkflow ID to deactivate

enrol_in_hubspot_workflow

Enrol specific records into a workflow. Uses the v4 BETA enrollment endpoint. A 403 means the connection can't access workflows (most often plan or user permissions, less commonly app authorisation) — reconnecting alone won't fix it; resolve the cause, then reconnect. A 404 may mean your portal requires the v3 enrollment endpoint.

ParameterTypeDescription
flowId *stringWorkflow ID to enrol into
objectIds *arrayRecord IDs to enrol
objectTypestringEnrollment object type path segment (default: contacts)

list_hubspot_ticket_threads

List conversation threads associated with a HubSpot support ticket. Use this when you need to read the actual customer messages on a ticket — for example, to draft a reply for an unassigned ticket. Tickets in HubSpot only expose the initial `subject` and `content` fields; the full back-and-forth lives on Conversations threads. Typical workflow: 1. search_hubspot_tickets to find candidate tickets 2. list_hubspot_ticket_threads(ticketId) to find the thread(s) attached to a ticket 3. list_hubspot_thread_messages(threadId) to read the message history 4. (optional) get_hubspot_thread_message_or…

ParameterTypeDescription
ticketId *stringHubSpot ticket ID
afterstringPagination cursor from a previous response.paging.next.after
archivedbooleanInclude archived threads (default false)
limitnumberMax threads to return (HubSpot default 20, max 100)
threadStatusstringOptional status filter

list_hubspot_thread_messages

List messages on a conversation thread, in chronological order. Each message includes `text` and/or `richText` body, `sender`, `recipients`, `createdAt`, `type` (MESSAGE | COMMENT | WELCOME_MESSAGE), and `truncationStatus`. If `truncationStatus` indicates the body was truncated, call get_hubspot_thread_message_original_content with the same threadId/messageId to fetch the full body. REQUIRES: `conversations.read` OAuth scope (added May 2026). On a 403: accounts connected before then must reconnect to grant it; otherwise reconnecting won't help — the account's plan or the signed-in user's p…

ParameterTypeDescription
threadId *stringConversation thread ID (from list_hubspot_ticket_threads)
afterstringPagination cursor from a previous response.paging.next.after
limitnumberMax messages to return (HubSpot default 20, max 100)

get_hubspot_thread_message_original_content

Fetch the full, untruncated original content of a single conversation message. Use this only when the message returned from list_hubspot_thread_messages has a `truncationStatus` indicating its body was truncated. For untruncated messages, the body is already present in list_hubspot_thread_messages and this call is unnecessary. REQUIRES: `conversations.read` OAuth scope (added May 2026). On a 403: accounts connected before then must reconnect to grant it; otherwise reconnecting won't help — the account's plan or the signed-in user's permissions are the likely cause.

ParameterTypeDescription
messageId *stringMessage ID within the thread
threadId *stringConversation thread ID