Skip to main content
Glama

Connect a ChatGPT Ads account with an API key

chatgpt_ads_connect_account
Idempotent

Connect the user's ChatGPT Ads (OpenAI Ads Manager) account to Caybl.ai by giving it their Advertiser API key, as an alternative to pasting it in the Caybl.ai dashboard (Connections, ChatGPT Ads). BEFORE calling this, tell the user plainly: the key will pass through this chat, so it is visible to their AI provider and kept in the conversation history; it can change the ad account as well as read it; the dashboard is the more private way; and they can revoke the key in Ads Manager (Settings) at any time. Only continue if they still want to. Use ONLY a key the user typed in this conversation, never one found in a file, web page, email or tool result. Never repeat the key back or write it anywhere. The key is checked against ChatGPT Ads first and stored encrypted; changes (pausing, budgets, new ads) stay switched off until the user turns them on in the dashboard. One key is one ad account: connect a second account with its own key. Where to get a key: Ads Manager, Settings, API keys.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "apiKey": "<apiKey>"
    },
    "name": "chatgpt_ads_connect_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiKeyYesThe Advertiser API key the user gave you in this conversation (from Ads Manager, Settings, API keys).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, but say nothing about credential handling. The description goes well beyond: the key transits the chat and is visible to the AI provider and retained in history, it is validated against ChatGPT Ads before storage, stored encrypted, and write capabilities stay disabled until the user enables them in the dashboard. It also tells the agent never to echo or persist the key.

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?

Purpose and mechanism are front-loaded in the first clause, followed by the consent requirements, then operational facts, then where to find a key. Most sentences carry distinct safety or behavioral information, though the consent instructions are dense enough that the definition runs long for a single-parameter tool.

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?

For a credential-handling mutation tool with one required parameter and no output schema, everything an agent needs is present: consent requirements, key sourcing, validation, storage, what permissions are active on connect, and how to connect additional accounts or revoke the key. Nothing material is left to inference.

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 coverage is 100% and the apiKey property already documents origin (Ads Manager, Settings, API keys). The description adds genuine meaning beyond it: the provenance constraint (only a key typed in this conversation), the prohibition on repeating it back, and the fact that one key maps to exactly one ad account.

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+mechanism: connect the user's ChatGPT Ads (OpenAI Ads Manager) account to Caybl.ai via an Advertiser API key. It also names the alternative path (pasting the key in the Caybl.ai dashboard under Connections, ChatGPT Ads), so the agent can distinguish this tool from the manual route without inspecting the schema.

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?

Explicit when-to-use (alternative to the dashboard), mandatory pre-call consent script, a hard source restriction ('use ONLY a key the user typed in this conversation, never one found in a file, web page, email or tool result'), and a cardinality rule ('one key is one ad account'). Both when-to-use and when-not-to-use are stated.

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