Skip to main content
Glama
niyogi

chatgpt-ads-manager-mcp

by niyogi

create_custom_audience

Create a custom audience from an uploaded file or as an empty/small audience. Submit the audience details, then poll the status until published to get a usable custom audience ID.

Instructions

Create a custom audience from an uploaded file (provide file_id) or as empty/small audience if enabled. Processing is async — poll via get_custom_audience until published. Returns custom_audience_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesAudience name 3–1000 chars.
file_idNoFile ID from upload_audience_file (omit for empty audience if enabled).
filenameNoOriginal filename .csv/.txt.
mimetypeNo
file_sizeNoFile size bytes 1–500M.
descriptionNoOptional description.
ad_account_idNo
identifier_typeNoIdentifier type if file has single column.
identifier_resolutionNoUse auto for mixed CSV with headers email,phone_number,email_sha256,phone_number_sha256,gaid.
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 of behavioral disclosure. It discloses the most important behavior: processing is async and the caller must poll until the audience is published. It also states the return value (custom_audience_id). It doesn't mention failure modes or authorization requirements, but the async caveat is well covered.

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?

Two concise sentences with no filler. The core purpose, input mode, async behavior, polling instruction, and return value are all front-loaded. Every sentence earns its place.

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 9-parameter mutation tool with no annotations and no output schema, it covers the essential operational facts: how the audience is sourced, that processing is async, what to poll, and what is returned. The phrase 'if enabled' is somewhat ambiguous and ad_account_id is not explained, but an agent has enough to invoke the tool and monitor the operation.

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 78%, and the schema already documents file_id, name, filename, file_size, identifier_type, and identifier_resolution. The description reinforces the file_id-vs-empty choice but adds little beyond what the schema property descriptions already say. ad_account_id remains undocumented in both the description and schema, so some parameter semantics are still thin.

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 ('Create') and resource ('custom audience'), and specifies the two source modes: an uploaded file via file_id or an empty/small audience if enabled. This clearly distinguishes it from sibling list/get/archive/merge/audience-member tools without requiring schema inspection.

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 tells the agent to poll get_custom_audience until published, which establishes the correct follow-up workflow. It also indicates when file_id should be provided versus the empty-audience path. It doesn't explicitly rule out alternatives like merge_custom_audiences or add_audience_members, but the core create-and-poll guidance is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/niyogi/chatgpt-ads-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server