Skip to main content
Glama

Campaign performance

get_campaign_performance
Read-only

Use for Sponsored Products campaign-level ad performance over a date range: spend, sales, ACOS, ROAS, CTR, CPC, CVR. Grain: one row per campaign; recent ~3 days may be incomplete. Do not use for ad group, keyword, search-term, ASIN, or total organic+paid sales questions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax rows (1-1000, default 20).
offsetNoPagination offset (0-100000, default 0). Use the returned pagination.next_offset to continue.
sort_byNoColumn to sort byspend
end_dateNoOptional. YYYY-MM-DD. Defaults to today if omitted.
profile_idNoFilter by profile ID
sort_orderNoSort orderdesc
start_dateNoOptional. YYYY-MM-DD. Defaults to 30 days ago if omitted.
campaign_nameNoFilter by campaign name (LIKE match, use % for wildcards)
include_raw_rowsNoFalse returns compact rows. Default true.
include_diagnosticsNoTrue may add expanded freshness diagnostics. Basic empty-result data-window diagnostics are included by default when available.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
evidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/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 safety is covered. The description still adds real behavioral context beyond them: the row grain ('one row per campaign') and the freshness caveat that the recent ~3 days may be incomplete, which is exactly the kind of data-quality caveat an agent needs before reporting numbers.

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 sentences, zero filler, and front-loaded: purpose and metric set first, then grain and freshness caveat, then the exclusion list. Every clause earns its place and there is no restatement of the name or title.

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?

An output schema exists, so return shape needn't be explained, and pagination is covered in the schema. The description supplies the two things structured data doesn't: grain and a freshness/data-window caveat. Complete enough to call correctly, though it doesn't note whether historical backfill limits apply.

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 all ten parameters (dates, sort_by, limit/offset, filters) are already documented in the schema. The description adds metric vocabulary and the date-range framing but no parameter-specific syntax or defaults. Baseline 3 is correct when the schema carries parameter meaning.

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+resource+scope: Sponsored Products campaign-level performance over a date range, with the metric set enumerated. The 'campaign-level' grain plus the Sponsored Products qualifier cleanly separates it from siblings like get_adgroup_performance, get_sb_campaign_performance, and get_sd_campaign_performance.

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

Usage Guidelines5/5

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

Explicit when/when-not routing: 'Do not use for ad group, keyword, search-term, ASIN, or total organic+paid sales questions' names the near-miss siblings by dimension. Combined with the opening 'Use for...' clause, an agent can select or reject this tool without opening any schema.

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.