Skip to main content
Glama
ZLeventer

hubspot-mcp

hs_get_workflow

Retrieve full details of a HubSpot workflow, including enrollment triggers, actions, and settings, by supplying the workflow ID.

Instructions

Get full details of a workflow including enrollment triggers, actions, and settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesHubSpot workflow (automation) ID

Implementation Reference

  • The getWorkflow function that executes the tool logic - calls HubSpot API to get workflow details by ID
    export async function getWorkflow(args: z.infer<typeof GetWorkflowSchema>) {
      return hubspot(`/automation/v3/workflows/${args.workflowId}`);
  • GetWorkflowSchema - Zod schema requiring a workflowId number
    export const GetWorkflowSchema = z.object({
      workflowId: z.number().int().describe("HubSpot workflow (automation) ID"),
    });
  • src/index.ts:271-276 (registration)
    Registration of 'hs_get_workflow' tool with server.tool(), including description and schema
    server.tool(
      "hs_get_workflow",
      "Get full details of a workflow including enrollment triggers, actions, and settings.",
      GetWorkflowSchema.shape,
      async (args) => { try { return ok(await getWorkflow(args)); } catch (e) { return err(e); } },
    );
  • src/index.ts:59-62 (registration)
    Import of GetWorkflowSchema and getWorkflow from workflows.ts
    import {
      ListWorkflowsSchema, listWorkflows,
      GetWorkflowSchema, getWorkflow,
    } from "./tools/workflows.js";
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided. Description does not disclose read-only nature, authentication requirements, rate limits, or any side effects. The burden is on the description, and it fails to meet it adequately.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, concise and front-loaded with key details. No redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple get-by-id tool with one parameter and no output schema, the description suffices by listing what details are returned. However, could mention expected response structure or error cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the only parameter 'workflowId' is well-described in the schema. The tool description does not add extra semantics beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the action (Get), resource (workflow), and specific details returned (enrollment triggers, actions, settings). This distinguishes it from sibling tool hs_list_workflows, which likely returns summaries.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this versus alternatives like hs_list_workflows. Lacks context for prerequisites or when not to use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/ZLeventer/hubspot-mcp'

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