Skip to main content
Glama

marketo_get_forms

Retrieve Marketo forms with pagination support. Filter by status (approved or draft) to manage form metadata such as name, URL, and folder.

Instructions

List forms in Marketo. Supports pagination via maxReturn (max 200) and offset. Optionally filter by status (approved/draft). Returns form metadata including name, URL, status, and folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxReturnNoMax forms to return (1-200, default 20)
offsetNoPagination offset
statusNoFilter by approval status

Implementation Reference

  • Registration of the 'marketo_get_forms' tool via server.tool(), including its schema (maxReturn, offset, status) and the handler function that calls makeRequest to GET /rest/asset/v1/forms.json.
    export function registerFormTools(server: McpServer) {
      // ── marketo_get_forms ──────────────────────────────────────────────────────
      server.tool(
        "marketo_get_forms",
        "List forms in Marketo. Supports pagination via maxReturn (max 200) and offset. Optionally filter by status (approved/draft). Returns form metadata including name, URL, status, and folder.",
        {
          maxReturn: z.number().optional().describe("Max forms to return (1-200, default 20)"),
          offset: z.number().optional().describe("Pagination offset"),
          status: z.enum(["approved", "draft"]).optional().describe("Filter by approval status"),
        },
        async (args) => {
          try {
            const params: Record<string, unknown> = {};
            if (args.maxReturn) params.maxReturn = args.maxReturn;
            if (args.offset) params.offset = args.offset;
            if (args.status) params.status = args.status;
            return ok(await makeRequest("/rest/asset/v1/forms.json", "GET", params));
          } catch (e) { return err(e); }
        }
      );
  • Handler function for marketo_get_forms. Builds query params (maxReturn, offset, status) from args and calls makeRequest('/rest/asset/v1/forms.json', 'GET', params). On success returns formatted JSON; on error returns an error response.
    server.tool(
      "marketo_get_forms",
      "List forms in Marketo. Supports pagination via maxReturn (max 200) and offset. Optionally filter by status (approved/draft). Returns form metadata including name, URL, status, and folder.",
      {
        maxReturn: z.number().optional().describe("Max forms to return (1-200, default 20)"),
        offset: z.number().optional().describe("Pagination offset"),
        status: z.enum(["approved", "draft"]).optional().describe("Filter by approval status"),
      },
      async (args) => {
        try {
          const params: Record<string, unknown> = {};
          if (args.maxReturn) params.maxReturn = args.maxReturn;
          if (args.offset) params.offset = args.offset;
          if (args.status) params.status = args.status;
          return ok(await makeRequest("/rest/asset/v1/forms.json", "GET", params));
        } catch (e) { return err(e); }
      }
    );
  • Input schema for marketo_get_forms: maxReturn (optional number), offset (optional number), status (optional enum 'approved'|'draft'), all described.
    {
      maxReturn: z.number().optional().describe("Max forms to return (1-200, default 20)"),
      offset: z.number().optional().describe("Pagination offset"),
      status: z.enum(["approved", "draft"]).optional().describe("Filter by approval status"),
    },
  • src/index.ts:5-5 (registration)
    Import of registerFormTools from ./tools/forms.js in the main entry point.
    import { registerFormTools } from "./tools/forms.js";
  • src/index.ts:21-21 (registration)
    Invocation of registerFormTools(server) which registers all form tools including marketo_get_forms.
    registerFormTools(server);
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses pagination limits and filtering but does not mention read-only nature, authentication needs, or rate limits. Adequate for a simple list tool.

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?

Three sentences, each serving a distinct purpose: purpose, pagination, and return details. Efficient and well-structured with 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?

No output schema, but the description covers return fields. Parameters are fully documented. Lacks error conditions or rate limits, but sufficient for typical use.

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

Parameters4/5

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

Schema coverage is 100%, baseline 3. The description adds value by stating the return format (metadata including name, URL, status, folder), which is not in the schema. It also reinforces parameter limits.

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 'List forms in Marketo' with a specific verb and resource. It distinguishes itself from sibling tools like marketo_get_form_by_id (single form) and marketo_get_emails (different resource).

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

Usage Guidelines4/5

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

The description explains pagination and optional filtering, providing clear usage context. While it does not explicitly name alternatives, the purpose is straightforward for a list operation.

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