Skip to main content
Glama

create_feed

Create a product feed for a catalog by providing catalog ID, feed name, schedule, and file URL.

Instructions

Create a new product feed for a catalog.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
catalog_idYesProduct catalog ID
nameYesFeed name
scheduleNoJSON string for feed schedule configuration
file_urlNoURL of the feed file

Implementation Reference

  • The create_feed tool handler - registered via server.tool(), accepts catalog_id, name, schedule (optional JSON string), and file_url (optional). Makes a POST to /{catalog_id}/product_feeds via the AdsClient.
    // ─── create_feed ───────────────────────────────────────────
    server.tool(
      "create_feed",
      "Create a new product feed for a catalog.",
      {
        catalog_id: z.string().describe("Product catalog ID"),
        name: z.string().describe("Feed name"),
        schedule: z.string().optional().describe("JSON string for feed schedule configuration"),
        file_url: z.string().optional().describe("URL of the feed file"),
      },
      async ({ catalog_id, ...params }) => {
        try {
          const { data, rateLimit } = await client.post(`/${catalog_id}/product_feeds`, { ...params });
          return { content: [{ type: "text" as const, text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text" as const, text: `Failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true };
        }
      }
    );
  • Zod schema for create_feed input: catalog_id (string), name (string), schedule (optional string), file_url (optional string).
    {
      catalog_id: z.string().describe("Product catalog ID"),
      name: z.string().describe("Feed name"),
      schedule: z.string().optional().describe("JSON string for feed schedule configuration"),
      file_url: z.string().optional().describe("URL of the feed file"),
    },
  • src/tools/feeds.ts:5-6 (registration)
    The registerFeedTools function that registers all feed tools (including create_feed) on the MCP server.
    export function registerFeedTools(server: McpServer, client: AdsClient): void {
      // ─── list_feeds ────────────────────────────────────────────
  • src/index.ts:72-72 (registration)
    Where registerFeedTools is called to register feed tools (including create_feed) on the MCP server.
    registerFeedTools(server, client);
  • The AdsClient.post() method used by the create_feed handler to make the HTTP POST request to the Meta Ads API.
    async post(
      path: string,
      params?: Record<string, unknown>
    ): Promise<ClientResponse> {
      return this.request("POST", path, params);
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It only states the creation action and does not disclose side effects, required permissions, validation behavior, or return value. This is insufficient for a mutation 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?

A single concise sentence that gets straight to the point with no filler. Front-loaded with the action and resource.

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?

The description is too sparse for a create operation with no output schema or annotations. It does not explain what constitutes a feed, how file_url and schedule relate, or what the response looks like. There is also no mention of prerequisites like an existing catalog.

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?

The schema already describes all four parameters with 100% coverage. The description adds no additional meaning beyond the parameter names, so it relies entirely on the schema's minimal descriptions.

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 it creates a new product feed for a catalog, using a specific verb and resource. It is differentiated from related feed operations like upload_feed or list_feeds by the explicit 'create' action.

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?

No guidance is given on when to use this tool versus alternatives such as upload_feed or update_catalog. The context implies creation of a new feed, but there are no explicit exclusions or conditions.

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

Deploy Server

Other Tools