Skip to main content
Glama

ROAZ Meta and Google Ads Analytics

Ad performance

getAds
Read-onlyIdempotent

Individual ads for one account over a date range, ranked by a metric, with parent campaign and ad set. Use getCreativesPerformance instead when you want creative copy, thumbnails and video hook/hold rates.

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": "getAds"
  }
}

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.
campaignIdNoOptional: only ads under this ROAZ campaign id.
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

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is fully covered. The description adds only the shape of the result (ads plus parent campaign and ad set); it says nothing about pagination, row limits, or ranking edge cases, though the schema's sortBy text covers the null-ranking rule.

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, front-loaded with the resource and scope, followed by the routing hint. No filler or redundancy.

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 an 8-parameter read tool with full schema coverage and complete annotations, the description covers purpose, scope, return shape and one key alternative. It lacks only secondary routing guidance (e.g. when to prefer getAdSets/getCampaigns instead), and no output schema exists so return-shape hints are a bonus rather than a requirement.

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%, with enums and defaults documented for limit, sortBy, status, dates, network, campaignId and adAccountId. The description only restates the date-range and metric-ranking ideas already spelled out in the schema, adding no new parameter meaning; baseline 3 applies.

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 resource (individual ads), its scope (one account, a date range), and its ordering (ranked by a metric), plus the joined fields returned (parent campaign and ad set). It explicitly contrasts with getCreativesPerformance, so an agent can pick between the two without opening a schema.

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?

It gives an explicit alternative and the exact condition that selects it (creative copy, thumbnails, video hook/hold rates). It does not address the sibling hierarchy tools getCampaigns/getAdSets, though the mention of parent campaign/ad set being included partially pre-empts that question.

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