Skip to main content
Glama

Google Ads & Meta Ads

TikTok Ads: List Ad Accounts

tiktok_list_ad_accounts
Read-onlyIdempotent

List the TikTok ad accounts connected to this account, with advertiser id, name, currency and which is the stored default. To work in an account, pass its advertiser id or name as advertiser_id to tiktok_get_campaigns, tiktok_get_performance and the other tiktok_* tools — no dashboard change needed. Filter with name_contains when the list is long. Reads only; changes nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tiktok_list_ad_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
name_containsNoOnly accounts whose name or id contains this text, ignoring case.

Output Schema

NameRequiredDescriptionDefault
adAccountsYesConnected TikTok ad accounts the assistant may use.
allSwitchedOffYesTrue when every ad account this connection reaches is unticked, so nothing here can be read until the user switches one back on.
switchedOffCountYesAd accounts this connection reaches that the user unticked on the connections page, so they are left out of the list entirely.
noAdvertiserAccessYesTrue when the connection reaches no advertiser at all (none granted or none the login can access), as opposed to accounts the user switched off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / noAdvertiserAccess
      Added value: +{
      +  "description": "True when the connection reaches no advertiser at all (none granted or none the login can access), as opposed to accounts the user switched off.",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "adAccounts",
      -  "switchedOffCount",
      -  "allSwitchedOff"
      -]New value: +[
      +  "adAccounts",
      +  "switchedOffCount",
      +  "allSwitchedOff",
      +  "noAdvertiserAccess"
      +]
  2. Added

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, destructiveHint=false and idempotentHint=true, so 'Reads only; changes nothing' is largely redundant. The sentence that does add value is 'no dashboard change needed', which tells the agent that passing advertiser_id elsewhere is per-call scoping rather than a persistent account switch — a real behavioral fact not in the annotations.

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?

Three short sentences, front-loaded with the resource and return shape, then workflow, then filtering — no wasted clauses. The one soft spot is 'Reads only; changes nothing', which restates the readOnlyHint/destructiveHint annotations and could be dropped.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, annotations fully cover the safety profile, and the single parameter is 100% described, so the description's only burdens are purpose, workflow chaining, and filter rationale — all covered. Nothing an agent needs in order to call this correctly and use its results is missing.

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 coverage is 100% and the single parameter is fully documented there (substring match on name or id, case-insensitive), so the baseline is 3. The description earns one point above baseline by giving the selection heuristic 'filter with name_contains when the list is long', which the schema does not say.

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 opens with a specific verb and resource ('List the TikTok ad accounts connected to this account') and enumerates the returned fields (advertiser id, name, currency, stored default), so an agent knows exactly what it gets. It also positions the tool relative to tiktok_get_ad_account's singular counterpart by framing this as the enumeration step.

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 explicitly states the follow-on workflow: take an advertiser_id or name from here and pass it to tiktok_get_campaigns, tiktok_get_performance and the other tiktok_* tools, plus when to apply name_contains ('when the list is long'). What is missing is an explicit exclusion, e.g. when to prefer tiktok_get_ad_account for a single account's detail.

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.

Resources