Skip to main content
Glama

Ad Performance

get_ad_performance
Read-onlyIdempotent

Get paid and owned channel performance for a date range across Meta, Google, Snapchat, TikTok, Pinterest and Klaviyo, with spend, clicks, impressions, conversions and the revenue each platform reports for itself. Group by platform, campaign, or country. Klaviyo is an owned channel billed as a flat fee, so its spend is 0 by design and it is marked is_owned_channel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYesEnd of the date range in YYYY-MM-DD format, resolved in the tenant's timezone (inclusive).
group_byNoHow to bucket ad spend rows: by platform (default), by campaign name, or by country.
platformsNoRestrict results to these ad platforms (meta, google, snapchat, tiktok, pinterest, klaviyo); omit to include every platform with synced spend in the period.
start_dateYesStart of the date range in YYYY-MM-DD format, resolved in the tenant's timezone (inclusive).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoPlain-language caveat the assistant should relay rather than paraphrase.
rowsNo
_metaNo
periodNo
totalsNo
_messageNo
group_byNo
_truncatedNo
_tenant_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral context: Klaviyo is an owned channel with spend=0 by design and an is_owned_channel marker, and revenue is what each platform reports for itself (self-attributed). These details go beyond the schema and annotations and help set expectations about data semantics.

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?

Two sentences with no fluff. The first sentence packs the core function, scope, and key metrics; the second explains a critical edge case (Klaviyo spend=0). Information is front-loaded and every clause earns its place.

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 output schema exists and the annotations cover safety, the description is largely complete: it lists platforms, metrics, grouping options, and the Klaviyo owned-channel caveat. It could go slightly further by noting how rows are aggregated or whether zero-spend platforms are excluded, but these are minor gaps and the core information needed to call the tool correctly is present.

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 parameters are already fully documented. The description reiterates the group_by values (platform, campaign, country) and platform list, but adds no new parameter-level semantics. Baseline 3 is appropriate because the schema does the heavy lifting and the description contributes little beyond what is already structured.

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 states a specific action ('Get'), a specific resource ('paid and owned channel performance'), and enumerates the exact platforms and metrics involved. It clearly distinguishes this tool from siblings like get_channel_roas or get_revenue_breakdown by covering multiple ad platforms, including owned Klaviyo, and listing metric types.

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

Usage Guidelines3/5

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

The description implies usage (when needing cross-platform ad performance across the listed channels) but does not explicitly state when to use this tool versus alternatives such as get_channel_roas or get_date_range_summary. It does not name any sibling or provide exclusions, leaving routing largely to inference.

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