Skip to main content
Glama

TrueScrape

tiktok: One TikTok ad

tiktok_adLibraryAd
Read-only

One TikTok ad. One TikTok ad by id or URL. Two public surfaces carry ads and an id alone does not say which: Creative Center Top Ads (ads.tiktok.com) is checked first, then the Commercial Content Library (library.tiktok.com). Pass a URL from either and only that source is queried. Both return the same Ad shape; fields a source does not publish are null rather than inferred - Top Ads carries no flight dates or advertiser entity, and the library carries no performance metrics. countries here is the ad's own targeting, unlike a search result's, where it is the market that was searched. An id neither source knows is a 404; an id that only one source could be asked about is not, because a source that did not answer has not said no. Reach bands stay in raw, not in the impressions fields, because reach is not impressions. Costs 1 credit.

Input Schema

NameRequiredDescriptionDefault
ad_idYesNumeric ad id, a library.tiktok.com `/ads/detail?ad_id=` URL, or an ads.tiktok.com Top Ads URL
cache_max_ageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the read-only annotation, the description discloses the source-check order, source-specific null behavior, 404 semantics when an id is unknown to both sources, the cost of one credit, and the deliberate placement of reach data in raw. It also clarifies a subtle field meaning: countries here is ad targeting, not search-market context.

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?

The description is dense but front-loaded, starting with what the tool returns and then explaining source resolution. It is somewhat long, but nearly every sentence carries behavioral or semantic information relevant to correct invocation.

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 no output schema, the description does a good job explaining the shared Ad shape and source-specific null fields, as well as 404 and reach-field behavior. It is nearly complete, though the undocumented cache_max_age parameter remains a gap.

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?

The description richly explains ad_id as a numeric id or URL from either surface, going beyond the schema's brief note. However, schema coverage is only 50% and cache_max_age is neither described in the schema nor mentioned in the description, leaving one parameter undocumented.

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?

The description states a specific resource and retrieval mode: one TikTok ad by id or URL. It also distinguishes this lookup from its dual-source resolution behavior and from broader search semantics, so an agent can identify the correct tool without opening the schema.

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?

It clearly explains when a URL restricts the query to one surface and when an id triggers the Creative Center-then-Library fallback. The only gap is that it does not explicitly name tiktok_adLibrarySearch as the alternative for discovery rather than direct lookup.

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.