Model Context Protocol server for TikTok Ads API integration
This MCP server has 13 tools with basic definitions, but significant gaps in schema completeness, parameter descriptions, and error handling guidance. Most tools have reasonable naming and top-level descriptions (avg ~60 chars, below the 194-char production baseline). However, parameter documentation is sparse, many lack detailed descriptions explaining constraints, formats, and interdependencies. No output schemas are visible in the provided code. Error handling is generic (catch-all Exception blocks) with no actionable recovery guidance. The server follows a reasonable tool structure but falls short of production-grade quality expectations.
Create a new ad creative.
Create a new advertising campaign.
Create a new custom audience.
Download a completed report.
Generate a quick performance report with standard metrics.
Generate a custom performance report.
List ad creatives for the advertiser.
Missing output schemas for all tools. The provided code shows input parameters but no documented return structures. LLMs cannot plan multi-step workflows without knowing what fields are available downstream (e.g., does get_campaigns return campaign_id, campaign_name, status, budget?).
Weak parameter descriptions lacking actionable constraints. Example: 'date_range' in get_campaign_performance defaults to 'last_7_days' but what format must callers use? (ISO 8601? Free text?) What are valid options? 'metrics' is marked optional but what values does it accept? No enum, no format specification.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 15 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 51 | - | v1 |
Get detailed information about a specific ad.
Get performance metrics for ads.
Get detailed information about a specific ad group.
Get performance metrics for ad groups.
Get ad groups for a campaign.
Get ads with optional campaign, ad group, ad ID, or status filters.
Get detailed information about a specific campaign.
Get performance metrics for campaigns.
Get campaigns for the advertiser account.
List custom audiences for the advertiser.
Check the status of a report generation task.
Get available targeting options for campaigns.
Upload an image asset for ad creatives.
Generic exception handling with no recovery guidance. Code shows 'except Exception as e: return {"success": False, "error": str(e), ...}' for all tools. This gives LLMs no actionable next steps. Example from audience_tools.py: if API auth fails, network times out, or data is malformed, the LLM receives the same generic error and cannot decide whether to retry, escalate, or try an alternative approach.
Missing idempotency and confirmation patterns for destructive operations. create_campaign, create_adgroup, create_ad_creative, create_custom_audience, and upload_image are all write operations but lack dry-run, preview, or confirmation mechanisms. An LLM could create duplicate campaigns or incorrectly configured ad groups with no rollback path.
'data_source' parameter in create_custom_audience is typed as 'object' with only a description 'Data source configuration', no nested schema, no required sub-fields, no enum values. This is ambiguous and forces LLMs to guess the internal structure (e.g., {"type": "CUSTOMER_FILE", "source": ...}?).
No pagination information for list tools. get_custom_audiences defaults to limit=10 and get_campaigns defaults to limit=10, but no mention of how to fetch next pages. Are cursor-based pagination or offset-based pagination supported? Can the limit exceed 10? This is critical for production use where datasets grow.
Missing mutual-exclusion documentation for create_ad_creative. Parameters image_id (for IMAGE creatives) and video_id (for VIDEO creatives) are mutually exclusive based on creative_type, but this dependency is not documented. LLMs may pass both or neither, causing silent failures.
Tool names lack action-verb clarity in some cases. 'upload_image' is clear, but 'get_targeting_options', 'get_ad_creatives', and 'get_adgroups' do not specify retrieval scope. Is get_targeting_options a discovery tool (list all)? Does it filter by input? Should it be called before every campaign? Documentation is insufficient.