Skip to main content
Glama

Get Ads

get_ads
Read-onlyIdempotent

Read ad accounts, campaigns, ad groups, creatives, insights and top performers for Meta, Google and TikTok, and public ad research. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
inputNoThe fields of the chosen action.
actionYesads_ad_insights: Read one ad's performance via the connected platform gateway: Meta, Google Ads, TikTok or X. ads_adset_insights: Read ad-set/ad-group performance via the connected platform gateway: Meta, Google Ads, TikTok or X. meta_accounts: List connected Meta (Facebook) ad accounts meta_campaigns: List Meta ad campaigns with optional status filter and pagination meta_creatives: List creative assets (headlines, body text, CTAs, images) for Meta ads meta_ad_insights: Get performance insights for an individual Meta ad including creative details meta_adset_insights: Get performance insights for a Meta ad set meta_campaign_insights: Get detailed performance insights for a Meta ad campaign including spend, impressions, clicks, CTR, CPC, CPM, and conversions meta_compare_campaigns: Compare performance metrics side-by-side for multiple Meta campaigns meta_top_performers: Get top performing Meta ads sorted by a specific metric (CTR, ROAS, CPC, etc.) google_customers: List accessible Google Ads customer accounts google_campaigns: List Google Ads campaigns with optional status filter google_adgroup_insights: Get performance insights for a Google Ads ad group google_campaign_metrics: Get detailed metrics for a Google Ads campaign including impressions, clicks, cost, conversions, CTR, and CPC google_keywords: Get keyword performance report with quality scores, clicks, impressions, and cost google_search_terms: Get search terms report showing actual search queries that triggered your ads tiktok_accounts: List TikTok advertiser accounts for a connected credential tiktok_campaigns: List TikTok ad campaigns for an advertiser account tiktok_adgroups: List TikTok ad groups within a campaign tiktok_ads: List TikTok ads, optionally narrowed to a single ad group. tiktok_campaign_insights: Get detailed performance insights for a TikTok ad campaign including spend, impressions, clicks, CTR, CPC, CPM, and conversions tiktok_top_performers: Get top performing TikTok ads sorted by a specific metric (CTR, CPC, spend, etc.) research: List top-performing public and connected ads by niche, platform, source, metric, and timeframe. research_detail: Inspect one ad from ads research and return its creative, metrics, and reusable pattern explanation.
organizationNoOrganization this call acts in: its name, slug or id from get_context(action=organizations). Required when the connection covers several organizations (a call without it is refused with the list of organizations and their brands); a connection limited to one organization works inside it, so leave this argument out there (naming any organization is refused).

Output Schema

NameRequiredDescriptionDefault
dataNo
messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true and openWorldHint=true, and the description's only behavioral statement ('Read-only') merely repeats them. It adds nothing about credential requirements, pagination defaults (limit/datePreset defaults visible in schema), rate limits, or what 'public ad research' returns versus connected-account data.

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?

A single front-loaded sentence with no filler, and the read-only qualifier placed at the end where it is easy to scan. It is efficient, though its brevity is part of the completeness problem rather than a pure virtue for a 23-action tool.

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

Completeness2/5

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

For a gateway exposing 23 distinct actions with nested per-action input objects, the description omits the single most important fact: that the caller must pick an 'action'. An output schema exists so return values need not be explained, but an agent reading only the description would not know how to invoke this tool correctly.

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% and the 'action' enum documents all 23 sub-operations in detail, so the schema does the heavy lifting. The description contributes no additional meaning about the action selector, the organization scoping parameter, or how inputs vary per action, which matches the baseline 3 for fully documented schemas.

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?

The description uses a specific verb ('Read') and enumerates the resources (ad accounts, campaigns, ad groups, creatives, insights, top performers) plus public ad research across three named platforms, which distinguishes it from siblings like get_insights or find_inspiration. However, it never mentions that this is a multi-action gateway driven by an 'action' selector, so the actual mechanism of the tool is hidden from the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is given, and no alternatives are named. With siblings such as get_insights, get_content and find_inspiration present, an agent gets no help deciding whether ad performance data belongs here or elsewhere, nor any hint that a specific 'action' must be chosen for each sub-operation.

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.