Skip to main content
Glama

List OpenAI Ads campaigns

openai_ads_campaigns
Read-only

Lists the campaigns of one OpenAI Ads account, as the API returns them, plus lifetimeBudget: the lifetime spend limit converted from micros to the account currency (25000000 micros = 25). Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "openai_ads_campaigns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of items (1 to 500).
accountIdNoFezola accountId of the OpenAI Ads account (type openai_ads in list_accounts or openai_ads_list_accounts). Optional when only one is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description's 'Read-only' restates that. The real added value is the disclosure that results are returned 'as the API returns them' (raw pass-through shape) and that lifetimeBudget is converted from micros to account currency with a worked example (25000000 micros = 25) — that unit semantics is not derivable from annotations. Pagination/truncation behavior for the limit parameter is not disclosed.

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?

A single front-loaded sentence: scope first, return shape second, unit conversion third, safety flag last. Every clause carries information and there is no filler.

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

Completeness3/5

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

There is no output schema, so the description must carry the return-value burden, and 'as the API returns them' leaves the field set undefined beyond lifetimeBudget. Combined with silence on pagination or how limit interacts with results, an agent knows what the tool is for but not fully what it will get back. Adequate, not complete.

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 100%, so accountId (optional when only one account is connected) and limit (1–500, default 50) are already documented. The description only echoes that the account scope is a single OpenAI Ads account; it adds no detail on limit/paging semantics. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (lists campaigns) and pins the scope to a single OpenAI Ads account, which separates it implicitly from openai_ads_create_campaign / openai_ads_update_campaign / openai_ads_set_campaign_status. It also names one concrete returned field (lifetimeBudget). It stops short of explicitly naming a sibling it is not, so 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: read campaigns for an account. There is no statement of when to prefer this over openai_ads_insights (metrics) or the mutation siblings, and no guidance about paging through large result sets. An agent can infer the read path from the name and description, but nothing is spelled out.

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