hermosodocs

send_meta_conversions

Send conversions to a Meta pixel (Conversions API) destructive

Area: META LEAD ADS · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Send SERVER events to the brand’s OWN Meta pixel (the Conversions API): Purchase, Lead, CompleteRegistration, AddToCart, InitiateCheckout, ViewContent, Contact, Subscribe or a custom name, for sales and sign-ups the browser pixel misses (a CRM deal, a phone order, a checkout the browser blocked). The pixel must be on one of the brand’s ticked ad accounts (list_meta_pixels); any other id is refused. PASS PLAIN VALUES (email, phone with country code, firstName, lastName, city, state, zip, country, dateOfBirth, externalId): Hermoso normalizes and SHA-256 hashes them per Meta’s rules, so never hash them yourself. clientIpAddress, clientUserAgent, fbc or fbclid, fbp and a Meta leadId go as given. A website event needs eventSourceUrl and clientUserAgent. Give every event an eventId (the same one the browser pixel sends) so Meta deduplicates it. Events up to 7 days old (62 for physical_store), up to 1,000 per call. testEventCode sends to Events Manager’s Test Events, and those events still count. The brand is responsible for its customers’ consent to share this data with Meta. RECEIVED IS NOT MATCHED: the reply reads back Meta’s events_received. Free.

Parameters

ParameterTypeDescription
adAccountIdrequiredstringthe ad account that owns the pixel, with or without act_
pixelIdrequiredstringthe pixel (dataset) id, or its exact name, from list_meta_pixels
eventsrequiredobject[]each: eventName, actionSource (website, email, app, phone_call, chat, physical_store, system_generated, business_messaging, other), eventTime (unix seconds or ISO; default now), eventId, eventSourceUrl, plain identifiers (email, phone, firstName, lastName, city, state, zip, country, dateOfBirth, gender, externalId), clientIpAddress, clientUserAgent, fbc or fbclid, fbp, leadId, value + currency (required on Purchase), orderId, contentIds, contents [{id, quantity, itemPrice}], limitedDataUse
testEventCodestringthe code from Events Manager > Test Events
limitedDataUsestringoff, on (Meta works out the US state) or a US state code such as ca; default is the brand setting
hashExternalIdbooleanfalse keeps externalId as given, to match a pixel that sends it unhashed

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/send_meta_conversions.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"send_meta_conversions","arguments":{"adAccountId":"<string>","pixelId":"<string>","events":"<array>"}}}

CLI

hermoso call send_meta_conversions --json '{"adAccountId":"<string>","pixelId":"<string>","events":"<array>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json