Skip to main content
Glama

AdsAgent — TikTok Ads MCP

Refresh attribution cohorts

mmp_fetch_cohorts
Destructive

Fetch and persist cohort rows for one app under one MMP connection. WRITE — call is SYNCHRONOUS and can take 30-60s (Meta calls AppsFlyer in the same thread; loopback timeout is 90s). date_from / date_to range cannot exceed 31 days (AppsFlyer cohort API cap). Treat this as an explicit read refresh, never an onboarding side effect. Mirror of Meta MCP mmp_fetch_cohorts.

REQUIRED: connection_id (str — UUID), app_ref (str), date_from (str, YYYY-MM-DD), date_to (str, YYYY-MM-DD). DATE PARAMS: use date_from / date_to (NOT start_date / end_date), range ≤ 31 days. Optional: selected_source_refs (list[str] — override the config's source list for this fetch only). EXAMPLE: mmp_fetch_cohorts({"connection_id": "", "app_ref": "ai.hailuo.video", "date_from": "2026-04-12", "date_to": "2026-05-12"})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_refYes
date_toYes
date_fromYes
connection_idYes
connection_contextNo
selected_source_refsNo

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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description adds substantial operational context the annotations don't carry: synchronous execution, 30-60s duration, 90s loopback timeout, and the AppsFlyer 31-day API cap. It does not reconcile the destructiveHint flag (what existing rows are overwritten), which is the one gap.

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?

Front-loaded purpose, then the WRITE/sync warning, then required params, date constraints, optional param, and a concrete example. Every line adds operational value and the sectioning makes it skimmable.

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?

No output schema exists, and the description tells the agent what persists, how long it takes, the timeout, and the date cap — the essentials for a long-running write. It leaves connection_context unexplained, the only meaningful omission for a 6-param tool.

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?

With 0% schema description coverage the description must carry the load, and it does for the four required params (UUID format, date YYYY-MM-DD) plus the optional selected_source_refs override semantics and an explicit 'use date_from/date_to not start_date/end_date' disambiguation. It omits the connection_context parameter present in the schema, so not full coverage.

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+resource+scope: 'Fetch and persist cohort rows for one app under one MMP connection.' This clearly separates it from siblings like mmp_save_cohort_config (config) and mmp_get_state (read-only state), and the 'Mirror of Meta MCP mmp_fetch_cohorts' note anchors intent.

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?

Provides explicit context ('treated as an explicit read refresh, never an onboarding side effect') and a concrete precondition (date range ≤ 31 days), which tells the agent when this is the right call. It doesn't name a specific alternative sibling tool to route to, so it stops short of a 5.

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