Skip to main content
Glama

Test Conversion Event (CAPI)

meta_test_conversion_events

Validate Meta CAPI setup by sending a test conversion event that doesn't affect production data, auto-generating a test event code for safe verification.

Instructions

Tests CAPI setup by sending a test event that won't affect production data.

Same args as meta_send_conversion_event but auto-sets a test_event_code if not provided. Use the test_event_code from Events Manager > Test Events tab.

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
Behavior4/5

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

Annotations already indicate readOnlyHint=false and destructiveHint=false, so the description's added value is explaining the non-production test behavior and the auto-set test_event_code. This is useful context beyond the annotations, though it doesn't describe the full response or what a successful test looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded with the primary purpose, then efficiently conveys the sibling relationship and the test_event_code behavior. Every sentence earns its place with no filler or redundant restatement.

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

Completeness4/5

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

Given the rich schema and clear sibling differentiation, the description covers the essential information for calling the tool correctly. The main gap is the lack of any hint about how to interpret the response, but the response_format parameter and test-oriented nature mitigate this somewhat.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful semantic value by explaining that test_event_code is auto-set if not provided and that the parameter set mirrors meta_send_conversion_event, which helps the agent understand parameter relationships 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 description clearly identifies the tool as a test operation for CAPI setup by sending a test event, and explicitly distinguishes it from meta_send_conversion_event by noting the auto-set test_event_code. The verb 'Tests' plus the resource 'CAPI setup' leaves no ambiguity about what the tool does.

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?

The description states this is for testing CAPI setup and that it won't affect production data, which signals when to use it versus the production-oriented sibling. It also names meta_send_conversion_event and explains the key behavioral difference, giving the agent a clear selection criterion.

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