Skip to main content
Glama

ROAZ Meta and Google Ads Analytics

Metrics with breakdown

getInsights
Read-onlyIdempotent

Flexible metrics for one account over a date range, broken down by day, campaign, adset or ad. Use breakdown "day" for a time series (trend/chart questions) and "campaign"/"ad" for contribution questions. This returns NUMBERS; for ROAZ's computed findings use getRoazInsights.

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

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.
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).
breakdownNoHow to group the numbers. Default "day".
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

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds one genuinely useful behavioral fact not in annotations: it returns raw NUMBERS, not derived/computed findings, which shapes how an agent interprets results. It does not mention result volume or truncation, though the schema's limit/sortBy partially cover that.

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 front-loaded sentences with no filler: purpose, breakdown selection rule, then the sibling hand-off. The capitalized NUMBERS contrast is a deliberate, efficient disambiguation signal.

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?

With 7 parameters, 100% schema coverage and no output schema, the description covers purpose, the key routing choice, and the nature of the return values. Minor gaps: it says nothing about how the default 7-day range or the limit cap affect an agent's expectations, though both are documented in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds decision-level meaning to the breakdown parameter by mapping each enum value to the type of question it answers. It does not extend meaning for sortBy, network, or adAccountId, leaving those to the schema.

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 (metrics for one account over a date range) plus the grouping dimension, and explicitly distinguishes itself from the sibling getRoazInsights. An agent can tell raw-number retrieval apart from computed findings without opening either schema.

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 concrete when-to-use routing: breakdown "day" for trend/chart questions, "campaign"/"ad" for contribution questions, and names getRoazInsights as the alternative for computed findings. Both the selection rule and the exclusion are stated rather than implied.

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