Skip to main content
Glama

AdsAgent — TikTok Ads MCP

insights_query_overview

Aggregated insight rows for the authenticated tenant, paginated and sortable. Cache-only read from tiktok_insights_daily — call insights_pull_insights first if data is stale. This legacy common-wire surface maps adset to TikTok's native ad group role.

Attribution: omit or use value (TikTok configured window); custom 1d/7d windows are unsupported. Daily mode returns all day rows in items. result/cost_per_result are separate from conversions/CPA. Metadata describes the latest row within the requested period.

REQUIRED: group_by ∈ {account, campaign, adset, ad}, date_from, date_to, and one scope filter (ad_account_id or product_id). DATE PARAMS: use date_from / date_to (NOT start_date / end_date). EXAMPLE: insights_query_overview({"group_by": "account", "ad_account_id": "", "date_from": "2026-04-23", "date_to": "2026-04-29"})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
searchNo
date_toNo
group_byYes
sort_dirNodesc
sort_keyNospend
date_fromNo
page_sizeNo
view_modeNogrouped
managementNo
product_idNo
attributionNo
consistencyNocached
ad_account_idNo
query_contract_versionNo
require_complete_rangeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses cache-only behavior, legacy common-wire surface mapping adset to TikTok's native ad group role, attribution limitations, daily mode behavior, and metadata semantics. It doesn't mention pagination limits or error behavior, but the disclosed traits are substantial and go well beyond a basic summary.

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 well-structured: a summary sentence, a cache/legacy note, attribution and mode semantics, then REQUIRED/DATE/EXAMPLE blocks. It front-loads the core purpose and uses formatting to make requirements scannable. Slightly long, but every sentence adds value and the structured callouts justify the length.

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?

For a 16-parameter tool with no output schema and no annotations, the description covers the essential invocation contract: required fields, date parameter naming, scope filter, attribution constraints, and an example. It doesn't explain the meaning of consistency, require_complete_range, or query_contract_version, and doesn't describe the return shape, but the provided guidance is enough to invoke the tool correctly in the common case.

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 description coverage is 0%, so the description must compensate. It explains the critical semantics: group_by enum values, required date_from/date_to, one scope filter (ad_account_id or product_id), attribution values, and view_mode daily behavior. It doesn't explain every parameter (e.g., consistency, require_complete_range, query_contract_version), but it covers the most decision-critical ones with enough detail to make correct calls.

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 tool aggregates insight rows for the authenticated tenant, is paginated and sortable, and is a cache-only read from tiktok_insights_daily. It also distinguishes itself from related tools like insights_pull_insights and insights_query_rows by naming them and explaining the relationship.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says to call insights_pull_insights first if data is stale, and notes that attribution custom 1d/7d windows are unsupported. It also provides REQUIRED parameter guidance, DATE PARAMS clarification, and a concrete EXAMPLE, which gives an agent clear when-to-use and how-to-use instructions.

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