Skip to main content
Glama

list_tiktok_campaigns

Retrieve TikTok ad campaigns with details like ID, name, status, objective, and budget for account management and analysis.

Instructions

List all campaigns in the TikTok ad account with campaign ID, name, status, objective, and budget. Requires Pro plan or higher ($69/mo).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax campaigns to return. Default: 20.

Implementation Reference

  • The handler logic that executes the list_tiktok_campaigns tool, performing license and credential checks before querying the TikTok API.
    case 'list_tiktok_campaigns': {
        const denied = licenseCheck('tiktok');
        if (denied) return fail(denied);
        if (!cfg.hasTikTok()) return fail('TikTok credentials not set. Add TIKTOK_ADS_ACCESS_TOKEN and TIKTOK_ADVERTISER_ID.');
        return ok(await tikTokGet('/campaign/get/', {
            advertiser_id: cfg.tikTokAdvId(),
            page_size: String(args.limit ?? 20),
            fields: '["campaign_id","campaign_name","status","objective_type","budget","create_time"]',
        }));
    }
  • src/index.ts:295-303 (registration)
    The MCP tool registration for list_tiktok_campaigns, defining its name, description, and input schema.
    {
        name: 'list_tiktok_campaigns',
        description: 'List all campaigns in the TikTok ad account with campaign ID, name, status, objective, and budget. Requires Pro plan or higher ($69/mo).',
        inputSchema: {
            type: 'object',
            properties: { limit: { type: 'number', description: 'Max campaigns to return. Default: 20.' } },
            required: [],
        },
    },
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses a behavioral trait (requires Pro plan or higher) and implies read-only behavior, but lacks details on rate limits, pagination, or error handling. It adequately covers basic usage but misses deeper operational context.

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?

The description is two sentences with zero waste, front-loaded with the core purpose and followed by essential prerequisite information. Every sentence earns its place.

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?

Given the tool's low complexity (one optional parameter) and no annotations or output schema, the description is reasonably complete. It covers purpose, attributes returned, and a key requirement, though it could benefit from mentioning return format or limitations.

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 description coverage is 100%, so the schema already documents the 'limit' parameter. The description does not add any parameter-specific information beyond what the schema provides, but it doesn't need to compensate for gaps.

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 clearly states the verb ('List') and resource ('all campaigns in the TikTok ad account') with specific attributes returned (campaign ID, name, status, objective, and budget). It distinguishes from sibling tools like 'list_meta_campaigns' by specifying TikTok campaigns.

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?

The description provides clear context for when to use this tool (to list TikTok campaigns with specific attributes) and mentions a prerequisite (Pro plan or higher). However, it does not explicitly state when not to use it or name alternatives among siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nolas-Shadow/agent1st-ads-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server