Skip to main content
Glama

marketo_create_channel

Define program lifecycle stages by creating a Marketo channel with progression statuses, step order, and success flags for program type.

Instructions

Create a new channel in Marketo. Channels define program types and their progression statuses (e.g. Invited > Registered > Attended for a Webinar channel).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesChannel name
applicableProgramTypeYesProgram type this channel applies to (e.g. 'event', 'default', 'email')
progressionStatusesYesOrdered list of progression statuses

Implementation Reference

  • The async handler that executes the 'marketo_create_channel' tool logic. It sends a POST request to /rest/asset/v1/channels.json with the args as body (application/json) via the makeRequest helper.
      async (args) => {
        try {
          return ok(await makeRequest(
            "/rest/asset/v1/channels.json",
            "POST",
            args,
            "application/json"
          ));
        } catch (e) { return err(e); }
      }
    );
  • Zod schema defining the input parameters for marketo_create_channel: name (string), applicableProgramType (string), and progressionStatuses (array of objects with name, step, isSuccess).
    {
      name: z.string().describe("Channel name"),
      applicableProgramType: z.string().describe("Program type this channel applies to (e.g. 'event', 'default', 'email')"),
      progressionStatuses: z.array(z.object({
        name: z.string().describe("Status name (e.g. 'Invited')"),
        step: z.number().describe("Step number (progression order)"),
        isSuccess: z.boolean().default(false).describe("Whether this status counts as success"),
      })).describe("Ordered list of progression statuses"),
    },
  • Registration of the tool via server.tool() under the name 'marketo_create_channel' within the registerChannelTools function.
    server.tool(
      "marketo_create_channel",
      "Create a new channel in Marketo. Channels define program types and their progression statuses (e.g. Invited > Registered > Attended for a Webinar channel).",
      {
        name: z.string().describe("Channel name"),
        applicableProgramType: z.string().describe("Program type this channel applies to (e.g. 'event', 'default', 'email')"),
        progressionStatuses: z.array(z.object({
          name: z.string().describe("Status name (e.g. 'Invited')"),
          step: z.number().describe("Step number (progression order)"),
          isSuccess: z.boolean().default(false).describe("Whether this status counts as success"),
        })).describe("Ordered list of progression statuses"),
      },
      async (args) => {
        try {
          return ok(await makeRequest(
            "/rest/asset/v1/channels.json",
            "POST",
            args,
            "application/json"
          ));
        } catch (e) { return err(e); }
      }
    );
  • src/index.ts:11-27 (registration)
    Import and invocation of registerChannelTools which registers all channel tools (including marketo_create_channel) on the MCP server.
    import { registerChannelTools } from "./tools/channels.js";
    import { registerLandingPageTools } from "./tools/landingPages.js";
    import { registerBulkExportTools } from "./tools/bulkExport.js";
    
    const server = new McpServer({
      name: "marketo-mcp",
      version: "0.1.0",
    });
    
    // Register all tool groups
    registerFormTools(server);
    registerLeadTools(server);
    registerProgramTools(server);
    registerEmailTools(server);
    registerSmartListTools(server);
    registerListTools(server);
    registerChannelTools(server);
  • The makeRequest helper used by the handler to perform the HTTP POST call to the Marketo API. Also includes the ok/err response formatters used in the handler.
    export async function makeRequest<T = unknown>(
      endpoint: string,
      method: Method = "GET",
      data?: unknown,
      contentType?: string,
    ): Promise<T> {
      const token = await getAccessToken();
      const config: AxiosRequestConfig = {
        url: `${MARKETO_BASE_URL}${endpoint}`,
        method,
        headers: {
          Authorization: `Bearer ${token}`,
          ...(contentType ? { "Content-Type": contentType } : {}),
        },
        ...(data && method !== "GET" ? { data } : {}),
        ...(data && method === "GET" ? { params: data } : {}),
      };
    
      const res = await axios(config);
      const body = res.data;
    
      // Marketo REST API returns errors inside the response body
      if (body?.errors?.length) {
        const e = body.errors[0];
        throw new MarketoError(`${e.code}: ${e.message}`, res.status);
      }
    
      return body as T;
    }
Behavior2/5

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

No annotations are present, so the description must cover behavioral traits. It only states 'Create', indicating mutation, but lacks details on side effects, permissions, idempotency, or error handling. Essential behavioral context is missing.

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

Conciseness5/5

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

Two sentences are concise and front-loaded with the core action. Every word serves a purpose without redundancy.

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

Completeness2/5

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

There is no output schema, and the description does not mention return values, success indicators, or potential errors. For a creation tool, this is a significant omission. Additional context like prerequisites or async behavior is absent.

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%, so baseline is 3. The description gives a conceptual example of progression statuses but adds no specific parameter semantics beyond what the schema already provides. No value is added to parameter understanding.

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?

The description clearly states the action ('Create') and the resource ('channel in Marketo'), and explains what channels are with an example. It is distinct from sibling tools like marketo_get_channels and marketo_get_channel_by_id.

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

Usage Guidelines3/5

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

The description implies usage for creating a new channel but does not explicitly state when to use it over alternatives or when not to use it. No guidance on prerequisites or constraints is provided.

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/marketo-mcp-server'

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