Skip to main content
Glama

Draft enhanced conversions upload

draft_upload_enhanced_conversions_for_leads
Destructive

Draft an Enhanced Conversions for LEADS upload from a CSV — PREVIEW.

Uploads lead conversions via ConversionUploadService.UploadClickConversions with user_identifiers, matching hashed customer PII back to the Google users who clicked the ads. The CSV holds RAW PII in columns: Email, Phone Number, First Name, Last Name (plus Conversion Name, Conversion Time, Conversion Value, Conversion Currency; optional Order ID dedup key, and optional Ad User Data / Ad Personalization consent columns).

PII is normalized and SHA-256-hashed AT PREVIEW TIME — only the hashes are stored in the plan. Raw email/phone/name never land in the plan or the audit log. A cell that already is a SHA-256 hex digest (a CRM export that hashes before writing) is used as it is. The target conversion action must be UPLOAD_CLICKS-type.

An Order ID column makes re-uploads dedup instead of double-counting.

Rows that repeat inside one file are named in dedup_warnings. Rows sharing an Order ID count once at Google; two rows with different Order IDs are two real orders and are not reported.

The CSV comes from csv_path (a file on the machine running AdLoop) or from upload_id (a file uploaded with upload_conversion_csv, the only way on AdLoop Cloud). An uploaded file is deleted once the draft has read it.

Returns a preview with a plan_id, the row counts, the consent the rows actually carry (consent_summary) and the skipped rows; nothing is uploaded until that preview is confirmed.

Google Ads API: https://developers.google.com/google-ads/api/docs/start

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": "draft_upload_enhanced_conversions_for_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
consentNoConsent signals for GDPR/EEA, as an object with "ad_user_data" and/or "ad_personalization", each "GRANTED", "DENIED" or "UNSPECIFIED". None sends UNSPECIFIED. A row whose own "Ad User Data" / "Ad Personalization" columns are filled in overrides this for that row; empty cells fall back to it.
csv_pathNoPath of the CSV file holding the upload rows, read on the machine that runs AdLoop. Refused on the hosted server; use upload_id there.
upload_idNoId of a CSV uploaded with upload_conversion_csv (up_...), instead of csv_path.
customer_idNoGoogle Ads customer ID (digits, e.g. "1234567890"). Empty uses the configured default account.
default_regionNoISO 3166-1 alpha-2 country assumed for phone numbers that carry no country code, e.g. "DE" for "0151 12345678". Empty leaves such numbers unusable; the row still uploads when its email or its complete address identifies the lead.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: PII is normalized and SHA-256-hashed at preview time and raw values never touch the plan or audit log, an uploaded file is deleted after the draft reads it, dedup occurs via Order ID or is reported in dedup_warnings, and consent falls back per row. The file-deletion note corroborates destructiveHint=true rather than contradicting it, and the 'nothing is uploaded until that preview is confirmed' sentence aligns with readOnlyHint=false.

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 PREVIEW constraint and the PII-hashing guarantee, so the most decision-relevant facts come first. It runs long and repeats the csv_path/upload_id split that the schema already documents, and the trailing API doc link adds little, but each remaining sentence carries real behavioral information.

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

Completeness5/5

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

For a mutation-flagged, open-world tool with 5 optional parameters and an output schema, the description covers what would otherwise be dangerous blind spots: what the preview returns (plan_id, row counts, consent_summary, skipped rows), what gets hashed, what gets deleted, and what is deferred until confirmation.

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, but the description adds meaning the schema cannot: which CSV columns carry PII versus consent, that a per-row consent cell overrides the `consent` parameter, and that hashed cells are passed through. It leaves default_region and customer_id entirely to the schema, which is acceptable given full coverage.

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?

Opens with a specific verb, resource and mode: 'Draft an Enhanced Conversions for LEADS upload from a CSV — PREVIEW.' It names the underlying API method (ConversionUploadService.UploadClickConversions) and the required conversion-action type (UPLOAD_CLICKS), which separates it from the call-conversions sibling and from upload_conversion_csv.

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?

It clearly routes between the two input modes: csv_path for a local file versus upload_id (from upload_conversion_csv, 'the only way on AdLoop Cloud'). Prerequisites are stated (UPLOAD_CLICKS-type conversion action, Order ID column for dedup). It never explicitly contrasts itself with draft_upload_call_conversions, so the sibling differentiation is implied rather than spelled out.

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.