Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

TikTok Ad Details

tiktok_ad_library_ad_details

Retrieve a TikTok Commercial Content Library ad by URL or numeric ID, applying country filtering and optional 24-hour caching, to inspect ad details and confirm availability.

Instructions

One TikTok Commercial Content Library ad by ID — calendar-day dates, always 2 credits. 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": {
      "url": "<url>"
    },
    "name": "tiktok_ad_library_ad_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTikTok Ad Library URL or numeric ad ID. Inputs with no extractable numeric ID are a definitive 400. An ID TikTok's library positively reports as nonexistent is a definitive 404 AD_NOT_FOUND (ads outside the EU/EEA+UK+CH never enter the library, and entries expire one year after last impression). The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
countryNoTwo-letter ISO country code. Default GB. Only EU/EEA + UK + CH are covered by TikTok's library; other codes return 400 UNSUPPORTED_REGION.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/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 behavioral burden and does disclose the important commercial traits: a flat 2-credit cost, no charge for empty results or failures, and cache-hit economics. It does not describe the returned payload or any auth/rate-limit behavior, which keeps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is short but contains internal redundancy: 'always 2 credits. Costs 2 credits.' says the same thing twice. 'Calendar-day dates' is an unexplained fragment that occupies a sentence without conveying actionable meaning. Cost information is front-loaded well, but trimming is clearly needed.

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?

For a single-record detail endpoint with a fully documented schema, the definition covers cost, failure charging, and caching — the operationally important unknowns. The absence of any hint about the shape of the returned ad record is a gap, but without an output schema and with no mutation risks, the description is close to sufficient.

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 all three parameters are already documented at the schema level, including the cache and country semantics. The description reinforces the cache behavior but adds no new syntax or format detail, and the phrase 'calendar-day dates' adds ambiguity rather than clarity. Baseline 3 applies.

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 states a specific verb+resource: fetch one TikTok Commercial Content Library ad by ID. The singular 'one ad by ID' framing implicitly separates it from search/top-ads siblings. It stops short of naming an alternative tool, so it earns 4 rather than 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 guidance is limited to caching advice ('Pass cache=true for a free 24h cache hit'). There is no explicit statement of when to use this tool versus tiktok_ad_library_search or tiktok_ad_library_top_ads, and no stated prerequisites. The agent must infer routing from the tool name and the word 'One'.

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