Skip to main content
Glama

TikTok get best ad

tiktok_get_best_ad
Read-only

Highest-spend TikTok ad. client_id picks the brand (defaults to the active one); extra passes any other field the app accepts.

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": {
      "advertiser_id": "<advertiser_id>"
    },
    "name": "tiktok_get_best_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
extraNo
user_idNo
client_idNo
user_emailNo
campaign_idNo
advertiser_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered and the description's added disclosure is the ranking logic plus the 'extra' escape hatch. What is missing is behaviorally relevant: what happens when no qualifying ad exists (empty vs error), and what spend window/attribution defines 'best'. An output schema exists, so return-value shape need not be explained.

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?

Two compact clauses, front-loaded with the defining characteristic before the parameter hints, with no filler. Slight deduction because 'extra passes any other field the app accepts' is cryptic enough that it may invite misuse of an arbitrary passthrough.

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?

Read-only annotations and an output schema reduce what the description must cover, and the core concept is conveyed. However, for a six-parameter tool at 0% schema coverage, the unexplained required advertiser_id and the undefined scope of 'highest-spend' leave real ambiguity an agent must guess at.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the description carries the full burden, and it documents only client_id (with its useful 'defaults to the active brand' note) and generic 'extra'. The required advertiser_id is never explained, nor are user_id, user_email, or campaign_id—leaving the one mandatory argument undocumented in both places.

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?

"Highest-spend TikTok ad" names the resource and the selection criterion, which separates it from the listing siblings (tiktok_list_ads, tiktok_list_adgroup_ads) that return collections rather than a single ranked pick. It stops short of a clean verb+scope statement—no mention of the required advertiser_id or the time window over which 'highest spend' is computed.

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?

The selection criterion implies when to use it (you want the single top-spending ad rather than a list), but there is no explicit when-not or alternative routing, e.g., pointing at tiktok_list_ads for full results or noting the meta_ equivalent. The only phrasing that reads as guidance is the client_id default note, which is parameter behavior, not usage.

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.