Skip to main content
Glama

AdsAgent — TikTok Ads MCP

Read insight totals

insights_query_overview
Read-only

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": "<advertiser_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
connection_contextNo
query_contract_versionNo
require_complete_rangeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/destructiveHint=false, so safety is covered; beyond that the description adds genuine behavioral context: cache-only reads, staleness handling, daily-mode row behavior, attribution limitations, and how metadata/result fields relate to conversions. It adds materially more than the annotations without contradicting them.

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?

Front-loads purpose and the cache workflow, then organizes required/date/example guidance into labeled sections. Density is high but each block earns its place; the example call is a strong addition. Minor redundancy around required/scope phrasing.

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 17-param tool with no output schema, the description covers the critical calling contract (required group_by/date/scope, correct date param names, attribution constraints) and even anticipates the connection_context requirement indirectly. Remaining gaps are the auxiliary params whose names are largely self-explanatory.

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 0% across 17 params, so the description must compensate, and it does for the high-value ones (group_by values, date_from/date_to with an explicit warning NOT to use start_date/end_date, the ad_account_id/product_id scope choice, and attribution rules). It leaves many params undocumented (management, consistency, require_complete_range, query_contract_version, search, page/page_size), so it only partially fills the gap.

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?

States a specific verb and resource ('Aggregated insight rows for the authenticated tenant, paginated and sortable') and clarifies the underlying source (tiktok_insights_daily) plus the legacy mapping nuance ('maps adset to TikTok's native ad group role'). This lets an agent distinguish it from siblings like insights_query_rows or insights_query_batch_overview.

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?

Explicitly states it is a cache-only read and routes the agent to insights_pull_insights when data is stale, which is real when-to-use guidance. It does not, however, distinguish itself from the other insight query siblings (rows/batch_overview/consistent), leaving that gap.

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