Skip to main content
Glama

build_meta_capi_event

Normalizes and SHA-256 hashes customer PII to build a Meta Conversions API event payload with deterministic event_id and EMQ score.

Instructions

Normalizes and SHA-256 hashes PII into a Meta Conversions API (Graph v27.0) event payload with deterministic event_id and EMQ score.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "build_meta_capi_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoCustomer email for SHA-256 hashing
phoneNoCustomer phone number
valueNoConversion value
fbclidNoMeta click ID from URL query
eventIdNoOptional deterministic event_id (auto-generated if omitted)
currencyNoISO 4217 currency codeUSD
eventNameNoMeta standard event namePurchase

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses key transformations (PII normalization, SHA-256 hashing, deterministic event_id, EMQ scoring), but it never says whether the tool sends data to Meta, whether it mutates persistent state, what permissions are required, or what happens if required PII is missing or invalid.

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?

A single front-loaded sentence that immediately states the action, technology version, and output characteristics. There is no redundant or filler text.

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?

For a seven-parameter tool with no output schema and no annotations, the description is only partially complete—it explains the transformation but not the returned payload shape, error behavior, or whether the event is actually sent. It is sufficient for identifying the tool's broad function but not for confidently invoking it end-to-end.

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 description coverage is 100%, so all seven parameters are documented in the schema itself. The description adds no additional parameter semantics beyond what the schema already provides.

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 uses a specific verb ("Normalizes and SHA-256 hashes") and resource ("Meta Conversions API event payload"), and it names the resulting artifacts (deterministic event_id and EMQ score). It is clearly distinct from the sibling analytics tools, which audit or calculate rather than build payloads.

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?

It does not state when an agent should call this tool, what prerequisites exist, or how it relates to any alternative workflow. The purpose is inferable, but there is no explicit usage guidance or exclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.