Skip to main content
Glama

ads_insights

Read-onlyIdempotent

One live performance report across many objects of an ad account: one row per object per day. Send either ids (Postproxy ids of that level, same ad account) or ad_account_id (every object of that level). Returns { level, platform, ad_account_id, currency, range, totals: { spend, impressions, clicks }, data: [{ date, platform_id, ...metrics }], unsupported_breakdowns, next_page_token, cached }; totals cover the returned page. For a single object use the *_analytics tools.

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": {
      "level": "<level>"
    },
    "name": "ads_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date, YYYY-MM-DD. Defaults to today.
idsNoUp to 50 Postproxy ids (id field) of that level, all in one ad account. Not with level=account.
fromNoStart date, YYYY-MM-DD. Defaults to 30 days ago. At most 37 months back.
levelYesWhat each row is
metricsNoSubset of metric names to return (spend, impressions, reach, clicks, ctr, cpc, cpm, conversions, roas, ...). Default: all.
breakdownsNoSplit the metrics by these dimensions. Meta only; ones the network does not offer come back in unsupported_breakdowns.
page_tokenNoFrom a previous response's next_page_token
profile_idNoAds profile hashid (the profile_id of an ad account in ads_accounts_list). Optional when exactly one ads profile is connected; required when several are.
ad_account_idNoNetwork id of the ad account, to report on every object of that level. Send this or ids.
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent safety, and the description adds behavior they cannot: an inline return envelope, the critical caveat that 'totals cover the returned page' (a pagination trap), the cached flag, and that unsupported breakdowns are echoed back. Those are exactly the non-obvious traits an agent needs before calling.

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?

Dense but front-loaded: purpose, then input modes, then return shape, then the sibling routing. The return-shape sentence is long but earns its place because there is no output schema. No filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, no-output-schema reporting tool, the description supplies the return envelope, pagination semantics, caching behavior, and unsupported-breakdown handling. With annotations and a fully described schema covering the rest, nothing essential is missing.

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 the schema already documents every parameter including ids vs ad_account_id. The description only restates the either/or choice between ids and ad_account_id and adds the 'same ad account' constraint already implied; baseline 3 is appropriate.

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 opens with a specific verb and resource ('One live performance report across many objects of an ad account') and pins the grain ('one row per object per day'), which immediately separates it from the single-object *_analytics tools named at the end.

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 states the two mutually exclusive invocation modes ('Send either ids ... or ad_account_id') and routes single-object queries to the *_analytics tools. It does not spell out further exclusions (e.g. when not to use breakdowns, or whether level=account disallows breakdowns), so it falls just short of fully explicit guidance.

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.