Skip to main content
Glama

hubspot-get-workflow

Retrieve detailed workflow information from HubSpot, including actions, enrollment criteria, and scheduling, by specifying the workflow ID using the flowId parameter.

Instructions

🎯 Purpose: 1. This tool retrieves detailed information about a specific workflow from the HubSpot account. 🧭 Usage Guidance: 1. Use the "flowId" parameter to specify which workflow to retrieve. 2. This endpoint returns complete workflow information including actions, enrollment criteria, and scheduling. 3. Use the hubspot-list-workflows tool first to identify the workflow ID you need.

Input Schema

NameRequiredDescriptionDefault
flowIdYesThe ID of the workflow to retrieve

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "flowId": { "description": "The ID of the workflow to retrieve", "type": "string" } }, "required": [ "flowId" ], "type": "object" }

Implementation Reference

  • The handler function that fetches the specific workflow from HubSpot API using the provided flowId and returns the details or an error message.
    async process(args) { try { const response = await this.client.get(`/automation/v4/flows/${args.flowId}`); return { content: [ { type: 'text', text: JSON.stringify(response, null, 2), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error retrieving HubSpot workflow (ID: ${args.flowId}): ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
  • Zod schema defining the input parameters for the tool, specifically the flowId.
    const GetWorkflowSchema = z.object({ flowId: z.string().describe('The ID of the workflow to retrieve'), });
  • Registers an instance of the GetWorkflowTool in the central tools registry.
    registerTool(new GetWorkflowTool());

Latest Blog Posts

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