Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Transform Ad Export

transform_ad_export
Idempotent

Convert raw long-form ad exports into a clean wide-format modeling dataset by pivoting channel spend, enforcing ratio and calendar consistency, and adding provenance for financial reconciliation.

Instructions

Transform raw long-form advertising exports (e.g. from Google Ads, Meta Ads, LinkedIn) into a clean, wide-format modeling dataset. Pivots channel spend, enforces ratio non-summation invariants (CTR, CPA, ROAS recomputed from numerators/denominators), ensures calendar continuity, and generates cryptographic provenance with financial reconciliation.

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": {
      "dataset_id": "<dataset_id>",
      "date_column": "<date_column>",
      "channel_column": "<channel_column>",
      "spend_column": "<spend_column>",
      "target_columns": "<target_columns>"
    },
    "name": "transform_ad_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
frequencyNoD
dataset_idYes
date_columnYes
spend_columnYes
channel_columnYes
target_columnsYes
channel_aliasesNo
dimension_columnsNo
merge_normalized_aliasesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safety and repeatability are covered. The description adds substantive behavioral detail: ratio invariants are recomputed rather than summed, calendar continuity is enforced, and cryptographic provenance with reconciliation is produced. It remains silent, however, on where the transformed dataset is stored, whether existing datasets are overwritten, and what the call returns — notable since there is no output schema.

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?

It is a single front-loaded sentence that moves from input to output to guarantees without filler. The density of jargon ('ratio non-summation invariants', 'cryptographic provenance') slightly reduces scanability but nothing is redundant.

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

Completeness2/5

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

For a 9-parameter mutating tool with zero schema coverage, no output schema, and a near-identical async sibling, the description is materially incomplete: it omits parameter documentation, return values, storage/destination behavior, and sync-vs-job routing. The domains listed (Google Ads, Meta, LinkedIn) are the main added value.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across nine parameters, including a nested channel_aliases object, yet the description never explains any parameter's meaning, accepted values, or defaults (frequency defaults to 'D' but no supported frequencies are listed; merge_normalized_aliases is unexplained). Conceptual hints like 'pivots channel spend' loosely map to channel_column/spend_column, but that is far too thin for a tool with five required parameters and no schema documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: it transforms raw long-form ad exports into a wide-format modeling dataset, and it enumerates the operations performed (pivoting spend, recomputing ratios, calendar continuity, provenance). The purpose is clear and concrete. It falls short of 5 because it does not differentiate itself from the sibling submit_transform_ad_export_job, leaving sync-vs-async ambiguity unresolved.

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?

There is no guidance on when to use this tool versus submit_transform_ad_export_job or inspect_dataset, no prerequisites (e.g. dataset must be inspected first), and no mention of what happens on repeat invocation. The agent must infer usage entirely from the name and sibling list.

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