Skip to main content
Glama

HubSpot MCP Server

by ajaystream

hubspot-batch-create-objects

Create multiple HubSpot objects of the same type in a single batch API call, streamlining bulk CRM updates. Supports properties and associations, optimizing efficiency for large-scale data modifications.

Instructions

🛡️ Guardrails: 1. Data Modification Warning: This tool modifies HubSpot data. Only use when the user has explicitly requested to update their CRM. 🎯 Purpose: 1. Creates multiple HubSpot objects of the same objectType in a single API call, optimizing for bulk operations. 📋 Prerequisites: 1. Use the hubspot-get-user-details tool to get the OwnerId and UserId if you don't have that already. 2. Use the hubspot-list-objects tool to sample existing objects for the object type. 3. Use the hubspot-get-association-definitions tool to identify valid association types before creating associations.

Input Schema

NameRequiredDescriptionDefault
inputsYesArray of objects to create (maximum 100 per batch)
objectTypeYesThe type of HubSpot object to create. Valid values include: appointments, companies, contacts, courses, deals, leads, line_items, listings, marketing_events, meetings, orders, postal_mail, products, quotes, services, subscriptions, tickets, users. For custom objects, use the hubspot-get-schemas tool to get the objectType.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "inputs": { "description": "Array of objects to create (maximum 100 per batch)", "items": { "additionalProperties": false, "properties": { "associations": { "description": "Optional list of associations to create with this object", "items": { "additionalProperties": false, "properties": { "to": { "additionalProperties": false, "properties": { "id": { "description": "ID of the object to associate with", "type": "string" } }, "required": [ "id" ], "type": "object" }, "types": { "items": { "additionalProperties": false, "properties": { "associationCategory": { "enum": [ "HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED" ], "type": "string" }, "associationTypeId": { "exclusiveMinimum": 0, "type": "integer" } }, "required": [ "associationCategory", "associationTypeId" ], "type": "object" }, "minItems": 1, "type": "array" } }, "required": [ "types", "to" ], "type": "object" }, "type": "array" }, "objectWriteTraceId": { "description": "Optional trace ID for debugging purposes", "type": "string" }, "properties": { "additionalProperties": { "type": "string" }, "description": "Object properties as key-value pairs", "type": "object" } }, "required": [ "properties" ], "type": "object" }, "maxItems": 100, "minItems": 1, "type": "array" }, "objectType": { "description": "The type of HubSpot object to create. Valid values include: appointments, companies, contacts, courses, deals, leads, line_items, listings, marketing_events, meetings, orders, postal_mail, products, quotes, services, subscriptions, tickets, users. For custom objects, use the hubspot-get-schemas tool to get the objectType.", "type": "string" } }, "required": [ "objectType", "inputs" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ajaystream/hubspot-mcp-custom'

If you have feedback or need assistance with the MCP directory API, please join our Discord server