Skip to main content
Glama

Create a ChatGPT Ads conversion source (Measurement Pixel)

chatgpt_ads_create_conversion_pixel

Create the web conversion source (the Measurement Pixel's data source) for the ad account, the first step of conversion tracking. Previews by default (dryRun true); set dryRun false only after the user agrees. The result has two different ids: id (used when creating a conversion event, chatgpt_ads_create_conversion_event) and pixelId (what the website's Pixel is initialised with, and what server events use). A name that already exists is refused, so reuse the existing source (chatgpt_ads_conversion_setup_guide shows it). Only works where the user has allowed changes for the ad account. Not built here, on purpose: creating a Conversions API key (it mints a secret; do that in Ads Manager).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "chatgpt_ads_create_conversion_pixel"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA descriptive name, 3 to 1,000 characters, e.g. 'Acme website'.
dryRunNoPreview only (the default): reads the current value and shows exactly what would change (before and after) without sending anything. Set false only after the user has seen the preview and agreed.
accountIdNoThe ChatGPT Ads ad account id, as listed by chatgpt_ads_list_ad_accounts. A connection reaches one ad account, so this is normally left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses that name collisions are rejected (reinforcing non-idempotency), that the call previews unless dryRun is flipped, that permission on the ad account is required, and that the returned value carries two distinct identifiers with different downstream uses. It also states an intentional capability gap (no Conversions API key minting), which prevents a plausible misuse.

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?

Front-loaded with the core action and first-step framing, then the preview rule and id distinction, so the important information arrives early. It is dense with parenthetical asides and could shed a clause or two, but almost every sentence carries actionable content.

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

Completeness5/5

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

For a create tool with no output schema, the description supplies what an agent would otherwise have to guess: the safety flow, the permission prerequisite, the duplicate-name failure mode, and the meaning of the two returned ids. Nothing needed to invoke it correctly is missing.

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 description coverage is 100%, so name, dryRun and accountId are already fully documented in the schema; the description largely restates the dryRun workflow rather than adding new per-parameter meaning. The added context about `id` vs `pixelId` concerns return values, not inputs, so the baseline 3 applies.

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?

States a specific verb and resource ('Create the web conversion source ... for the ad account') and positions it as 'the first step of conversion tracking', which separates it from chatgpt_ads_create_conversion_event, which the description explicitly names as the follow-up step.

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

Usage Guidelines5/5

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

Gives explicit sequencing (create source first, then create event), a clear precondition (only where the user has allowed changes), guidance on the preview flow (dryRun true by default, false only after agreement), and a refusal case with a named alternative (chatgpt_ads_conversion_setup_guide to find the existing source).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources