Skip to main content
Glama

report_ad_conversion

Destructive

REAL ACTION: reports back to the advertising platform what became of a lead, so campaign optimisation learns from business outcomes instead of form submissions. Events: lead (value = lead score), qualified, meeting, offer, won (value = the deal amount). Refuses without marketing consent, and refuses a second report of the same event for the same lead. Personal data is normalised and SHA-256 hashed before it leaves; the click id goes unhashed because it identifies the click, not the person. Providers with a verified delivery contract send directly (ChatGPT Ads via its Conversions API; for ChatGPT Ads lead, confirmed meeting and won are also reported automatically every 5 minutes). Use dry_run to inspect the draft. LinkedIn additionally needs the conversion to exist in Campaign Manager: its URN goes into the credentials as conversion_lead / conversion_qualified / conversion_meeting / conversion_offer / conversion_won, and LinkedIn can only match on a hashed e-mail.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "lead_id": "<lead_id>",
      "event": "<event>"
    },
    "name": "report_ad_conversion"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventYesOutcome of the lead to report to the ad platform
valueNoDeal amount for 'won'/'offer'. Omitted: nothing is invented.
dry_runNoBuild and show the payload without sending and without recording.
lead_idYesID of the lead
currencyNoISO code, default the lead's currency, then EUR.
occurred_atNoWhen it happened (ISO). Default now. Platforms accept up to 7 days back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / event / description
      Added value: +"Outcome of the lead to report to the ad platform"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Adds substantial behavior beyond the annotations: consent gating, duplicate-event refusal, SHA-256 hashing with the click id left unhashed, provider-specific direct delivery (ChatGPT Ads Conversions API and its 5-minute automatic reports), and the LinkedIn URN credential requirement. The duplicate refusal slightly nuances idempotentHint=false but is consistent with erroring on a repeat rather than silently re-sending. It does not describe the response returned, which the annotations leave entirely unexplained.

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?

Front-loaded with the action and intent before the operational details, and nearly every clause carries new information (events list, consent, dedup, hashing, provider contracts). The LinkedIn credential sentence is dense and accumulates detail, but nothing is padding.

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 destructive, open-world write tool this covers refusals, hashing, and delivery paths well, and there is no output schema to explain. However, it never indicates what a successful call returns or how failures besides consent/duplicate surface, leaving the agent without a notion of response shape.

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 the schema already documents all six parameters including the event enum, value, currency default chain, and the 7-day occurred_at window; the description largely restates these. It does add value that 'lead' carries the lead score and 'won' the deal amount, and that dry_run neither sends nor records, but this is incremental over an already complete 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?

States a specific verb and resource — reporting a lead's outcome back to the advertising platform — and frames it against the implicit alternative of raw form submissions, so it is clearly distinguishable from list_ad_conversions or the create_*_ad siblings. An agent knows exactly what this tool writes and to whom.

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?

Gives concrete conditions: use dry_run to inspect the draft, it refuses without marketing consent, refuses duplicate reports, and LinkedIn requires the conversion to already exist in Campaign Manager. It never names a sibling alternative (e.g. list_ad_conversions) for inspection, but the when-to-use context is otherwise clear.

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.