Skip to main content
Glama

Create a ChatGPT Ads conversion event (goal)

chatgpt_ads_create_conversion_event

Define which event from a conversion source counts as a conversion (for example order_created for purchases, lead_created for leads, or a custom event name), with its click attribution window (7, 14 or 30 days; default 30). Previews by default (dryRun true); set dryRun false only after the user agrees. It doesn't send events (the Pixel or Conversions API does) and doesn't attach anything to a campaign: afterwards attach the returned setting id with chatgpt_ads_update_campaign (conversionEventSettingIds replaces the whole list, so include existing ones). Goal reporting applies going forward from attachment; custom events can be measured but not optimised for. Pick the source with sourceId (its id from chatgpt_ads_conversion_setup_guide, not pixelId); with exactly one source it is chosen for you. A name that already exists is refused. Only works where the user has allowed changes for the ad account.

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>",
      "eventType": "<eventType>"
    },
    "name": "chatgpt_ads_create_conversion_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA descriptive name for the goal, e.g. 'Purchases'.
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.
sourceIdNoThe conversion source `id` (not pixelId). Optional when the account has exactly one source.
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.
eventTypeYesThe standard event that counts as the conversion, or 'custom' (then customEventName is required).
customEventNameNoFor eventType 'custom': 1 to 64 characters, lowercase letters, numbers, underscores or dashes, and not a built-in event name. Must match what the site sends.
attributionWindowDaysNoClick attribution window in days: 7, 14 or 30 (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds substantial context beyond them: dryRun previews by default and should only be disabled after user agreement, duplicate names are refused, goal reporting applies only going forward from attachment, custom events can be measured but not optimised, and the tool requires the user to have allowed changes on the ad account.

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 definition, then defaults, then exclusions, then the follow-up step — a sensible order. It is dense and heavy with parentheticals, but nearly every clause carries operational information, so little could be cut without losing guidance.

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 7-parameter mutation with no output schema, the description covers prerequisites (source setup, account permissions), default behavior (preview), side effects (name collision refusal, forward-only reporting), and the mandatory next step. An agent has everything needed to call it correctly and safely.

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%, so 3 is the baseline, but the description adds real meaning the schema cannot: sourceId must be the source `id` from the setup guide, not pixelId, and is auto-selected when only one source exists. It also restates the attribution window default and the dryRun contract in workflow terms.

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 ('Define which event from a conversion source counts as a conversion') with concrete examples of event types. It also explicitly separates itself from siblings: the Pixel/Conversions API sends events, and chatgpt_ads_update_campaign does the attaching.

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 when-to-use and when-not-to-use guidance plus the required follow-up ('afterwards attach the returned setting id with chatgpt_ads_update_campaign'). It also routes source selection to chatgpt_ads_conversion_setup_guide and warns that conversionEventSettingIds replaces the whole list.

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