Skip to main content
Glama

AdsAgent — TikTok Ads MCP

mmp_save_cohort_config

Save one cohort config for a specific app under one MMP connection. WRITE — call is IMMEDIATE; the new config drives the next scheduled cohort pull. kpis should be picked from the app's Sending Events — call mmp_get_state first and inspect each metadata row's event_mappings / mapped_events for valid event names. Typing a kpi that the AF app doesn't send silently returns zero rows. Call only for an explicit user-requested config change; no mutation receipt is advertised. Mirror of Meta MCP mmp_save_cohort_config.

REQUIRED: connection_id (str — UUID from mmp_get_state), app_ref (str — the AF app reference, e.g. "ai.hailuo.video" for Android, "id6741675037" for iOS). Optional config fields (any subset; unset = leave existing value alone): cohort_type, min_cohort_size, selected_source_refs (list[str]), preferred_timezone, preferred_currency, partial_data, aggregation_type, period_filters (list[int]), groupings (list[str]), kpis (list[str]). EXAMPLE: mmp_save_cohort_config({"connection_id": "", "app_ref": "ai.hailuo.video", "kpis": ["ug_new_user_payment"], "selected_source_refs": ["tiktokglobal_int"]})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kpisNo
app_refYes
groupingsNo
cohort_typeNo
partial_dataNo
connection_idYes
period_filtersNo
min_cohort_sizeNo
aggregation_typeNo
preferred_currencyNo
preferred_timezoneNo
selected_source_refsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description fully discloses behavior: it states the call is immediate, affects the next scheduled pull, silently returns zero rows for invalid kpis, and does not advertise a mutation receipt. It also explains that unset optional fields leave existing values unchanged. This covers the key behavioral traits an agent needs to know.

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 well-structured: opening purpose, behavioral notes, required params, optional fields, and an example. Every sentence adds value, and the most critical information (purpose and immediacy) is front-loaded. It is detailed but not verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (12 params, no output schema, no annotations), the description covers everything needed: prerequisites, parameter semantics, behavioral expectations, and a concrete example. It even sets expectations about the lack of a receipt. An agent can call this tool correctly without additional documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 does: it lists required parameters with types and examples (connection_id as UUID from mmp_get_state, app_ref with Android/iOS examples), explains optional fields with types (list[str], list[int], boolean), and clarifies the 'unset = leave existing value alone' semantics. A full example call is provided.

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's purpose: 'Save one cohort config for a specific app under one MMP connection.' It uses a specific verb (save) and resource (cohort config) and distinguishes it from siblings like mmp_get_state or mmp_fetch_cohorts. It also labels it as WRITE and IMMEDIATE, making its role unambiguous.

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 provides explicit usage guidance: 'Call only for an explicit user-requested config change.' It also gives a clear prerequisite: 'call mmp_get_state first and inspect each metadata row's event_mappings / mapped_events for valid event names.' This tells the agent exactly when and how to prepare, and it warns against misuse.

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