Skip to main content
Glama

ROAZ Meta and Google Ads Analytics

Campaign performance

getCampaigns
Read-onlyIdempotent

Campaigns for one account over a date range, ranked by a metric, with per-campaign spend, revenue, ROAS, CPA, CPC, CTR and CPM. Supports a status filter and flags whether each campaign is actually delivering.

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": {
      "adAccountId": "<adAccountId>"
    },
    "name": "getCampaigns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows to return (default 25, hard cap 100).
sortByNoRanking metric. Cost metrics (cpa, cpc, cpm) rank cheapest first; all others rank highest first. Rows where the metric is undefined (null, e.g. a CPA with no conversions) rank last.
statusNoFilter by delivery status, e.g. "ACTIVE", "PAUSED", "ARCHIVED". Omit or "all" for every status.
endDateNoEnd date, YYYY-MM-DD (inclusive). Defaults to yesterday in the ad account's time zone.
networkNoAd network. Default "meta". "google" reads the Google Ads accounts (ids look like google:<n> in listAdAccounts).
startDateNoStart date, YYYY-MM-DD. Give both dates or neither (default: the last 7 complete days). Max 400 days.
adAccountIdYesWhich account to query: the numeric ROAZ ad account id, a Meta act_ id, or a client name (fuzzy-matched). Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description still earns credit by disclosing output behavior that appears nowhere in structured fields: the returned metric set and the fact that each campaign is flagged as to whether it is actually delivering, which is meaningful since no output schema exists.

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?

Two sentences, front-loaded with the resource and scope before the metric list and filter note. The enumerated metric string is dense but earns its place because there is no output schema documenting return fields; nothing is redundant.

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 seven-parameter read tool with full schema coverage and no output schema, the description covers what is returned, how rows are ordered and filtered, and adds the delivery flag. The only real gap is the absence of any pointer to neighboring tools for different granularity or period comparison, which is a routing concern rather than a calling concern.

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%, including the ranking direction for cost vs. non-cost metrics and the null-last rule, so the schema does the heavy lifting. The description only echoes 'ranked by a metric' and 'supports a status filter' without adding format, edge-case or interpretation detail beyond the schema, which matches the baseline of 3.

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 the resource (campaigns), the scope (one account over a date range), the ordering (ranked by a metric) and the returned measures (spend, revenue, ROAS, CPA, CPC, CTR, CPM). It implicitly separates itself from getAdSets/getAds by stating campaign-level granularity, but it never names a sibling explicitly, so an agent must infer the level distinction.

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?

Usage is implied rather than stated: 'for one account over a date range' plus a status filter tells the agent the shape of the request, and the schema carries defaults (last 7 complete days, yesterday end date). There is no explicit when-to-use guidance and no routing to comparePeriods, getAccountOverview or the ad-set/ad tools, so an agent choosing between these must decide on its own.

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