Look up customers
Search contacts
Search contacts
IN operator to search multiple values in a single call.Tool name: @Search HubSpot ContactsInput fields:filter_groups(required) - an array of filter groups. Each group contains one or morefilters, each with aproperty_name(for exampleemail,firstname,company, orlifecyclestage), anoperator(EQ,NEQ,CONTAINS_TOKEN,IN,NOT_IN,BETWEEN,HAS_PROPERTY,GT,GTE,LT,LTE), and avaluestring orvaluesarray for IN/NOT_IN.properties(optional) - HubSpot properties to return. Defaults tofirstname,lastname, andemail.sorts(optional) - sort order, each with aproperty_nameanddirection(ASCENDINGorDESCENDING).limit(optional) - results per page, default 10, max 100.after(optional) - pagination cursor from a previous response.
contacts- each withid,email,firstName,lastName,fullName, andhubspot_url.total- total number of contacts matching the filters in HubSpot.returned- number of contacts in this response.paging- containspaging.next.aftercursor when more results are available.
- Look up a customer by email address before responding to a support request
- Find contacts at a specific company using the
companyproperty - Search for all contacts with a given lifecycle stage
- Batch-search multiple email addresses in a single call with the
INoperator
When a user asks about a customer account, use @Search HubSpot Contacts to find the contact by email address. Reply with the customer's name, company, and any other relevant details. If no contact is found, let the user know.
Search companies
Search companies
IN operator to search multiple domains or names in a single call.Tool name: @Search HubSpot CompaniesInput fields:filter_groups(required) - an array of filter groups. Each group contains one or morefilters, each with aproperty_name(for exampledomain,name,industry, orcity), anoperator, and avaluestring orvaluesarray.properties(optional) - HubSpot properties to return. Defaults tonameanddomain.sorts(optional) - sort order, each with aproperty_nameanddirection.limit(optional) - results per page, default 10, max 100.after(optional) - pagination cursor from a previous response.
companies- each withid,name,domain, andhubspot_url.total- total number of companies matching the filters in HubSpot.returned- number of companies in this response.paging- containspaging.next.aftercursor when more results are available.
- Look up a company by domain to find its associated deals
- Search for companies in a specific industry or location
- Find company IDs to use as filters in
@Search HubSpot Deals - Batch-search multiple company domains in a single call
When a user asks about a company account, use @Search HubSpot Companies to find the company by domain. Summarize the company name, domain, and any additional properties requested.
Track deals
Search deals
Search deals
@List HubSpot Deals for unfiltered listing. Results automatically include associated company information; contact associations are opt-in.Tool name: @Search HubSpot DealsInput fields:filter_groups(required) - an array of filter groups. Each group contains one or morefilters, each with aproperty_name(for exampledealstage,amount,hs_priority,hs_is_closed,closedate,associations.company, orhubspot_owner_id), anoperator, and avaluestring orvaluesarray. To filter by company or owner, use@Search HubSpot Companiesor@List HubSpot Ownersfirst to get the ID.sorts(optional) - sort order, each with aproperty_nameanddirection.limit(optional) - results per page, default 20, max 100.after(optional) - pagination cursor from a previous response.include_contacts(optional) - whentrue, includes associated contacts on each deal. Adds two extra API calls.
deals- each withid,name,amount,stage,pipeline,closeDate,priority,isClosed,isClosedWon,companies,primaryCompany,ownerId, andhubspot_url.total- total number of deals matching the filters.returned- number of deals in this response.paging- containspaging.next.aftercursor when more results are available.
- Find all open deals for a specific company by filtering on
associations.company - List high-priority deals by filtering
hs_prioritytohigh - Filter deals by owner using an owner ID from
@List HubSpot Owners - Search deals within a close date range using the
BETWEENoperator
When a user asks about deal status for a customer, use @Search HubSpot Companies to get the company ID, then use @Search HubSpot Deals with an associations.company filter to find their deals. Summarize the deal stages, amounts, and expected close dates.
List deals
List deals
@Search HubSpot Deals.Tool name: @List HubSpot DealsInput fields:limit(optional) - maximum number of deals to return, default 50, max 100.include_contacts(optional) - whentrue, includes associated contacts on each deal. Adds two extra API calls.
deals- each withid,name,amount,stage,pipeline,closeDate,priority,isClosed,companies,primaryCompany,ownerId, andhubspot_url.total- number of deals returned.
- Get an overview of recent deals for a pipeline review
- List deals and group them by company
- Show recent deal activity when no specific filter is needed
- Pull deals for summarization or reporting
When a user asks for a pipeline overview, use @List HubSpot Deals to retrieve recent deals. Group results by company and provide a summary of deal stages and amounts.
Get deal details
Get deal details
@Get HubSpot Deal DetailsInput fields:deal_id(required) - the ID of the HubSpot deal to retrieve.include_companies(optional) - defaults totrue; set tofalseto skip company lookup.include_contacts(optional) - defaults tofalse; set totrueto include associated contacts.
deal- the full deal record includingid,name,amount,stage,pipeline,closeDate,priority,forecastCategory,probability,isClosed,isClosedWon,arr,mrr,tcv,acv,companies,primaryCompany,ownerId,createdAt,updatedAt, andhubspot_url. Includescontactswheninclude_contactsistrue.
- Pull complete deal details when a user provides a deal ID
- Retrieve forecast data and health indicators for a deal review
- Check associated companies and contacts for a specific deal
- Look up revenue fields such as ARR or MRR
When a user provides a HubSpot deal ID, use @Get HubSpot Deal Details to retrieve the full record including companies. Summarize the deal name, stage, amount, close date, and associated company.
List owners
List owners
@Search HubSpot Deals.Tool name: @List HubSpot OwnersInput fields:email(optional) - filter to a specific owner by email address.limit(optional) - maximum number of owners to return, default 100, max 500.
owners- each withid,email,firstName,lastName, andfullName.total- total number of owners matching the filter.returned- number of owners in this response.
- Find an owner ID by email before filtering deals with
@Search HubSpot Deals - List all HubSpot owners to show who can be assigned deals
- Confirm an owner’s ID before building a report filtered by owner
When a user asks for deals owned by a specific person, use @List HubSpot Owners with their email address to get the owner ID, then use @Search HubSpot Deals with a hubspot_owner_id filter to retrieve their deals.
Setup
Install HubSpot integration
Configure agent
Create rules
Test tools
Best practices
- Chain lookups for deal filters. Use
@Search HubSpot Contactsor@Search HubSpot Companiesfirst to get IDs, then pass them asassociations.contactorassociations.companyfilters in@Search HubSpot Deals. - Use list for overviews, search for targeted queries.
@List HubSpot Dealsreturns recent deals without filtering;@Search HubSpot Dealsrequires at least one filter group and is better for specific criteria. - Look up owners by email before filtering. Use
@List HubSpot Ownerswith an email address to get the owner ID, then pass it as ahubspot_owner_idfilter rather than searching by name. - Page through large result sets. When
paging.next.afteris present in a response, pass it as theafterparameter with the same filters and limit to fetch the next page.