Skip to main content
Glama

Get ads figures

get_ads
Read-onlyIdempotent

Ads per platform, account and campaign for a website: spend, impressions, clicks, conversions, cost per conversion and ROAS where available, plus each campaign's current status, daily budget and do_not_touch (on the organization's "do not touch" list: the autopilot never changes it). Currencies are kept separate; totals are per currency.

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": {
      "site_id": "<site_id>"
    },
    "name": "get_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day (YYYY-MM-DD); default yesterday.
fromNoFirst day (YYYY-MM-DD); default 30 days ago.
site_idYesThe site id, as returned by list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the read-only/idempotent profile, and the description adds genuinely new behavior: metrics appear only 'where available', currencies are never mixed and totals are per currency, and do_not_touch means autopilot will not modify the campaign. It still says nothing about aggregation granularity or pagination.

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?

Core subject and metric list are front-loaded in a single dense sentence with no filler. The parenthetical explaining do_not_touch earns its place, though the sentence is long enough to be mildly run-on.

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

Completeness3/5

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

With no output schema, the description does the work of listing return fields, which it does well. However it never states whether results are a daily series or aggregated over the from/to range, nor whether there is pagination — a meaningful gap for an agent constructing a report.

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 site_id, from and to are already documented with formats and defaults. The description adds no date-range or site-scoping meaning beyond that, which lands at the baseline.

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?

Names the resource (ads data by platform, account, campaign for a site) and enumerates the exact metrics returned, which is far more specific than a restatement of the name. It does not explicitly distinguish itself from near-neighbours like get_site_metrics or get_social, so it stops short of a 5.

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 only implied: an agent can infer this is the tool for paid-ad performance reporting, but there is no statement of when to prefer it over get_site_metrics or get_social, and no exclusions or prerequisites. Adequate but relies on inference.

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