Skip to main content
Glama
ZLeventer

google-ads-mcp

gads_list_conversion_actions

List all conversion actions configured in your Google Ads account, including name, category, type, conversion metric inclusion, and counting type, with optional status filter.

Instructions

List all conversion actions configured in the account: name, category, type, whether included in Conversions metric, counting type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customer_idNo
statusNoENABLED

Implementation Reference

  • src/index.ts:126-131 (registration)
    Registration of the 'gads_list_conversion_actions' tool with the MCP server, binding it to listConversionActionsSchema and the listConversionActions handler.
    server.tool(
      "gads_list_conversion_actions",
      "List all conversion actions configured in the account: name, category, type, whether included in Conversions metric, counting type.",
      listConversionActionsSchema,
      async (args) => { try { return ok(await listConversionActions(args)); } catch (e) { return err(e); } }
    );
  • Input schema for the tool: optional customer_id and optional status filter (ENABLED, REMOVED, HIDDEN, ALL) defaulting to ENABLED.
    export const listConversionActionsSchema = {
      customer_id: z.string().optional(),
      status: z.enum(["ENABLED", "REMOVED", "HIDDEN", "ALL"]).default("ENABLED"),
    };
  • Handler function that queries the Google Ads API for conversion actions, returning id, name, status, category, type, include_in_conversions_metric, counting_type, and primary_for_goal.
    export async function listConversionActions(args: z.infer<z.ZodObject<typeof listConversionActionsSchema>>) {
      const customer = getCustomer(args.customer_id);
      const statusClause = args.status === "ALL" ? "" : `WHERE conversion_action.status = '${args.status}'`;
      const rows = await customer.query(`
        SELECT
          conversion_action.id,
          conversion_action.name,
          conversion_action.status,
          conversion_action.category,
          conversion_action.type,
          conversion_action.include_in_conversions_metric,
          conversion_action.counting_type,
          conversion_action.primary_for_goal
        FROM conversion_action
        ${statusClause}
        ORDER BY conversion_action.name
      `);
      return { rowCount: rows.length, rows };
    }
  • The getCustomer helper that resolves the Google Ads customer object used by the handler.
    export function getCustomer(override?: string): Customer {
      const refresh_token = process.env.GOOGLE_ADS_REFRESH_TOKEN;
      if (!refresh_token) throw new GoogleAdsError("GOOGLE_ADS_REFRESH_TOKEN is not set");
      const customer_id = (override ?? process.env.GOOGLE_ADS_CUSTOMER_ID ?? "").replace(/-/g, "");
      if (!customer_id) throw new GoogleAdsError("GOOGLE_ADS_CUSTOMER_ID is not set and no customer_id was passed");
      const login_customer_id = process.env.GOOGLE_ADS_LOGIN_CUSTOMER_ID?.replace(/-/g, "") || undefined;
      return getApi().Customer({ customer_id, login_customer_id, refresh_token });
    }
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It fails to disclose default filtering behavior (status=ENABLED while claiming 'all'), permissions needed, or pagination. Contradicts itself on scope.

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, front-loaded with action. But 'all' is misleading given the default status filter, reducing accuracy.

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?

With no annotations, no output schema, and no parameter explanations, the description is insufficient for correct usage. Additional context about parameter roles and default behavior is needed.

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

Parameters1/5

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

Schema description coverage is 0% and the description does not explain the two parameters (customer_id, status). The status enum is not mentioned; the output fields listed are not parameters.

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 tool lists all conversion actions and specifies the returned fields (name, category, type, etc.), distinguishing it from sibling list tools.

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 (e.g., conversion performance tools). No prerequisites or exclusions are mentioned.

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/google-ads-mcp'

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