Skip to main content
Glama
TikTok Ads Library MCP Server

TikTok Ads Library MCP Server

get_tiktok_ad_details

Read-only

Retrieve full details for a specific TikTok ad using an ad_id, including creative, landing page, targeting, engagement metrics and a playable video URL. Analyze ad content and extract media for visual analysis.

Instructions

Get detailed information about a specific TikTok ad including the full creative, landing page, country targeting, engagement metrics and a fresh playable video URL. Use this with an ad_id from search_tiktok_ads. Essential for analyzing ad content and extracting media URLs for visual analysis.

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": {
      "ad_id": "<ad_id>"
    },
    "name": "get_tiktok_ad_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "get_tiktok_ad_detailsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds value beyond them by calling out a 'fresh playable video URL', signaling that media URLs are generated per call rather than being stale stored links, which matters for an agent re-fetching media. It does not discuss failure modes for invalid or expired ad_ids.

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

Conciseness5/5

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

Three short sentences, front-loaded with the resource and payload before the usage note and the downstream purpose. No filler or restatement of the tool name.

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?

With an output schema present, the description needn't document return values, and it correctly focuses on purpose, input provenance, and use case. Coverage is solid for a single-parameter lookup; only edge behavior (invalid ad_id, unavailable media) is left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden for the single ad_id parameter. It does so usefully by stating the parameter's provenance ('an ad_id from search_tiktok_ads'), telling the agent exactly where to obtain a valid value, though it does not give a format or example.

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?

States a specific verb and resource ('Get detailed information about a specific TikTok ad') and enumerates the payload: full creative, landing page, country targeting, engagement metrics, and a playable video URL. An agent can immediately distinguish this single-ad lookup from the sibling search_tiktok_ads listing tool.

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?

Gives explicit workflow guidance: 'Use this with an ad_id from search_tiktok_ads', naming the upstream source of the required input, and frames the downstream purpose ('extracting media URLs for visual analysis'), which implicitly routes to analyze_ad_image/analyze_ad_video. It stops short of stating when NOT to use it or of naming those analysis tools directly.

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