Create Custom Conversion
meta_create_custom_conversionCreate a custom conversion to track specific actions by setting ad account, pixel, event type, and URL rule.
Instructions
Creates a custom conversion for tracking specific actions.
Args:
ad_account_id (string): Ad account ID
name (string): Conversion name
pixel_id (string): Pixel ID to associate with
custom_event_type (string): Event type — CONTENT_VIEW, SEARCH, ADD_TO_CART, ADD_TO_WISHLIST, INITIATED_CHECKOUT, ADD_PAYMENT_INFO, PURCHASE, LEAD, COMPLETE_REGISTRATION, OTHER
rule (string): URL rule as JSON (e.g., {"url":{"i_contains":"thank-you"}})
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": {
"ad_account_id": "<ad_account_id>",
"name": "<name>",
"pixel_id": "<pixel_id>",
"custom_event_type": "<custom_event_type>",
"rule": "<rule>"
},
"name": "meta_create_custom_conversion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| rule | Yes | URL rule as JSON string | |
| pixel_id | Yes | ||
| ad_account_id | Yes | ||
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |
| custom_event_type | Yes |