Skip to main content
Glama

ROAZ Meta and Google Ads Analytics

Ad set performance

getAdSets
Read-onlyIdempotent

Ad sets for one account, ranked by a metric, with budget and parent campaign. Ad-set metrics here are Meta's last-90-day totals from the last sync, NOT lifetime and NOT a chosen date range (the window field says "last_90d"). For a date range use getInsights with breakdown "adset".

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

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.
networkNoAd network. Default "meta". "google" reads the Google Ads accounts (ids look like google:<n> in listAdAccounts).
campaignIdNoOptional: only ad sets 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.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds the genuinely valuable disclosure that metrics are Meta's last-90-day totals from the last sync, not lifetime and not a user-chosen range (window="last_90d"), which prevents misreading results. It stops short of describing pagination behavior or freshness of the sync itself beyond that window label.

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, front-loaded with what the tool returns, then the critical staleness constraint, then the alternative route. No filler and nothing buried.

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 6-parameter read tool with no output schema, the description covers the return contents, the data window, and the alternative path, which is nearly everything an agent needs. It does not mention result volume or default row behavior, though the schema's limit description covers that adequately.

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 sortBy direction rules, status filtering, network default and adAccountId forms are all documented in the schema already. The description adds only the loose phrase "ranked by a metric," which the schema explains far better. Baseline 3 applies when the schema carries the parameter burden.

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 resource (ad sets for one account), the ordering behavior (ranked by a metric), and the payload shape (budget and parent campaign). It is immediately distinguishable from getInsights via the explicit date-window caveat.

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?

Gives both the selection condition (want ad sets for one account ranked by a metric) and the exclusion with a named alternative: use getInsights with breakdown "adset" when a date range is needed. The agent does not have to infer which sibling to pick.

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