Skip to main content
Glama

Send Conversion Event (CAPI)

meta_send_conversion_event

Send server-side conversion events to Meta's Conversions API with pixel ID, event details, user data, and optional custom data for accurate tracking.

Instructions

Sends a server-side conversion event to Meta via the Conversions API.

Args:

  • pixel_id: Meta Pixel ID

  • event_name: Standard events: Purchase, Lead, AddToCart, CompleteRegistration, ViewContent, Search, InitiateCheckout, AddPaymentInfo, AddToWishlist, Subscribe, StartTrial, Contact, CustomizeProduct, Donate, FindLocation, Schedule, SubmitApplication, PageView. Custom event names also accepted.

  • event_time: Unix timestamp

  • event_source_url (optional): URL where conversion happened

  • user_data: At minimum one of: em (hashed email), ph (hashed phone), fbc, fbp, client_ip_address, client_user_agent, external_id

  • custom_data (optional): { currency, value, content_name, content_ids, content_type, order_id, num_items }

  • event_id (optional): For deduplication with browser pixel

  • action_source: "website", "app", "email", "phone_call", "chat", "physical_store", "system_generated", "business_messaging", "other"

  • test_event_code (optional): For testing without affecting production data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_idNoDeduplication ID (matches browser pixel)
pixel_idYesMeta Pixel ID
user_dataYesUser data for matching (at least one identifier required — more fields = better match rate)
event_nameYesConversion event name. Standard events: Purchase, Lead, AddToCart, CompleteRegistration, ViewContent, Search, InitiateCheckout, AddPaymentInfo, AddToWishlist, Subscribe, StartTrial, Contact, CustomizeProduct, Donate, FindLocation, Schedule, SubmitApplication, PageView. Custom event names are also accepted.
event_timeYesUnix timestamp of the event
custom_dataNoCustom event data
action_sourceYesWhere the conversion originated
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
test_event_codeNoTest event code (won't affect production data)
event_source_urlNoURL where conversion happened
Behavior3/5

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

Annotations already declare readOnlyHint=false, so the description correctly aligns with 'Sends' as a write operation — no contradiction. The description adds useful behavior beyond annotations: it discloses that test_event_code 'won't affect production data' and that event_id is 'for deduplication with browser pixel.' However, it omits other behavioral traits an agent might need, such as async processing, the returned event receipt ID, or required authentication. It adds some value but not rich coverage.

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?

The description is a clean one-line purpose statement followed by a compact bullet list of arguments, with required params naturally front-loaded before optional ones. It is appropriately sized (~150 words) for a 10-param tool. Minor waste: the action_source enum is duplicated verbatim from the schema, which adds length without new information.

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

Completeness3/5

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

Complexity is high (10 params, nested objects, enums, no output schema), and the description documents all required params well. But it omits the response_format parameter entirely, leaves many optional subfields of custom_data and user_data undocumented, and — with no output schema present — never explains the return value. The schema covers gaps for field shapes, but the absence of any return-value note is a real deficiency for a sending tool.

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 coverage is 100%, so the baseline is 3. The description adds marginal value: it explicitly states the 'at minimum one of' requirement for user_data identifiers, which the schema only loosely implies, and it documents action_source's enum. But it lists only a subset of user_data and custom_data fields (omitting ct, db, fn, ge, ln, st, zp, madid, country, status, contents, predicted_ltv, etc.), so it does not fully compensate or enrich beyond the schema.

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 first sentence states a specific verb and resource: 'Sends a server-side conversion event to Meta via the Conversions API.' The term 'server-side' and 'CAPI' in the title distinguish it from browser-pixel tracking and sibling tools like meta_send_offline_event (which sends to offline event sets) and meta_test_conversion_events (which tests events). The intent is unambiguous.

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 explicit when-to-use or when-not-to-use guidance exists. The description never names alternatives such as meta_test_conversion_events, meta_send_offline_event, or meta_create_event, nor states the conditions that would select one over the other. The 'server-side' phrasing only implies context; an agent has to infer that this is the intended path for CAPI sends rather than being told.

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/open-work-org/open-mcp-servers'

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