Skip to main content
Glama

Analyze a traceable marketing snapshot

analyze_marketing_report
Read-onlyIdempotent

Compute source-separated period comparisons, CPA and reported ROAS from supplied Google Ads, Meta Ads and GA4 rows. Return row-level provenance and quality warnings. No ad account access, scheduling, causal attribution or campaign changes.

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": {
      "currency": "<currency>",
      "timezone": "<timezone>",
      "currentPeriod": "<currentPeriod>",
      "previousPeriod": "<previousPeriod>",
      "rows": "<rows>"
    },
    "name": "analyze_marketing_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYes
currencyYesISO-like three-letter currency code, normally USD.
timezoneYes
isSyntheticNoUse true only for a clearly labelled synthetic sample.
currentPeriodYes
previousPeriodYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the description is not carrying the safety burden. It still adds useful context beyond them: output includes row-level provenance and quality warnings, and explicitly no causal attribution or account access occurs — both material for how an agent should interpret results.

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?

Three short sentences: capability first, return values second, exclusions last. No filler, no restating the title, and the negative scope is front-loaded where an agent skimming will see it.

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?

For a six-parameter, no-output-schema analysis tool, the description covers what it computes, what it returns and what it refuses to do. The remaining gap is parameter-level guidance (currency/timezone consistency across the two period ranges), which matters when validation errors occur but does not block correct invocation.

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 low at 33%, so the description should compensate more than it does. It implicitly conveys the three source values and the current/previous period split, but says nothing about currency, timezone, dateRange consistency requirements, or the isSynthetic flag; the row-level fields remain schema-only.

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 names a specific computation (source-separated period comparisons, CPA, reported ROAS), the exact inputs it consumes (Google Ads, Meta Ads, GA4 rows), and the output shape (row-level provenance, quality warnings). It is unmistakable from generate_campaign_pack, which implies action rather than analysis.

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 phrase 'from supplied ... rows' makes clear this analyzes caller-provided data rather than pulling data, and the closing sentence explicitly excludes ad account access, scheduling, causal attribution and campaign changes — the main cases where an agent might pick the wrong tool. It stops short of naming the sibling it hands off to for campaign work.

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