Skip to main content
Glama
ZLeventer

hubspot-mcp

hs_list_workflows

List all HubSpot automation workflows to view their name, type, and enabled status for quick auditing.

Instructions

List all HubSpot automation workflows with name, type, and enabled status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Implementation Reference

  • The main handler function that calls HubSpot API /automation/v3/workflows and returns a list of workflows with slicing and total count.
    export async function listWorkflows(args: z.infer<typeof ListWorkflowsSchema>) {
      const res = await hubspot<{ workflows: unknown[] }>("/automation/v3/workflows");
      const workflows = res.workflows ?? [];
      return { workflows: workflows.slice(0, args.limit ?? 25), total: workflows.length };
    }
  • Zod schema for hs_list_workflows: optional limit (1-100, default 25).
    export const ListWorkflowsSchema = z.object({
      limit: z.number().int().min(1).max(100).default(25).optional(),
    });
  • src/index.ts:264-269 (registration)
    Server registration of 'hs_list_workflows' tool using server.tool() with schema and handler.
    server.tool(
      "hs_list_workflows",
      "List all HubSpot automation workflows with name, type, and enabled status.",
      ListWorkflowsSchema.shape,
      async (args) => { try { return ok(await listWorkflows(args)); } catch (e) { return err(e); } },
    );
  • Import of ListWorkflowsSchema and listWorkflows from src/tools/workflows.ts.
    // Workflows
    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 behavioral traits such as pagination, rate limits, whether it shows all workflows or only active ones, or any side effects.

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?

One sentence, no fluff. Front-loaded with key information. However, lacks structure for complex details.

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

Completeness3/5

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

No output schema, so description partially fills gaps by listing returned fields. But missing pagination info and clarity on scope (all workflows?). Adequate for a simple list tool.

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

Parameters2/5

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

Schema coverage is 0% with no description for the 'limit' parameter. The description does not explain the parameter's purpose or behavior beyond listing.

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?

Description clearly states verb 'List', resource 'HubSpot automation workflows', and specific returned fields (name, type, enabled status). Differentiates from sibling tools that list other resources.

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 tool vs alternatives like hs_get_workflow for a single workflow or other list tools. Does not mention any prerequisites or contextual usage.

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