Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

Google Ad Details

google_ad_library_ad_details

Retrieve details for a specific Google ad creative from an Ads Transparency URL, including election spend/impression ranges and active status; use country and cache options to control freshness.

Instructions

Google publishes spend and impression ranges only for election ads; commercial advertisers omit both. isActive is true when lastShown is within 7 UTC days. Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).

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": {
      "creative_id": "<creative_id>"
    },
    "name": "google_ad_library_ad_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
countryNoTwo-letter ISO country code. Default US. Non-ISO codes are a definitive 400 INVALID_COUNTRY.
creative_idYesGoogle Ads Transparency URL containing AR... advertiser and CR... creative IDs. A creative that does not exist under the advertiser is a definitive 404 AD_NOT_FOUND (upstream answered) — 503 is reserved for actual transport failures.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses a 2-credit cost, that cache hits are free for 24h, that empty results and failures are never charged, and that spend/impression ranges exist only for election ads. It does not cover auth requirements or rate limits, which keeps it from a 5.

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?

Five short, dense sentences with essentially no filler — every statement carries information. However, it leads with a data-availability caveat rather than the tool's core purpose, so it is not front-loaded on what an agent most needs first.

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 and no annotations, the description should convey the return shape; it explains isActive and the spend/impression fields but never describes the overall response structure or other returned fields. Cost and caching are well covered, so it is adequate but leaves real gaps for a details endpoint.

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 coverage is 100%, so the schema already documents creative_id, country, and cache in detail. The description restates the cache economics (already in the schema) and defines isActive/lastShown, which are response fields rather than parameters. Baseline 3 is appropriate since it adds little parameter meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states a verb+resource directly — it never says it fetches details for a single Google ad creative. Purpose is only inferable from field-level caveats (spend/impression ranges, isActive/lastShown) plus the name and title. It also gives no differentiation from siblings like google_ad_library_company_ads or google_ad_library_advertiser_search.

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?

There is no when-to-use guidance at all — nothing tells the agent when to call this versus google_ad_library_company_ads or another ad-library detail tool. The only routing-ish advice is the cache=true hint, which is a cost optimization for this same tool, not an alternative-selection rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools