Skip to main content
Glama

Trillboards DOOH Advertising

log_event

[AdCP Media Buy] Record a conversion or attribution event.

Records conversion events for post-campaign attribution analysis. Events are deduplicated by event_id + event_type combination.

WHEN TO USE:

  • Recording offline conversions (store visits, purchases)

  • Tracking post-view attribution events

  • Logging custom KPI events

EXAMPLE: log_event({ media_buy_id: "mbuy_abc123", event: { event_id: "conv_12345", event_type: "store_visit", value_cents: 5000, screen_id: "507f1f77bcf86cd799439011", metadata: { store: "NYC-001", dwell_minutes: 12 } } })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventYesEvent data
media_buy_idYesMedia buy ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
    • removedInput schema / properties / context
      Removed value: -{
      -  "additionalProperties": {},
      -  "type": "object"
      -}
  2. Changed3 schema fields changed
    • removedInput schema / properties / adcp_major_version
      Removed value: -{
      -  "description": "Legacy major-precision AdCP version pin, an integer (e.g. 3), carried since 3.0. Prefer adcp_version. A major this agent does not speak is answered with a VERSION_UNSUPPORTED task failure; get_adcp_capabilities.adcp.major_versions lists the supported set.",
      -  "type": "integer"
      -}
    • removedInput schema / properties / adcp_version
      Removed value: -{
      -  "description": "Release-precision AdCP version this request is pinned to, \"MAJOR.RELEASE\" (e.g. \"3.1\"). A release this agent does not speak is answered with a VERSION_UNSUPPORTED task failure listing the ones it does. Read get_adcp_capabilities.adcp.supported_versions to pin correctly.",
      -  "type": "string"
      -}
    • removedInput schema / properties / context / description
      Removed value: -"Opaque caller-supplied correlation object. Echoed back byte-for-byte, unparsed, on both successful and failed responses; the agent never reads its contents."
  3. Changed3 schema fields changed
    • addedInput schema / properties / adcp_major_version
      Added value: +{
      +  "description": "Legacy major-precision AdCP version pin, an integer (e.g. 3), carried since 3.0. Prefer adcp_version. A major this agent does not speak is answered with a VERSION_UNSUPPORTED task failure; get_adcp_capabilities.adcp.major_versions lists the supported set.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / adcp_version
      Added value: +{
      +  "description": "Release-precision AdCP version this request is pinned to, \"MAJOR.RELEASE\" (e.g. \"3.1\"). A release this agent does not speak is answered with a VERSION_UNSUPPORTED task failure listing the ones it does. Read get_adcp_capabilities.adcp.supported_versions to pin correctly.",
      +  "type": "string"
      +}
    • addedInput schema / properties / context / description
      Added value: +"Opaque caller-supplied correlation object. Echoed back byte-for-byte, unparsed, on both successful and failed responses; the agent never reads its contents."
  4. Changed1 schema field changed
    • addedInput schema / properties / context
      Added value: +{
      +  "additionalProperties": {},
      +  "type": "object"
      +}
  5. Changed9 schema fields changed
    • addedInput schema / properties / event / description
      Added value: +"Event data"
    • addedInput schema / properties / event / properties / event_id / description
      Added value: +"Unique event ID for dedup"
    • addedInput schema / properties / event / properties / event_source / description
      Added value: +"Source system for the event (e.g., mmp, pixel, postback, manual)"
    • addedInput schema / properties / event / properties / event_type / description
      Added value: +"Event type: store_visit, purchase, app_install, website_visit, custom"
    • addedInput schema / properties / event / properties / metadata / description
      Added value: +"Additional event metadata"
    • addedInput schema / properties / event / properties / screen_id / description
      Added value: +"Attributed screen ID (optional)"
    • addedInput schema / properties / event / properties / timestamp / description
      Added value: +"Event timestamp (ISO 8601, defaults to now)"
    • addedInput schema / properties / event / properties / value_cents / description
      Added value: +"Event value in cents (USD)"
    • addedInput schema / properties / media_buy_id / description
      Added value: +"Media buy ID"
  6. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It discloses the key deduplication behavior—events are deduplicated by the event_id + event_type combination—and frames the event as an attribution record. It does not specify response/error behavior or exact duplicate-handling semantics (first-wins vs last-wins), so it is not a 5.

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 front-loaded with the core purpose, followed by a compact dedup note, scannable use-case bullets, and a single illustrative example. Every section earns its place; 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 nested event object and no output schema, the description is largely complete: it covers purpose, when to use, dedup behavior, and a realistic invocation example while the schema documents each parameter. The main gap is that it does not describe what the call returns or how duplicate events are resolved, which prevents a 5.

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 coverage is 100%, so the baseline is 3, but the example adds concrete invocation value: it shows how to nest the event object, populate media_buy_id, provide event_id/event_type, and attach free-form metadata. This goes beyond the schema's type-level descriptions and reduces ambiguity for an agent.

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 opens with a specific verb and resource: 'Record a conversion or attribution event', then clarifies its purpose as 'post-campaign attribution analysis'. This clearly differentiates it from sibling tools like record_impression, which targets impression events rather than conversion/attribution events.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'WHEN TO USE' section lists concrete scenarios: offline conversions, post-view attribution, and custom KPI events. It gives clear context for when the tool applies, though it does not explicitly name alternative sibling tools or state when not to use it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources